#include <gazebo_ros_gpu_laser.h>
Public Member Functions | |
GazeboRosLaser () | |
Constructor. | |
GazeboRosLaser () | |
Constructor. | |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf) |
Load the plugin. | |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf) |
Load the plugin. | |
~GazeboRosLaser () | |
Destructor. | |
~GazeboRosLaser () | |
Destructor. | |
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 | |
gazebo::transport::NodePtr | gazebo_node_ |
GazeboRosPtr | gazebo_ros_ |
int | laser_connect_count_ |
Keep track of number of connctions. | |
gazebo::transport::SubscriberPtr | laser_scan_sub_ |
sensors::GpuRaySensorPtr | parent_ray_sensor_ |
The parent sensor. | |
sensors::RaySensorPtr | parent_ray_sensor_ |
The parent sensor. | |
PubMultiQueue | pmq |
prevents blocking | |
ros::Publisher | pub_ |
PubQueue < sensor_msgs::LaserScan > ::Ptr | pub_queue_ |
std::string | robot_namespace_ |
for setting ROS name space | |
ros::NodeHandle * | rosnode_ |
pointer to ros node | |
sdf::ElementPtr | sdf |
unsigned int | seed |
std::string | tf_prefix_ |
tf prefix | |
std::string | topic_name_ |
topic name | |
physics::WorldPtr | world_ |
std::string | world_name_ |
Definition at line 45 of file gazebo_ros_gpu_laser.h.
Constructor.
Definition at line 52 of file gazebo_ros_gpu_laser.cpp.
Destructor.
Definition at line 59 of file gazebo_ros_gpu_laser.cpp.
Constructor.
Destructor.
void gazebo::GazeboRosLaser::LaserConnect | ( | ) | [private] |
Definition at line 172 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 187 of file gazebo_ros_gpu_laser.cpp.
void gazebo::GazeboRosLaser::Load | ( | sensors::SensorPtr | _parent, |
sdf::ElementPtr | _sdf | ||
) |
Load the plugin.
take | in SDF root element |
Definition at line 69 of file gazebo_ros_gpu_laser.cpp.
void gazebo::GazeboRosLaser::Load | ( | sensors::SensorPtr | _parent, |
sdf::ElementPtr | _sdf | ||
) |
Load the plugin.
take | in SDF root element |
void gazebo::GazeboRosLaser::LoadThread | ( | ) | [private] |
Definition at line 130 of file gazebo_ros_gpu_laser.cpp.
void gazebo::GazeboRosLaser::LoadThread | ( | ) | [private] |
void gazebo::GazeboRosLaser::OnScan | ( | ConstLaserScanStampedPtr & | _msg | ) | [private] |
Definition at line 196 of file gazebo_ros_gpu_laser.cpp.
void gazebo::GazeboRosLaser::OnScan | ( | ConstLaserScanStampedPtr & | _msg | ) | [private] |
boost::thread gazebo::GazeboRosLaser::deferred_load_thread_ [private] |
Definition at line 88 of file gazebo_ros_gpu_laser.h.
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.
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.
tf prefix
Definition at line 80 of file gazebo_ros_gpu_laser.h.
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.
Definition at line 63 of file gazebo_ros_gpu_laser.h.