Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
gazebo::GazeboRosBlockLaser Class Reference

#include <gazebo_ros_block_laser.h>

Inheritance diagram for gazebo::GazeboRosBlockLaser:
Inheritance graph
[legend]

Public Member Functions

 GazeboRosBlockLaser ()
 Constructor. More...
 
void Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
 Load the plugin. More...
 
void OnStats (const boost::shared_ptr< msgs::WorldStatistics const > &_msg)
 
 ~GazeboRosBlockLaser ()
 Destructor. More...
 

Protected Member Functions

virtual void OnNewLaserScans ()
 Update the controller. More...
 

Private Member Functions

double GaussianKernel (double mu, double sigma)
 Gaussian noise generator. More...
 
void LaserConnect ()
 
void LaserDisconnect ()
 
void LaserQueueThread ()
 
void PutLaserData (common::Time &_updateTime)
 Put laser data to the ROS topic. More...
 

Private Attributes

boost::thread callback_laser_queue_thread_
 
sensor_msgs::PointCloud cloud_msg_
 ros message More...
 
std::string frame_name_
 frame transform name, should match link name More...
 
double gaussian_noise_
 Gaussian noise. More...
 
double hokuyo_min_intensity_
 hack to mimic hokuyo intensity cutoff of 100 More...
 
int laser_connect_count_
 Keep track of number of connctions. More...
 
ros::CallbackQueue laser_queue_
 
common::Time last_update_time_
 
boost::mutex lock
 A mutex to lock access to fields that are used in message callbacks. More...
 
transport::NodePtr node_
 
sensors::RaySensorPtr parent_ray_sensor_
 
sensors::SensorPtr parent_sensor_
 The parent sensor. More...
 
ros::Publisher pub_
 
std::string robot_namespace_
 for setting ROS name space More...
 
ros::NodeHandlerosnode_
 pointer to ros node More...
 
common::Time sim_time_
 
std::string topic_name_
 topic name More...
 
double update_rate_
 update rate of this sensor More...
 
physics::WorldPtr world_
 

Detailed Description

Definition at line 49 of file gazebo_ros_block_laser.h.

Constructor & Destructor Documentation

◆ GazeboRosBlockLaser()

gazebo::GazeboRosBlockLaser::GazeboRosBlockLaser ( )

Constructor.

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

Definition at line 58 of file gazebo_ros_block_laser.cpp.

◆ ~GazeboRosBlockLaser()

gazebo::GazeboRosBlockLaser::~GazeboRosBlockLaser ( )

Destructor.

Definition at line 64 of file gazebo_ros_block_laser.cpp.

Member Function Documentation

◆ GaussianKernel()

double gazebo::GazeboRosBlockLaser::GaussianKernel ( double  mu,
double  sigma 
)
private

Gaussian noise generator.

Definition at line 392 of file gazebo_ros_block_laser.cpp.

◆ LaserConnect()

void gazebo::GazeboRosBlockLaser::LaserConnect ( )
private

Definition at line 197 of file gazebo_ros_block_laser.cpp.

◆ LaserDisconnect()

void gazebo::GazeboRosBlockLaser::LaserDisconnect ( )
private

Definition at line 204 of file gazebo_ros_block_laser.cpp.

◆ LaserQueueThread()

void gazebo::GazeboRosBlockLaser::LaserQueueThread ( )
private

Definition at line 409 of file gazebo_ros_block_laser.cpp.

◆ Load()

void gazebo::GazeboRosBlockLaser::Load ( sensors::SensorPtr  _parent,
sdf::ElementPtr  _sdf 
)

Load the plugin.

Parameters
takein SDF root element

Definition at line 78 of file gazebo_ros_block_laser.cpp.

◆ OnNewLaserScans()

void gazebo::GazeboRosBlockLaser::OnNewLaserScans ( )
protectedvirtual

Update the controller.

Definition at line 214 of file gazebo_ros_block_laser.cpp.

◆ OnStats()

void gazebo::GazeboRosBlockLaser::OnStats ( const boost::shared_ptr< msgs::WorldStatistics const > &  _msg)

Definition at line 419 of file gazebo_ros_block_laser.cpp.

◆ PutLaserData()

void gazebo::GazeboRosBlockLaser::PutLaserData ( common::Time &  _updateTime)
private

Put laser data to the ROS topic.

Definition at line 248 of file gazebo_ros_block_laser.cpp.

Member Data Documentation

◆ callback_laser_queue_thread_

boost::thread gazebo::GazeboRosBlockLaser::callback_laser_queue_thread_
private

Definition at line 116 of file gazebo_ros_block_laser.h.

◆ cloud_msg_

sensor_msgs::PointCloud gazebo::GazeboRosBlockLaser::cloud_msg_
private

ros message

Definition at line 86 of file gazebo_ros_block_laser.h.

◆ frame_name_

std::string gazebo::GazeboRosBlockLaser::frame_name_
private

frame transform name, should match link name

Definition at line 92 of file gazebo_ros_block_laser.h.

◆ gaussian_noise_

double gazebo::GazeboRosBlockLaser::gaussian_noise_
private

Gaussian noise.

Definition at line 95 of file gazebo_ros_block_laser.h.

◆ hokuyo_min_intensity_

double gazebo::GazeboRosBlockLaser::hokuyo_min_intensity_
private

hack to mimic hokuyo intensity cutoff of 100

Definition at line 105 of file gazebo_ros_block_laser.h.

◆ laser_connect_count_

int gazebo::GazeboRosBlockLaser::laser_connect_count_
private

Keep track of number of connctions.

Definition at line 71 of file gazebo_ros_block_laser.h.

◆ laser_queue_

ros::CallbackQueue gazebo::GazeboRosBlockLaser::laser_queue_
private

Definition at line 114 of file gazebo_ros_block_laser.h.

◆ last_update_time_

common::Time gazebo::GazeboRosBlockLaser::last_update_time_
private

Definition at line 68 of file gazebo_ros_block_laser.h.

◆ lock

boost::mutex gazebo::GazeboRosBlockLaser::lock
private

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

Definition at line 101 of file gazebo_ros_block_laser.h.

◆ node_

transport::NodePtr gazebo::GazeboRosBlockLaser::node_
private

Definition at line 119 of file gazebo_ros_block_laser.h.

◆ parent_ray_sensor_

sensors::RaySensorPtr gazebo::GazeboRosBlockLaser::parent_ray_sensor_
private

Definition at line 79 of file gazebo_ros_block_laser.h.

◆ parent_sensor_

sensors::SensorPtr gazebo::GazeboRosBlockLaser::parent_sensor_
private

The parent sensor.

Definition at line 78 of file gazebo_ros_block_laser.h.

◆ pub_

ros::Publisher gazebo::GazeboRosBlockLaser::pub_
private

Definition at line 83 of file gazebo_ros_block_laser.h.

◆ robot_namespace_

std::string gazebo::GazeboRosBlockLaser::robot_namespace_
private

for setting ROS name space

Definition at line 111 of file gazebo_ros_block_laser.h.

◆ rosnode_

ros::NodeHandle* gazebo::GazeboRosBlockLaser::rosnode_
private

pointer to ros node

Definition at line 82 of file gazebo_ros_block_laser.h.

◆ sim_time_

common::Time gazebo::GazeboRosBlockLaser::sim_time_
private

Definition at line 120 of file gazebo_ros_block_laser.h.

◆ topic_name_

std::string gazebo::GazeboRosBlockLaser::topic_name_
private

topic name

Definition at line 89 of file gazebo_ros_block_laser.h.

◆ update_rate_

double gazebo::GazeboRosBlockLaser::update_rate_
private

update rate of this sensor

Definition at line 108 of file gazebo_ros_block_laser.h.

◆ world_

physics::WorldPtr gazebo::GazeboRosBlockLaser::world_
private

Definition at line 76 of file gazebo_ros_block_laser.h.


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


gazebo_plugins
Author(s): John Hsu
autogenerated on Thu Sep 5 2024 02:49:55