OpenWalker Project
Documentation of the ROS Packages
robot_out_ports_real.h
Go to the documentation of this file.
1 
34 #ifndef OPEN_WALKER_CORE_IMPLEMENTATIONS_ROBOT_OUT_PORTS_REAL_H
35 #define OPEN_WALKER_CORE_IMPLEMENTATIONS_ROBOT_OUT_PORTS_REAL_H
36 
37 #include <ow_core/types.h>
39 
42 
43 namespace ow_core
44 {
52  public IRobotOutPortsReal,
53  public IJoints
54 {
55 public:
56 
57 protected:
58  ow_core::ImuSensor imu_;
60  ow::JointState js_;
61 
62 public:
64  js_(ow::JointState::Zero())
65  {}
66 
71  {
72  }
73 
74  virtual IImuSensor* imuSensor()
75  {
76  return &imu_;
77  }
78 
79  virtual const IImuSensor* imuSensor() const
80  {
81  return &imu_;
82  }
83 
84  virtual IForceTorqueSensors* forceTorqueSensors()
85  {
86  return &fts_;
87  }
88 
89  virtual const IForceTorqueSensors* forceTorqueSensors() const
90  {
91  return &fts_;
92  }
93 
94  virtual IJoints* joints()
95  {
96  return this;
97  }
98 
99  virtual const IJoints* joints() const
100  {
101  return this;
102  }
103 
104  virtual ow::JointState& jointState()
105  {
106  return js_;
107  }
108 
109  virtual const ow::JointState& jointState() const
110  {
111  return js_;
112  }
113 
114 
115 };
116 
117 } // namespace ow_core
118 
119 
120 #endif // OPEN_WALKER_CORE_IMPLEMENTATIONS_ROBOT_OUT_PORTS_REAL_H
The RobotOutPortsReal class.
Definition: robot_out_ports_real.h:51
The IImuSensor class.
Definition: i_imu_sensor.h:47
virtual ~RobotOutPortsReal()
Virtual destructor.
Definition: robot_out_ports_real.h:70
The ImuSensor class.
Definition: imu_sensor.h:48
The IForceTorqueSensors class.
Definition: i_force_torque_sensors.h:47
The ForceTorqueSensors class.
Definition: force_torque_sensors.h:48
Definition: angular_acceleration.h:39
The IRobotOutPortsReal class.
Definition: i_robot_out_ports_real.h:48
The IJoints class.
Definition: i_joints.h:47