TargetPlugin Class Reference

Grasp target plugin class. More...

#include <TargetPlugin.hh>

Public Member Functions

 TargetPlugin ()
 Constructs the object. More...
 
virtual ~TargetPlugin () override
 Destroys the object. More...
 
virtual void Load (physics::ModelPtr _model, sdf::ElementPtr _sdf)
 Loads the plugin. More...
 
void onUpdate ()
 Callback on world update event. More...
 
void onReset ()
 Callback on world reset event. More...
 
void onRequest (TargetRequestPtr &_msg)
 Callback function for handling incoming requests. More...
 

Private Attributes

std::unique_ptr< TargetPluginPrivatedata_ptr
 Class with private attributes. More...
 
physics::ModelPtr model
 Model to which the plugin is attached. More...
 
event::ConnectionPtr update_connection
 Connection to world update event. More...
 
event::ConnectionPtr reset_connection
 Connection to world reset event. More...
 
bool get_pose {false}
 Flag for pending get pose request. More...
 
bool set_pose {false}
 Flag for pending set pose request. More...
 
bool update_rest_pose {false}
 Flag for pending update resting pose request. More...
 
bool reset {false}
 Flag for pending reset. More...
 
ignition::math::Pose3d init_pose
 Initial pose. More...
 
ignition::math::Pose3d new_pose
 New pose. More...
 

Detailed Description

Grasp target plugin class.

Constructor & Destructor Documentation

Constructs the object.

~TargetPlugin ( )
overridevirtual

Destroys the object.

Member Function Documentation

void Load ( physics::ModelPtr  _model,
sdf::ElementPtr  _sdf 
)
virtual

Loads the plugin.

Parameters
_modelThe model pointer
_sdfThe sdf element pointer
void onRequest ( TargetRequestPtr _msg)

Callback function for handling incoming requests.

Parameters
_msgThe message
void onReset ( )

Callback on world reset event.

void onUpdate ( )

Callback on world update event.

Member Data Documentation

std::unique_ptr<TargetPluginPrivate> data_ptr
private

Class with private attributes.

bool get_pose {false}
private

Flag for pending get pose request.

ignition::math::Pose3d init_pose
private

Initial pose.

physics::ModelPtr model
private

Model to which the plugin is attached.

ignition::math::Pose3d new_pose
private

New pose.

bool reset {false}
private

Flag for pending reset.

event::ConnectionPtr reset_connection
private

Connection to world reset event.

bool set_pose {false}
private

Flag for pending set pose request.

event::ConnectionPtr update_connection
private

Connection to world update event.

bool update_rest_pose {false}
private

Flag for pending update resting pose request.


The documentation for this class was generated from the following files: