Public Member Functions | Private Member Functions | Private Attributes
gazebo::GazeboRosHarness Class Reference

See the Gazebo documentation about the HarnessPlugin. This ROS wrapper exposes two topics: More...

#include <gazebo_ros_harness.h>

List of all members.

Public Member Functions

 GazeboRosHarness ()
 Constructor.
virtual void Load (physics::ModelPtr _parent, sdf::ElementPtr _sdf)
 Load the plugin.
virtual ~GazeboRosHarness ()
 Destructor.

Private Member Functions

virtual void OnDetach (const std_msgs::Bool::ConstPtr &msg)
 Receive detach messages.
virtual void OnVelocity (const std_msgs::Float32::ConstPtr &msg)
 Receive winch velocity control messages.
void QueueThread ()
 Custom callback queue thread.

Private Attributes

boost::thread callbackQueueThread_
ros::Subscriber detachSub_
 Subscriber to detach control messages.
ros::CallbackQueue queue_
std::string robotNamespace_
 for setting ROS name space
ros::NodeHandlerosnode_
 pointer to ros node
ros::Subscriber velocitySub_
 Subscriber to velocity control messages.

Detailed Description

See the Gazebo documentation about the HarnessPlugin. This ROS wrapper exposes two topics:

1. /<plugin_model_name>/harness/velocity

2. /<plugin_model_name>/harness/detach

Definition at line 42 of file gazebo_ros_harness.h.


Constructor & Destructor Documentation

Constructor.

Definition at line 30 of file gazebo_ros_harness.cpp.

Destructor.

Definition at line 35 of file gazebo_ros_harness.cpp.


Member Function Documentation

void gazebo::GazeboRosHarness::Load ( physics::ModelPtr  _parent,
sdf::ElementPtr  _sdf 
) [virtual]

Load the plugin.

Definition at line 47 of file gazebo_ros_harness.cpp.

void gazebo::GazeboRosHarness::OnDetach ( const std_msgs::Bool::ConstPtr &  msg) [private, virtual]

Receive detach messages.

Parameters:
[in]msgBoolean detach message. Detach joints if data is true.

Definition at line 92 of file gazebo_ros_harness.cpp.

void gazebo::GazeboRosHarness::OnVelocity ( const std_msgs::Float32::ConstPtr &  msg) [private, virtual]

Receive winch velocity control messages.

Parameters:
[in]msgFloat message that is the target winch velocity.

Definition at line 85 of file gazebo_ros_harness.cpp.

Custom callback queue thread.

Definition at line 100 of file gazebo_ros_harness.cpp.


Member Data Documentation

Definition at line 77 of file gazebo_ros_harness.h.

Subscriber to detach control messages.

Definition at line 72 of file gazebo_ros_harness.h.

Definition at line 76 of file gazebo_ros_harness.h.

for setting ROS name space

Definition at line 75 of file gazebo_ros_harness.h.

pointer to ros node

Definition at line 66 of file gazebo_ros_harness.h.

Subscriber to velocity control messages.

Definition at line 69 of file gazebo_ros_harness.h.


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


gazebo_plugins
Author(s): John Hsu
autogenerated on Thu Feb 23 2017 03:43:23