15 #ifndef SEMANTIC_COMPONENTS__RANGE_SENSOR_HPP_
16 #define SEMANTIC_COMPONENTS__RANGE_SENSOR_HPP_
21 #include "semantic_components/semantic_component_interface.hpp"
22 #include "sensor_msgs/msg/range.hpp"
24 namespace semantic_components
31 interface_names_.emplace_back(name_ +
"/" +
"range");
41 float get_range() {
return state_interfaces_[0].get().get_value(); }
Definition: range_sensor.hpp:27
bool get_values_as_message(sensor_msgs::msg::Range &message)
Return Range message with range in meters.
Definition: range_sensor.hpp:48
float get_range()
Definition: range_sensor.hpp:41
Definition: semantic_component_interface.hpp:28