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

#include <gazebo_ros_gpu_laser.h>

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

Public Member Functions

 GazeboRosLaser ()
 Constructor. More...
 
 GazeboRosLaser ()
 Constructor. More...
 
void Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
 Load the plugin. More...
 
void Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf)
 Load the plugin. More...
 
 ~GazeboRosLaser ()
 Destructor. More...
 
 ~GazeboRosLaser ()
 Destructor. More...
 

Private Member Functions

void LaserConnect ()
 
void LaserConnect ()
 
void LaserDisconnect ()
 
void LaserDisconnect ()
 
void LoadThread ()
 
void LoadThread ()
 
void OnScan (ConstLaserScanStampedPtr &_msg)
 
void OnScan (ConstLaserScanStampedPtr &_msg)
 

Private Attributes

boost::thread deferred_load_thread_
 
std::string frame_name_
 frame transform name, should match link name More...
 
gazebo::transport::NodePtr gazebo_node_
 
GazeboRosPtr gazebo_ros_
 
int laser_connect_count_
 Keep track of number of connctions. More...
 
gazebo::transport::SubscriberPtr laser_scan_sub_
 
sensors::GpuRaySensorPtr parent_ray_sensor_
 The parent sensor. More...
 
sensors::RaySensorPtr parent_ray_sensor_
 The parent sensor. More...
 
PubMultiQueue pmq
 prevents blocking More...
 
ros::Publisher pub_
 
PubQueue< sensor_msgs::LaserScan >::Ptr pub_queue_
 
std::string robot_namespace_
 for setting ROS name space More...
 
ros::NodeHandlerosnode_
 pointer to ros node More...
 
sdf::ElementPtr sdf
 
unsigned int seed
 
std::string tf_prefix_
 tf prefix More...
 
std::string topic_name_
 topic name More...
 
physics::WorldPtr world_
 
std::string world_name_
 

Detailed Description

Definition at line 45 of file gazebo_ros_gpu_laser.h.

Constructor & Destructor Documentation

gazebo::GazeboRosLaser::GazeboRosLaser ( )

Constructor.

Definition at line 51 of file gazebo_ros_gpu_laser.cpp.

gazebo::GazeboRosLaser::~GazeboRosLaser ( )

Destructor.

Definition at line 58 of file gazebo_ros_gpu_laser.cpp.

gazebo::GazeboRosLaser::GazeboRosLaser ( )

Constructor.

gazebo::GazeboRosLaser::~GazeboRosLaser ( )

Destructor.

Member Function Documentation

void gazebo::GazeboRosLaser::LaserConnect ( )
private

Definition at line 165 of file gazebo_ros_gpu_laser.cpp.

void gazebo::GazeboRosLaser::LaserConnect ( )
private
void gazebo::GazeboRosLaser::LaserDisconnect ( )
private
void gazebo::GazeboRosLaser::LaserDisconnect ( )
private

Definition at line 176 of file gazebo_ros_gpu_laser.cpp.

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

Load the plugin.

Parameters
takein SDF root element

Definition at line 68 of file gazebo_ros_gpu_laser.cpp.

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

Load the plugin.

Parameters
takein SDF root element
void gazebo::GazeboRosLaser::LoadThread ( )
private

Definition at line 123 of file gazebo_ros_gpu_laser.cpp.

void gazebo::GazeboRosLaser::LoadThread ( )
private
void gazebo::GazeboRosLaser::OnScan ( ConstLaserScanStampedPtr &  _msg)
private

Definition at line 185 of file gazebo_ros_gpu_laser.cpp.

void gazebo::GazeboRosLaser::OnScan ( ConstLaserScanStampedPtr &  _msg)
private

Member Data Documentation

boost::thread gazebo::GazeboRosLaser::deferred_load_thread_
private

Definition at line 88 of file gazebo_ros_gpu_laser.h.

std::string gazebo::GazeboRosLaser::frame_name_
private

frame transform name, should match link name

Definition at line 77 of file gazebo_ros_gpu_laser.h.

gazebo::transport::NodePtr gazebo::GazeboRosLaser::gazebo_node_
private

Definition at line 91 of file gazebo_ros_gpu_laser.h.

GazeboRosPtr gazebo::GazeboRosLaser::gazebo_ros_
private

Definition at line 63 of file gazebo_ros_laser.h.

int gazebo::GazeboRosLaser::laser_connect_count_
private

Keep track of number of connctions.

Definition at line 58 of file gazebo_ros_gpu_laser.h.

gazebo::transport::SubscriberPtr gazebo::GazeboRosLaser::laser_scan_sub_
private

Definition at line 92 of file gazebo_ros_gpu_laser.h.

sensors::GpuRaySensorPtr gazebo::GazeboRosLaser::parent_ray_sensor_
private

The parent sensor.

Definition at line 66 of file gazebo_ros_gpu_laser.h.

sensors::RaySensorPtr gazebo::GazeboRosLaser::parent_ray_sensor_
private

The parent sensor.

Definition at line 67 of file gazebo_ros_laser.h.

PubMultiQueue gazebo::GazeboRosLaser::pmq
private

prevents blocking

Definition at line 96 of file gazebo_ros_gpu_laser.h.

ros::Publisher gazebo::GazeboRosLaser::pub_
private

Definition at line 70 of file gazebo_ros_gpu_laser.h.

PubQueue< sensor_msgs::LaserScan >::Ptr gazebo::GazeboRosLaser::pub_queue_
private

Definition at line 71 of file gazebo_ros_gpu_laser.h.

std::string gazebo::GazeboRosLaser::robot_namespace_
private

for setting ROS name space

Definition at line 83 of file gazebo_ros_gpu_laser.h.

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

pointer to ros node

Definition at line 69 of file gazebo_ros_gpu_laser.h.

sdf::ElementPtr gazebo::GazeboRosLaser::sdf
private

Definition at line 86 of file gazebo_ros_gpu_laser.h.

unsigned int gazebo::GazeboRosLaser::seed
private

Definition at line 89 of file gazebo_ros_gpu_laser.h.

std::string gazebo::GazeboRosLaser::tf_prefix_
private

tf prefix

Definition at line 80 of file gazebo_ros_gpu_laser.h.

std::string gazebo::GazeboRosLaser::topic_name_
private

topic name

Definition at line 74 of file gazebo_ros_gpu_laser.h.

physics::WorldPtr gazebo::GazeboRosLaser::world_
private

Definition at line 64 of file gazebo_ros_gpu_laser.h.

std::string gazebo::GazeboRosLaser::world_name_
private

Definition at line 63 of file gazebo_ros_gpu_laser.h.


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


gazebo_plugins
Author(s): John Hsu
autogenerated on Tue Apr 6 2021 02:19:40