ros2_control - rolling
Public Member Functions | List of all members
semantic_components::RangeSensor Class Reference
Inheritance diagram for semantic_components::RangeSensor:
Inheritance graph
[legend]
Collaboration diagram for semantic_components::RangeSensor:
Collaboration graph
[legend]

Public Member Functions

 RangeSensor (const std::string &name)
 
float get_range () const
 
bool get_values_as_message (sensor_msgs::msg::Range &message) const
 Return Range message with range in meters. More...
 
- Public Member Functions inherited from semantic_components::SemanticComponentInterface< sensor_msgs::msg::Range >
 SemanticComponentInterface (const std::string &name, const std::vector< std::string > &interface_names)
 
 SemanticComponentInterface (const std::string &name, std::size_t size=0)
 
bool assign_loaned_state_interfaces (std::vector< hardware_interface::LoanedStateInterface > &state_interfaces)
 Assign loaned state interfaces from the hardware. More...
 
void release_interfaces ()
 Release loaned interfaces from the hardware.
 
virtual std::vector< std::string > get_state_interface_names ()
 Definition of state interface names for the component. More...
 
bool get_values (std::vector< double > &values) const
 Return all values. More...
 
bool get_values_as_message (sensor_msgs::msg::Range &)
 Return values as MessageReturnType. More...
 

Additional Inherited Members

- Protected Attributes inherited from semantic_components::SemanticComponentInterface< sensor_msgs::msg::Range >
std::string name_
 
std::vector< std::string > interface_names_
 
std::vector< std::reference_wrapper< hardware_interface::LoanedStateInterface > > state_interfaces_
 

Member Function Documentation

◆ get_range()

float semantic_components::RangeSensor::get_range ( ) const
inline

Return Range reported by a sensor

Returns
value of the range in meters

◆ get_values_as_message()

bool semantic_components::RangeSensor::get_values_as_message ( sensor_msgs::msg::Range &  message) const
inline

Return Range message with range in meters.

Constructs and return a Range message from the current values.

Returns
Range message from values;

The documentation for this class was generated from the following file: