$search

gazebo::GazeboRosBlockLaser Class Reference
[ROS Block Laser Scanner Controller Plugin]

ROS laser block simulation. More...

#include <gazebo_ros_block_laser.h>

List of all members.

Public Member Functions

 GazeboRosBlockLaser (Entity *parent)
 Constructor.
virtual ~GazeboRosBlockLaser ()
 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

double GaussianKernel (double mu, double sigma)
 Gaussian noise generator.
void LaserConnect ()
void LaserDisconnect ()
void PutLaserData ()
 Put laser data to the ROS topic.
void QueueThread ()

Private Attributes

boost::thread callback_queue_thread_
sensor_msgs::PointCloud cloudMsg
 ros message
std::string frameName
ParamT< std::string > * frameNameP
 frame transform name, should match link name
double gaussianNoise
ParamT< double > * gaussianNoiseP
 Gaussian noise.
int laserConnectCount
 Keep track of number of connctions.
boost::mutex lock
 A mutex to lock access to fields that are used in message callbacks.
RaySensor * myParent
 The parent sensor.
ros::Publisher pub_
ros::CallbackQueue queue_
std::string robotNamespace
ParamT< std::string > * robotNamespaceP
 for setting ROS name space
ros::NodeHandlerosnode_
 pointer to ros node
std::string topicName
ParamT< std::string > * topicNameP
 topic name

Detailed Description

ROS laser block simulation.

Definition at line 138 of file gazebo_ros_block_laser.h.


Constructor & Destructor Documentation

GazeboRosBlockLaser::GazeboRosBlockLaser ( Entity *  parent  ) 

Constructor.

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

Definition at line 53 of file gazebo_ros_block_laser.cpp.

GazeboRosBlockLaser::~GazeboRosBlockLaser (  )  [virtual]

Destructor.

Definition at line 71 of file gazebo_ros_block_laser.cpp.


Member Function Documentation

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

Finalize the controller.

Definition at line 162 of file gazebo_ros_block_laser.cpp.

double GazeboRosBlockLaser::GaussianKernel ( double  mu,
double  sigma 
) [private]

Gaussian noise generator.

Definition at line 305 of file gazebo_ros_block_laser.cpp.

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

Init the controller.

Definition at line 134 of file gazebo_ros_block_laser.cpp.

void GazeboRosBlockLaser::LaserConnect (  )  [private]

Definition at line 119 of file gazebo_ros_block_laser.cpp.

void GazeboRosBlockLaser::LaserDisconnect (  )  [private]

Definition at line 125 of file gazebo_ros_block_laser.cpp.

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

Load the controller.

Parameters:
node XML config node

Definition at line 82 of file gazebo_ros_block_laser.cpp.

void GazeboRosBlockLaser::PutLaserData (  )  [private]

Put laser data to the ROS topic.

Definition at line 173 of file gazebo_ros_block_laser.cpp.

void GazeboRosBlockLaser::QueueThread (  )  [private]

Definition at line 322 of file gazebo_ros_block_laser.cpp.

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

Update the controller.

Definition at line 144 of file gazebo_ros_block_laser.cpp.


Member Data Documentation

Definition at line 205 of file gazebo_ros_block_laser.h.

ros message

Definition at line 176 of file gazebo_ros_block_laser.h.

Definition at line 185 of file gazebo_ros_block_laser.h.

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

frame transform name, should match link name

FIXME: extract link name directly?

Definition at line 184 of file gazebo_ros_block_laser.h.

Definition at line 189 of file gazebo_ros_block_laser.h.

Gaussian noise.

Definition at line 188 of file gazebo_ros_block_laser.h.

Keep track of number of connctions.

Definition at line 164 of file gazebo_ros_block_laser.h.

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

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

Definition at line 195 of file gazebo_ros_block_laser.h.

The parent sensor.

Definition at line 169 of file gazebo_ros_block_laser.h.

Definition at line 173 of file gazebo_ros_block_laser.h.

Definition at line 203 of file gazebo_ros_block_laser.h.

Definition at line 200 of file gazebo_ros_block_laser.h.

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

for setting ROS name space

Definition at line 199 of file gazebo_ros_block_laser.h.

pointer to ros node

Definition at line 172 of file gazebo_ros_block_laser.h.

Definition at line 180 of file gazebo_ros_block_laser.h.

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

topic name

Definition at line 179 of file gazebo_ros_block_laser.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