Class RangeSensor

Inheritance Relationships

Base Type

Class Documentation

class RangeSensor : public semantic_components::SemanticComponentInterface<sensor_msgs::msg::Range>

Public Functions

inline explicit RangeSensor(const std::string &name)
virtual ~RangeSensor() = default
inline float get_range()

Return Range reported by a sensor

Returns:

value of the range in meters

inline bool get_values_as_message(sensor_msgs::msg::Range &message)

Return Range message with range in meters.

Constructs and return a Range message from the current values.

Returns:

Range message from values;