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

Sick LMS 200 lase controller. More...

#include <gazebo_ros_ir.h>

List of all members.

Public Member Functions

 GazeboRosIr (Entity *parent)
 Constructor.
virtual ~GazeboRosIr ()
 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 DeprecatedIrConnect ()
void DeprecatedIrDisconnect ()
double GaussianKernel (double mu, double sigma)
 Gaussian noise generator.
void IrConnect ()
void IrDisconnect ()
void IrQueueThread ()
void PutIRData ()
 Put IR data to the iface.

Private Attributes

boost::thread callback_queue_thread_
ros::Publisher deprecated_pub_
int deprecatedIrConnectCount
std::string deprecatedTopicName
ParamT< std::string > * deprecatedTopicNameP
double fov
ParamT< double > * fovP
 Max Range.
std::string frameName
ParamT< std::string > * frameNameP
 frame transform name, should match link name
double gaussianNoise
ParamT< double > * gaussianNoiseP
 Gaussian noise.
ros::CallbackQueue ir_queue_
int irConnectCount
 Keep track of number of connctions.
libgazebo::IRIface * irIface
sensor_msgs::Range irMsg
 ros message
boost::mutex lock
 A mutex to lock access to fields that are used in message callbacks.
double maxRange
ParamT< double > * maxRangeP
 Max Range.
double minRange
ParamT< double > * minRangeP
 Min Range.
IRSensor * myParent
 The parent sensor.
ros::Publisher pub_
std::string radiation
ParamT< std::string > * radiationP
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

Sick LMS 200 lase controller.

This is a controller that simulates a ir array

Definition at line 85 of file gazebo_ros_ir.h.


Constructor & Destructor Documentation

gazebo::GazeboRosIr::GazeboRosIr ( Entity *  parent)

Constructor.

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

Definition at line 51 of file gazebo_ros_ir.cpp.

Destructor.

Definition at line 76 of file gazebo_ros_ir.cpp.


Member Function Documentation

Definition at line 190 of file gazebo_ros_ir.cpp.

Definition at line 198 of file gazebo_ros_ir.cpp.

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

Finalize the controller.

Returns:
0 on success

Definition at line 208 of file gazebo_ros_ir.cpp.

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

Gaussian noise generator.

Definition at line 219 of file gazebo_ros_ir.cpp.

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

Init the controller.

Returns:
0 on success

Definition at line 161 of file gazebo_ros_ir.cpp.

void gazebo::GazeboRosIr::IrConnect ( ) [private]

Definition at line 173 of file gazebo_ros_ir.cpp.

Definition at line 180 of file gazebo_ros_ir.cpp.

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

Load the controller.

Parameters:
nodeXML config node
Returns:
0 on success

Definition at line 91 of file gazebo_ros_ir.cpp.

void gazebo::GazeboRosIr::PutIRData ( ) [private]

Put IR data to the iface.

Definition at line 268 of file gazebo_ros_ir.cpp.

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

Update the controller.

Returns:
0 on success

Member Data Documentation

Definition at line 175 of file gazebo_ros_ir.h.

Definition at line 128 of file gazebo_ros_ir.h.

Definition at line 118 of file gazebo_ros_ir.h.

Definition at line 137 of file gazebo_ros_ir.h.

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

Definition at line 136 of file gazebo_ros_ir.h.

double gazebo::GazeboRosIr::fov [private]

Definition at line 160 of file gazebo_ros_ir.h.

ParamT<double>* gazebo::GazeboRosIr::fovP [private]

Max Range.

Definition at line 159 of file gazebo_ros_ir.h.

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

Definition at line 141 of file gazebo_ros_ir.h.

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

frame transform name, should match link name

Definition at line 140 of file gazebo_ros_ir.h.

Definition at line 145 of file gazebo_ros_ir.h.

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

Gaussian noise.

Definition at line 144 of file gazebo_ros_ir.h.

Definition at line 173 of file gazebo_ros_ir.h.

Keep track of number of connctions.

Definition at line 115 of file gazebo_ros_ir.h.

libgazebo::IRIface* gazebo::GazeboRosIr::irIface [private]

Definition at line 169 of file gazebo_ros_ir.h.

sensor_msgs::Range gazebo::GazeboRosIr::irMsg [private]

ros message

Definition at line 131 of file gazebo_ros_ir.h.

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

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

Definition at line 163 of file gazebo_ros_ir.h.

Definition at line 154 of file gazebo_ros_ir.h.

ParamT<double>* gazebo::GazeboRosIr::maxRangeP [private]

Max Range.

Definition at line 153 of file gazebo_ros_ir.h.

Definition at line 157 of file gazebo_ros_ir.h.

ParamT<double>* gazebo::GazeboRosIr::minRangeP [private]

Min Range.

Definition at line 156 of file gazebo_ros_ir.h.

IRSensor* gazebo::GazeboRosIr::myParent [private]

The parent sensor.

Definition at line 123 of file gazebo_ros_ir.h.

Definition at line 127 of file gazebo_ros_ir.h.

std::string gazebo::GazeboRosIr::radiation [private]

Definition at line 147 of file gazebo_ros_ir.h.

ParamT<std::string>* gazebo::GazeboRosIr::radiationP [private]

Definition at line 146 of file gazebo_ros_ir.h.

std::string gazebo::GazeboRosIr::robotNamespace [private]

Definition at line 167 of file gazebo_ros_ir.h.

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

for setting ROS name space

Definition at line 166 of file gazebo_ros_ir.h.

pointer to ros node

Definition at line 126 of file gazebo_ros_ir.h.

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

Definition at line 135 of file gazebo_ros_ir.h.

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

topic name

Definition at line 134 of file gazebo_ros_ir.h.


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


range_gazebo_plugin
Author(s): Jose Capriles
autogenerated on Thu Jan 2 2014 11:37:22