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
 
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

◆ GazeboRosLaser() [1/2]

gazebo::GazeboRosLaser::GazeboRosLaser ( )

Constructor.

Definition at line 52 of file gazebo_ros_gpu_laser.cpp.

◆ ~GazeboRosLaser() [1/2]

gazebo::GazeboRosLaser::~GazeboRosLaser ( )

Destructor.

Definition at line 58 of file gazebo_ros_gpu_laser.cpp.

◆ GazeboRosLaser() [2/2]

gazebo::GazeboRosLaser::GazeboRosLaser ( )

Constructor.

◆ ~GazeboRosLaser() [2/2]

gazebo::GazeboRosLaser::~GazeboRosLaser ( )

Destructor.

Member Function Documentation

◆ LaserConnect() [1/2]

void gazebo::GazeboRosLaser::LaserConnect ( )
private

Definition at line 165 of file gazebo_ros_gpu_laser.cpp.

◆ LaserConnect() [2/2]

void gazebo::GazeboRosLaser::LaserConnect ( )
private

◆ LaserDisconnect() [1/2]

void gazebo::GazeboRosLaser::LaserDisconnect ( )
private

◆ LaserDisconnect() [2/2]

void gazebo::GazeboRosLaser::LaserDisconnect ( )
private

Definition at line 176 of file gazebo_ros_gpu_laser.cpp.

◆ Load() [1/2]

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.

◆ Load() [2/2]

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

Load the plugin.

Parameters
takein SDF root element

◆ LoadThread() [1/2]

void gazebo::GazeboRosLaser::LoadThread ( )
private

Definition at line 123 of file gazebo_ros_gpu_laser.cpp.

◆ LoadThread() [2/2]

void gazebo::GazeboRosLaser::LoadThread ( )
private

◆ OnScan() [1/2]

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

Definition at line 185 of file gazebo_ros_gpu_laser.cpp.

◆ OnScan() [2/2]

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

Member Data Documentation

◆ deferred_load_thread_

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

Definition at line 88 of file gazebo_ros_gpu_laser.h.

◆ frame_name_

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_node_

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

Definition at line 90 of file gazebo_ros_gpu_laser.h.

◆ gazebo_ros_

GazeboRosPtr gazebo::GazeboRosLaser::gazebo_ros_
private

Definition at line 63 of file gazebo_ros_laser.h.

◆ laser_connect_count_

int gazebo::GazeboRosLaser::laser_connect_count_
private

Keep track of number of connctions.

Definition at line 58 of file gazebo_ros_gpu_laser.h.

◆ laser_scan_sub_

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

Definition at line 91 of file gazebo_ros_gpu_laser.h.

◆ parent_ray_sensor_ [1/2]

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

The parent sensor.

Definition at line 66 of file gazebo_ros_gpu_laser.h.

◆ parent_ray_sensor_ [2/2]

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

The parent sensor.

Definition at line 67 of file gazebo_ros_laser.h.

◆ pmq

PubMultiQueue gazebo::GazeboRosLaser::pmq
private

prevents blocking

Definition at line 95 of file gazebo_ros_gpu_laser.h.

◆ pub_

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

Definition at line 70 of file gazebo_ros_gpu_laser.h.

◆ pub_queue_

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

Definition at line 71 of file gazebo_ros_gpu_laser.h.

◆ robot_namespace_

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

for setting ROS name space

Definition at line 83 of file gazebo_ros_gpu_laser.h.

◆ rosnode_

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

pointer to ros node

Definition at line 69 of file gazebo_ros_gpu_laser.h.

◆ sdf

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

Definition at line 86 of file gazebo_ros_gpu_laser.h.

◆ tf_prefix_

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

tf prefix

Definition at line 80 of file gazebo_ros_gpu_laser.h.

◆ topic_name_

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

topic name

Definition at line 74 of file gazebo_ros_gpu_laser.h.

◆ world_

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

Definition at line 64 of file gazebo_ros_gpu_laser.h.

◆ world_name_

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 Wed Aug 24 2022 02:47:52