#include <gazebo_ros_range.h>
Public Member Functions | |
GazeboRosRange () | |
Constructor. More... | |
void | Load (sensors::SensorPtr _parent, sdf::ElementPtr _sdf) |
Load the plugin. More... | |
~GazeboRosRange () | |
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 | LoadThread () |
void | PutRangeData (common::Time &_updateTime) |
Put range data to the ROS topic. More... | |
void | RangeConnect () |
void | RangeDisconnect () |
void | RangeQueueThread () |
Private Attributes | |
boost::thread | callback_queue_thread_ |
boost::thread | deferred_load_thread_ |
double | fov_ |
sensor field of view 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... | |
common::Time | last_update_time_ |
boost::mutex | lock_ |
mutex to lock access to fields that are used in message callbacks More... | |
sensors::RaySensorPtr | parent_ray_sensor_ |
sensors::SensorPtr | parent_sensor_ |
The parent sensor. More... | |
ros::Publisher | pub_ |
std::string | radiation_ |
radiation type : ultrasound or infrared More... | |
int | range_connect_count_ |
Keep track of number of connctions. More... | |
sensor_msgs::Range | range_msg_ |
ros message More... | |
ros::CallbackQueue | range_queue_ |
std::string | robot_namespace_ |
for setting ROS name space More... | |
ros::NodeHandle * | rosnode_ |
pointer to ros node More... | |
sdf::ElementPtr | sdf |
unsigned int | seed |
std::string | topic_name_ |
topic name More... | |
double | update_period_ |
double | update_rate_ |
update rate of this sensor More... | |
physics::WorldPtr | world_ |
Definition at line 66 of file gazebo_ros_range.h.
gazebo::GazeboRosRange::GazeboRosRange | ( | ) |
Constructor.
Definition at line 63 of file gazebo_ros_range.cpp.
gazebo::GazeboRosRange::~GazeboRosRange | ( | ) |
Destructor.
Definition at line 70 of file gazebo_ros_range.cpp.
|
private |
Gaussian noise generator.
Definition at line 315 of file gazebo_ros_range.cpp.
void gazebo::GazeboRosRange::Load | ( | sensors::SensorPtr | _parent, |
sdf::ElementPtr | _sdf | ||
) |
Load the plugin.
take | in SDF root element |
Definition at line 82 of file gazebo_ros_range.cpp.
|
private |
Definition at line 192 of file gazebo_ros_range.cpp.
|
protectedvirtual |
Update the controller.
Definition at line 242 of file gazebo_ros_range.cpp.
|
private |
Put range data to the ROS topic.
Definition at line 273 of file gazebo_ros_range.cpp.
|
private |
Definition at line 224 of file gazebo_ros_range.cpp.
|
private |
Definition at line 231 of file gazebo_ros_range.cpp.
|
private |
Definition at line 339 of file gazebo_ros_range.cpp.
|
private |
Definition at line 136 of file gazebo_ros_range.h.
|
private |
Definition at line 141 of file gazebo_ros_range.h.
|
private |
sensor field of view
Definition at line 113 of file gazebo_ros_range.h.
|
private |
frame transform name, should match link name
Definition at line 107 of file gazebo_ros_range.h.
|
private |
Gaussian noise.
Definition at line 115 of file gazebo_ros_range.h.
|
private |
hack to mimic hokuyo intensity cutoff of 100
Definition at line 124 of file gazebo_ros_range.h.
|
private |
Definition at line 129 of file gazebo_ros_range.h.
|
private |
mutex to lock access to fields that are used in message callbacks
Definition at line 121 of file gazebo_ros_range.h.
|
private |
Definition at line 94 of file gazebo_ros_range.h.
|
private |
The parent sensor.
Definition at line 93 of file gazebo_ros_range.h.
|
private |
Definition at line 98 of file gazebo_ros_range.h.
|
private |
radiation type : ultrasound or infrared
Definition at line 110 of file gazebo_ros_range.h.
|
private |
Keep track of number of connctions.
Definition at line 86 of file gazebo_ros_range.h.
|
private |
ros message
Definition at line 101 of file gazebo_ros_range.h.
|
private |
Definition at line 134 of file gazebo_ros_range.h.
|
private |
for setting ROS name space
Definition at line 132 of file gazebo_ros_range.h.
|
private |
pointer to ros node
Definition at line 97 of file gazebo_ros_range.h.
|
private |
Definition at line 139 of file gazebo_ros_range.h.
|
private |
Definition at line 142 of file gazebo_ros_range.h.
|
private |
topic name
Definition at line 104 of file gazebo_ros_range.h.
|
private |
Definition at line 128 of file gazebo_ros_range.h.
|
private |
update rate of this sensor
Definition at line 127 of file gazebo_ros_range.h.
|
private |
Definition at line 91 of file gazebo_ros_range.h.