gazebo::GazeboRosLaser Class Reference
[ROS Laser Scanner Controller Plugin]

ROS laser scan controller. More...

#include <gazebo_ros_laser.h>

List of all members.

Public Member Functions

 GazeboRosLaser (Entity *parent)
 Constructor.
virtual ~GazeboRosLaser ()
 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 DeprecatedLaserConnect ()
void DeprecatedLaserDisconnect ()
double GaussianKernel (double mu, double sigma)
 Gaussian noise generator.
void LaserConnect ()
void LaserDisconnect ()
void PutLaserData ()
 Put laser data to the ROS topic.

Private Attributes

ros::Publisher deprecated_pub_
int deprecatedLaserConnectCount
std::string deprecatedTopicName
ParamT< std::string > * deprecatedTopicNameP
std::string frameName
ParamT< std::string > * frameNameP
 frame transform name, should match link name
double gaussianNoise
ParamT< double > * gaussianNoiseP
 Gaussian noise.
double hokuyoMinIntensity
ParamT< double > * hokuyoMinIntensityP
 hack to mimic hokuyo intensity cutoff of 100
int laserConnectCount
 Keep track of number of connctions.
sensor_msgs::LaserScan laserMsg
 ros message
boost::mutex lock
 A mutex to lock access to fields that are used in message callbacks.
RaySensor * myParent
 The parent sensor.
ros::Publisher pub_
std::string robotNamespace
ParamT< std::string > * robotNamespaceP
 for setting ROS name space
ros::NodeHandle * rosnode_
 pointer to ros node
std::string topicName
ParamT< std::string > * topicNameP
 topic name

Detailed Description

ROS laser scan controller.

Definition at line 120 of file gazebo_ros_laser.h.


Constructor & Destructor Documentation

gazebo::GazeboRosLaser::GazeboRosLaser ( Entity *  parent  ) 

Constructor.

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

Definition at line 38 of file gazebo_ros_laser.cpp.

gazebo::GazeboRosLaser::~GazeboRosLaser (  )  [virtual]

Destructor.

Definition at line 61 of file gazebo_ros_laser.cpp.


Member Function Documentation

void gazebo::GazeboRosLaser::DeprecatedLaserConnect (  )  [private]

Definition at line 162 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::DeprecatedLaserDisconnect (  )  [private]

Definition at line 170 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::FiniChild (  )  [protected, virtual]

Finalize the controller.

Definition at line 199 of file gazebo_ros_laser.cpp.

double gazebo::GazeboRosLaser::GaussianKernel ( double  mu,
double  sigma 
) [private]

Gaussian noise generator.

Definition at line 292 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::InitChild (  )  [protected, virtual]

Init the controller.

Definition at line 134 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::LaserConnect (  )  [private]

Definition at line 146 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::LaserDisconnect (  )  [private]

Definition at line 152 of file gazebo_ros_laser.cpp.

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

Load the controller.

Parameters:
node XML config node

Definition at line 74 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::PutLaserData (  )  [private]

Put laser data to the ROS topic.

Definition at line 210 of file gazebo_ros_laser.cpp.

void gazebo::GazeboRosLaser::UpdateChild (  )  [protected, virtual]

Update the controller.

Definition at line 180 of file gazebo_ros_laser.cpp.


Member Data Documentation

ros::Publisher gazebo::GazeboRosLaser::deprecated_pub_ [private]

Definition at line 159 of file gazebo_ros_laser.h.

Definition at line 149 of file gazebo_ros_laser.h.

Definition at line 168 of file gazebo_ros_laser.h.

ParamT<std::string>* gazebo::GazeboRosLaser::deprecatedTopicNameP [private]

Definition at line 167 of file gazebo_ros_laser.h.

std::string gazebo::GazeboRosLaser::frameName [private]

Definition at line 172 of file gazebo_ros_laser.h.

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

frame transform name, should match link name

Definition at line 171 of file gazebo_ros_laser.h.

Definition at line 176 of file gazebo_ros_laser.h.

ParamT<double>* gazebo::GazeboRosLaser::gaussianNoiseP [private]

Gaussian noise.

Definition at line 175 of file gazebo_ros_laser.h.

Definition at line 186 of file gazebo_ros_laser.h.

hack to mimic hokuyo intensity cutoff of 100

Definition at line 185 of file gazebo_ros_laser.h.

Keep track of number of connctions.

Definition at line 146 of file gazebo_ros_laser.h.

sensor_msgs::LaserScan gazebo::GazeboRosLaser::laserMsg [private]

ros message

Definition at line 162 of file gazebo_ros_laser.h.

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

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

Definition at line 182 of file gazebo_ros_laser.h.

RaySensor* gazebo::GazeboRosLaser::myParent [private]

The parent sensor.

Definition at line 154 of file gazebo_ros_laser.h.

ros::Publisher gazebo::GazeboRosLaser::pub_ [private]

Definition at line 158 of file gazebo_ros_laser.h.

Definition at line 190 of file gazebo_ros_laser.h.

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

for setting ROS name space

Definition at line 189 of file gazebo_ros_laser.h.

ros::NodeHandle* gazebo::GazeboRosLaser::rosnode_ [private]

pointer to ros node

Definition at line 157 of file gazebo_ros_laser.h.

std::string gazebo::GazeboRosLaser::topicName [private]

Definition at line 166 of file gazebo_ros_laser.h.

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

topic name

Definition at line 165 of file gazebo_ros_laser.h.


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


gazebo_plugins
Author(s): Sachin Chitta, Stu Glaser, John Hsu
autogenerated on Fri Jan 11 10:09:35 2013