ros2_control - kilted
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
hardware_interface::HandleDataType Class Reference

#include <hardware_info.hpp>

Public Types

enum  Value : int8_t { UNKNOWN = -1 , DOUBLE , BOOL }
 

Public Member Functions

constexpr HandleDataType (Value value)
 
 HandleDataType (const std::string &data_type)
 
 operator Value () const
 
 operator bool () const =delete
 
constexpr bool operator== (HandleDataType other) const
 
constexpr bool operator!= (HandleDataType other) const
 
constexpr bool operator== (Value other) const
 
constexpr bool operator!= (Value other) const
 
std::string to_string () const
 
bool is_castable_to_double () const
 Check if the HandleDataType can be casted to double.
 
HandleDataType from_string (const std::string &data_type)
 

Detailed Description

Hardware handles supported types

Member Function Documentation

◆ is_castable_to_double()

bool hardware_interface::HandleDataType::is_castable_to_double ( ) const
inline

Check if the HandleDataType can be casted to double.

Returns
True if the HandleDataType can be casted to double, false otherwise.
Note
Once we add support for more data types, this function should be updated

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