20 #ifndef _HYDRAULIC_SENSOR_H_
21 #define _HYDRAULIC_SENSOR_H_
23 #include "mbsimControl/sensor.h"
25 namespace MBSimHydraulics {
32 FlowSensor(
const std::string &name) : MBSimControl::Sensor(name), line(NULL), lineString(
"") {}
33 std::string getType()
const {
return "FlowSensor"; }
34 fmatvec::Vec getSignal();
35 void initializeUsingXML(TiXmlElement *element);
36 void init(MBSim::InitStage stage);
37 void setHLine(
HLine * line_) {line=line_; }
40 std::string lineString;
45 PressureSensor(
const std::string &name) : MBSimControl::Sensor(name), node(NULL), nodeString(
"") {}
46 std::string getType()
const {
return "PressureSensor"; }
47 fmatvec::Vec getSignal();
48 void initializeUsingXML(TiXmlElement *element);
49 void init(MBSim::InitStage stage);
50 void setHNode(
HNode * node_) {node=node_; }
53 std::string nodeString;
59 std::string getType()
const {
return "TemperatureSensor"; }
60 fmatvec::Vec getSignal() {
return T; }
61 void init(MBSim::InitStage stage);
69 std::string getType()
const {
return "KinematicViscositySensor"; }
70 fmatvec::Vec getSignal() {
return nu; }
71 void init(MBSim::InitStage stage);