Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes
gazebo::GazeboRosProjector Class Reference

#include <gazebo_ros_projector.h>

List of all members.

Public Member Functions

 GazeboRosProjector ()
 Constructor.
virtual ~GazeboRosProjector ()
 Destructor.

Protected Member Functions

virtual void Load (physics::ModelPtr _parent, sdf::ElementPtr _sdf)
 Load the controller.

Private Member Functions

void LoadImage (const std_msgs::String::ConstPtr &imageMsg)
 Callback when a texture is published.
void QueueThread ()
void ToggleProjector (const std_msgs::Int32::ConstPtr &projectorMsg)
 Callbakc when a projector toggle is published.

Private Attributes

event::ConnectionPtr add_model_event_
boost::thread callback_queue_thread_
ros::Subscriber imageSubscriber_
transport::NodePtr node_
transport::PublisherPtr projector_pub_
std::string projector_topic_name_
 ROS projector topic name.
ros::Subscriber projectorSubscriber_
ros::CallbackQueue queue_
std::string robot_namespace_
 For setting ROS name space.
ros::NodeHandlerosnode_
 A pointer to the ROS node. A node will be instantiated if it does not exist.
std::string texture_topic_name_
 ROS texture topic name.
physics::WorldPtr world_
 pointer to the world

Detailed Description

Definition at line 75 of file gazebo_ros_projector.h.


Constructor & Destructor Documentation

Constructor.

Parameters:
parentThe parent entity, must be a Model

Definition at line 54 of file gazebo_ros_projector.cpp.

Destructor.

Definition at line 62 of file gazebo_ros_projector.cpp.


Member Function Documentation

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

Load the controller.

Parameters:
nodeXML config node

Definition at line 75 of file gazebo_ros_projector.cpp.

void gazebo::GazeboRosProjector::LoadImage ( const std_msgs::String::ConstPtr &  imageMsg) [private]

Callback when a texture is published.

Definition at line 141 of file gazebo_ros_projector.cpp.

Definition at line 162 of file gazebo_ros_projector.cpp.

void gazebo::GazeboRosProjector::ToggleProjector ( const std_msgs::Int32::ConstPtr &  projectorMsg) [private]

Callbakc when a projector toggle is published.

Definition at line 151 of file gazebo_ros_projector.cpp.


Member Data Documentation

Definition at line 116 of file gazebo_ros_projector.h.

Definition at line 114 of file gazebo_ros_projector.h.

Definition at line 99 of file gazebo_ros_projector.h.

transport::NodePtr gazebo::GazeboRosProjector::node_ [private]

Definition at line 118 of file gazebo_ros_projector.h.

transport::PublisherPtr gazebo::GazeboRosProjector::projector_pub_ [private]

Definition at line 119 of file gazebo_ros_projector.h.

ROS projector topic name.

Definition at line 106 of file gazebo_ros_projector.h.

Definition at line 100 of file gazebo_ros_projector.h.

Definition at line 112 of file gazebo_ros_projector.h.

For setting ROS name space.

Definition at line 109 of file gazebo_ros_projector.h.

A pointer to the ROS node. A node will be instantiated if it does not exist.

Definition at line 98 of file gazebo_ros_projector.h.

ROS texture topic name.

Definition at line 103 of file gazebo_ros_projector.h.

physics::WorldPtr gazebo::GazeboRosProjector::world_ [private]

pointer to the world

Definition at line 89 of file gazebo_ros_projector.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