A plugin for a contact sensor on a kit tray. More...
#include <ROSAriacKitTrayPlugin.hh>
Public Member Functions | |
std::string | DetermineModelType (const std::string &modelName) |
Update the kit based on which models are in contact. | |
KitTrayPlugin () | |
Constructor. | |
virtual void | Load (physics::ModelPtr _model, sdf::ElementPtr _sdf) |
Load the model plugin. | |
virtual | ~KitTrayPlugin () |
Destructor. | |
Protected Member Functions | |
void | OnUpdate (const common::UpdateInfo &_info) |
Callback that receives the world update event. | |
void | ProcessContactingModels () |
Update the kit based on which models are in contact. | |
void | PublishKitMsg () |
Publish the Kit ROS message. | |
Protected Attributes | |
ariac::Kit | currentKit |
Kit which is currently on the tray. | |
ros::Publisher | currentKitPub |
Publisher for the kit state. | |
ros::NodeHandle * | rosNode |
ROS node handle. | |
std::string | trayID |
ID of tray. |
A plugin for a contact sensor on a kit tray.
Definition at line 38 of file ROSAriacKitTrayPlugin.hh.
Constructor.
Definition at line 28 of file ROSAriacKitTrayPlugin.cc.
KitTrayPlugin::~KitTrayPlugin | ( | ) | [virtual] |
Destructor.
Definition at line 33 of file ROSAriacKitTrayPlugin.cc.
std::string gazebo::KitTrayPlugin::DetermineModelType | ( | const std::string & | modelName | ) |
Update the kit based on which models are in contact.
void KitTrayPlugin::Load | ( | physics::ModelPtr | _model, |
sdf::ElementPtr | _sdf | ||
) | [virtual] |
Load the model plugin.
[in] | _model | Pointer to the model that loaded this plugin. |
[in] | _sdf | SDF element that describes the plugin. |
Reimplemented from gazebo::SideContactPlugin.
Definition at line 41 of file ROSAriacKitTrayPlugin.cc.
void KitTrayPlugin::OnUpdate | ( | const common::UpdateInfo & | _info | ) | [protected, virtual] |
Callback that receives the world update event.
Reimplemented from gazebo::SideContactPlugin.
Definition at line 61 of file ROSAriacKitTrayPlugin.cc.
void KitTrayPlugin::ProcessContactingModels | ( | ) | [protected] |
Update the kit based on which models are in contact.
Definition at line 79 of file ROSAriacKitTrayPlugin.cc.
void KitTrayPlugin::PublishKitMsg | ( | ) | [protected] |
Publish the Kit ROS message.
Definition at line 102 of file ROSAriacKitTrayPlugin.cc.
ariac::Kit gazebo::KitTrayPlugin::currentKit [protected] |
Kit which is currently on the tray.
Definition at line 64 of file ROSAriacKitTrayPlugin.hh.
ros::Publisher gazebo::KitTrayPlugin::currentKitPub [protected] |
Publisher for the kit state.
Definition at line 73 of file ROSAriacKitTrayPlugin.hh.
ros::NodeHandle* gazebo::KitTrayPlugin::rosNode [protected] |
ROS node handle.
Definition at line 70 of file ROSAriacKitTrayPlugin.hh.
std::string gazebo::KitTrayPlugin::trayID [protected] |
ID of tray.
Definition at line 67 of file ROSAriacKitTrayPlugin.hh.