$search

gazebo::GazeboRosPubWorldState Class Reference
[GazeboRosPubWorldState]

#include <gazebo_ros_pub_world_state.h>

List of all members.

Public Member Functions

 GazeboRosPubWorldState (Entity *parent)
 Constructor.
virtual ~GazeboRosPubWorldState ()
 Destructor.

Protected Member Functions

virtual void FiniChild ()
 Finalize the controller.
virtual void InitChild ()
 Init the controller.
virtual void LoadChild (XMLConfigNode *node)
 Load the controller.
virtual void UpdateChild ()
 Update the controller.

Private Member Functions

void QueueThread ()
void WorldStateConnect ()
void WorldStateDisconnect ()

Private Attributes

boost::thread callback_queue_thread_
std::string frameName
ParamT< std::string > * frameNameP
 frame transform name, should match link name
boost::mutex lock
 A mutex to lock access to fields that are used in message callbacks.
gazebo::Model * parent_model_
 : parent should be a model
ros::Publisher pub_
ros::CallbackQueue queue_
std::string robotNamespace
ParamT< std::string > * robotNamespaceP
 for setting ROS name space
ros::NodeHandlerosnode_
 : ros node handle and publisher
std::string topicName
ParamT< std::string > * topicNameP
 topic name
int worldStateConnectCount
 : keep track of number of connections
gazebo_msgs::WorldState worldStateMsg
 : Message for sending world state

Detailed Description

Definition at line 106 of file gazebo_ros_pub_world_state.h.


Constructor & Destructor Documentation

GazeboRosPubWorldState::GazeboRosPubWorldState ( Entity *  parent  ) 

Constructor.

Parameters:
parent The parent entity, must be a Model or a Sensor

Definition at line 47 of file gazebo_ros_pub_world_state.cpp.

GazeboRosPubWorldState::~GazeboRosPubWorldState (  )  [virtual]

Destructor.

Definition at line 66 of file gazebo_ros_pub_world_state.cpp.


Member Function Documentation

void GazeboRosPubWorldState::FiniChild (  )  [protected, virtual]

Finalize the controller.

Definition at line 252 of file gazebo_ros_pub_world_state.cpp.

void GazeboRosPubWorldState::InitChild (  )  [protected, virtual]

Init the controller.

Definition at line 120 of file gazebo_ros_pub_world_state.cpp.

void GazeboRosPubWorldState::LoadChild ( XMLConfigNode *  node  )  [protected, virtual]

Load the controller.

Parameters:
node XML config node

Definition at line 76 of file gazebo_ros_pub_world_state.cpp.

void GazeboRosPubWorldState::QueueThread (  )  [private]

Definition at line 265 of file gazebo_ros_pub_world_state.cpp.

void GazeboRosPubWorldState::UpdateChild (  )  [protected, virtual]

Update the controller.

: list of all models in the world

: list of all bodies in the model

Definition at line 128 of file gazebo_ros_pub_world_state.cpp.

void GazeboRosPubWorldState::WorldStateConnect (  )  [private]

Definition at line 106 of file gazebo_ros_pub_world_state.cpp.

void GazeboRosPubWorldState::WorldStateDisconnect (  )  [private]

Definition at line 113 of file gazebo_ros_pub_world_state.cpp.


Member Data Documentation

Definition at line 161 of file gazebo_ros_pub_world_state.h.

Definition at line 156 of file gazebo_ros_pub_world_state.h.

ParamT<std::string>* gazebo::GazeboRosPubWorldState::frameNameP [private]

frame transform name, should match link name

Definition at line 155 of file gazebo_ros_pub_world_state.h.

boost::mutex gazebo::GazeboRosPubWorldState::lock [private]

A mutex to lock access to fields that are used in message callbacks.

Definition at line 144 of file gazebo_ros_pub_world_state.h.

: parent should be a model

Definition at line 137 of file gazebo_ros_pub_world_state.h.

Definition at line 141 of file gazebo_ros_pub_world_state.h.

Definition at line 159 of file gazebo_ros_pub_world_state.h.

Definition at line 148 of file gazebo_ros_pub_world_state.h.

ParamT<std::string>* gazebo::GazeboRosPubWorldState::robotNamespaceP [private]

for setting ROS name space

Definition at line 147 of file gazebo_ros_pub_world_state.h.

: ros node handle and publisher

Definition at line 140 of file gazebo_ros_pub_world_state.h.

Definition at line 152 of file gazebo_ros_pub_world_state.h.

ParamT<std::string>* gazebo::GazeboRosPubWorldState::topicNameP [private]

topic name

Definition at line 151 of file gazebo_ros_pub_world_state.h.

: keep track of number of connections

Definition at line 129 of file gazebo_ros_pub_world_state.h.

: Message for sending world state

Definition at line 134 of file gazebo_ros_pub_world_state.h.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Properties Friends Defines


gazebo_plugins
Author(s): Sachin Chitta, Stu Glaser, John Hsu
autogenerated on Sat Mar 2 13:40:08 2013