18 #ifndef GAZEBO_PLUGINS_JOINTEVENTSOURCE_HH_ 19 #define GAZEBO_PLUGINS_JOINTEVENTSOURCE_HH_ 80 public:
virtual void Init();
86 public:
void Info()
const;
91 public:
virtual void Load(
const sdf::ElementPtr _sdf);
95 private:
bool LookupJoint();
99 private: std::string RangeAsString()
const;
104 private:
void SetRangeFromString(
const std::string &_rangeStr);
110 private: std::string modelName;
113 private: std::string jointName;
128 private:
Range range;
131 private:
bool isTriggered;
JointEventSource(transport::PublisherPtr _pub, physics::WorldPtr _world)
Constructor.
boost::shared_ptr< World > WorldPtr
Definition: PhysicsTypes.hh:90
invalid
Definition: JointEventSource.hh:69
Forward declarations for the common classes.
Definition: Animation.hh:26
boost::shared_ptr< Publisher > PublisherPtr
Definition: TransportTypes.hh:49
Velocity or angular velocity.
Definition: JointEventSource.hh:65
boost::shared_ptr< Joint > JointPtr
Definition: PhysicsTypes.hh:118
Applied force (or torque, for revolute joints)
Definition: JointEventSource.hh:67
void Info() const
Prints data about the event source to the log (useful for debug)
virtual void Load(const sdf::ElementPtr _sdf)
Loads the full name of the model and the triggers from the world file.
Range
The type of data range measured.
Definition: JointEventSource.hh:59
Normalized angle (between -PI and PI)
Definition: JointEventSource.hh:63
void Update()
Called every simulation step.
The base class for emitting SimEvents.
Definition: EventSource.hh:34
boost::shared_ptr< Connection > ConnectionPtr
Definition: CommonTypes.hh:134
virtual void Init()
Initialize the event.
boost::shared_ptr< Model > ModelPtr
Definition: PhysicsTypes.hh:94
Absolute position (or angle, for revolute joints)
Definition: JointEventSource.hh:61
The event generator class.
Definition: JointEventSource.hh:55