18 #ifndef _FORCETORQUESENSOR_HH_
19 #define _FORCETORQUESENSOR_HH_
47 protected:
void Load(
const std::string &_worldName, sdf::ElementPtr _sdf);
50 public:
virtual void Load(
const std::string &_worldName);
53 public:
virtual void Init();
56 public:
virtual std::string GetTopic()
const;
71 public:
virtual bool IsActive();
76 public:
template<
typename T>
78 {
return update.Connect(_subscriber);}
83 {
update.Disconnect(_conn);}
86 protected:
virtual bool UpdateImpl(
bool _force);
89 protected:
virtual void Fini();
101 private: msgs::WrenchStamped wrenchMsg;
104 private: boost::mutex mutex;
107 private:
enum MeasureFrame
115 private: MeasureFrame measureFrame;
120 private:
bool parentToChild;
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:144
void DisconnectUpdate(event::ConnectionPtr &_conn)
Disconnect from the update signal.
Definition: ForceTorqueSensor.hh:82
The Vector3 class represents the generic vector containing 3 elements.
Definition: Vector3.hh:43
Forward declarations for transport.
Sensor for measure force and torque on a joint.
Definition: ForceTorqueSensor.hh:38
event::EventT< void(msgs::WrenchStamped)> update
Update event.
Definition: ForceTorqueSensor.hh:92
A 3x3 matrix class.
Definition: Matrix3.hh:34
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:98
GAZEBO_VISIBLE void Init(google::protobuf::Message &_message, const std::string &_id="")
Initialize a message.
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Base class for sensors.
Definition: Sensor.hh:67
#define GAZEBO_VISIBLE
Use to represent "symbol visible" if supported.
Definition: system.hh:48
class __declspec(dllimport) BasicController void update(const Ogre::Real &simDeltaTime)
Basic controller class.
event::ConnectionPtr ConnectUpdate(T _subscriber)
Connect a to the update signal.
Definition: ForceTorqueSensor.hh:77