Public Member Functions | Protected Member Functions | Protected Attributes
gazebo::KitTrayPlugin Class Reference

A plugin for a contact sensor on a kit tray. More...

#include <ROSAriacKitTrayPlugin.hh>

Inheritance diagram for gazebo::KitTrayPlugin:
Inheritance graph
[legend]

List of all members.

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::NodeHandlerosNode
 ROS node handle.
std::string trayID
 ID of tray.

Detailed Description

A plugin for a contact sensor on a kit tray.

Definition at line 38 of file ROSAriacKitTrayPlugin.hh.


Constructor & Destructor Documentation

Constructor.

Definition at line 28 of file ROSAriacKitTrayPlugin.cc.

Destructor.

Definition at line 33 of file ROSAriacKitTrayPlugin.cc.


Member Function Documentation

Update the kit based on which models are in contact.

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

Load the model plugin.

Parameters:
[in]_modelPointer to the model that loaded this plugin.
[in]_sdfSDF 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.

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.


Member Data Documentation

Kit which is currently on the tray.

Definition at line 64 of file ROSAriacKitTrayPlugin.hh.

Publisher for the kit state.

Definition at line 73 of file ROSAriacKitTrayPlugin.hh.

ROS node handle.

Definition at line 70 of file ROSAriacKitTrayPlugin.hh.

ID of tray.

Definition at line 67 of file ROSAriacKitTrayPlugin.hh.


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


osrf_gear
Author(s):
autogenerated on Mon Sep 5 2016 03:41:33