Class Range
Defined in File range.hpp
Inheritance Relationships
Base Type
public nav2_collision_monitor::Source
(Class Source)
Class Documentation
Implementation for IR/ultrasound range sensor source.
Public Functions
Range constructor.
- Parameters:
node – Collision Monitor node pointer
source_name – Name of data source
tf_buffer – Shared pointer to a TF buffer
base_frame_id – Robot base frame ID. The output data will be transformed into this frame.
global_frame_id – Global frame ID for correct transform calculation
transform_tolerance – Transform tolerance
source_timeout – Maximum time interval in which data is considered valid
base_shift_correction – Whether to correct source data towards to base frame movement, considering the difference between current time and latest source time
Range destructor.
Data source configuration routine. Obtains ROS-parameters and creates range sensor subscriber.
Adds latest data from range sensor to the data array.
- Parameters:
curr_time – Current node time for data interpolation
data – Array where the data from source to be added. Added data is transformed to base_frame_id_ coordinate system at curr_time.
- Returns:
false if an invalid source should block the robot
Protected Functions
Getting sensor-specific ROS-parameters.
- Parameters:
source_topic – Output name of source subscription topic
Protected Attributes
Range sensor data subscriber.
Angle increment (in rad) between two obstacle points at the range arc.
Latest data obtained from range sensor.