15 #ifndef HARDWARE_INTERFACE__HARDWARE_INFO_HPP_
16 #define HARDWARE_INTERFACE__HARDWARE_INFO_HPP_
19 #include <unordered_map>
75 std::vector<std::string> state_interfaces;
76 std::vector<std::string> command_interfaces;
78 double mechanical_reduction = 1.0;
86 std::vector<std::string> state_interfaces;
87 std::vector<std::string> command_interfaces;
89 double mechanical_reduction = 1.0;
98 std::vector<JointInfo> joints;
99 std::vector<ActuatorInfo> actuators;
Definition: actuator.hpp:31
Contains semantic info about a given actuator loaded from URDF for a transmission.
Definition: hardware_info.hpp:84
Definition: hardware_info.hpp:52
std::vector< InterfaceInfo > command_interfaces
Definition: hardware_info.hpp:61
std::unordered_map< std::string, std::string > parameters
(Optional) Key-value pairs of component parameters, e.g. min/max values or serial number.
Definition: hardware_info.hpp:68
std::vector< InterfaceInfo > state_interfaces
Definition: hardware_info.hpp:66
std::string name
Name of the component.
Definition: hardware_info.hpp:54
std::string type
Type of the component: sensor, joint, or GPIO.
Definition: hardware_info.hpp:56
This structure stores information about hardware defined in a robot's URDF.
Definition: hardware_info.hpp:106
std::string type
Type of the hardware: actuator, sensor or system.
Definition: hardware_info.hpp:110
std::unordered_map< std::string, std::string > hardware_parameters
(Optional) Key-value pairs for hardware parameters.
Definition: hardware_info.hpp:114
std::string hardware_class_type
Class of the hardware that will be dynamically loaded.
Definition: hardware_info.hpp:112
std::vector< ComponentInfo > gpios
Definition: hardware_info.hpp:129
std::vector< ComponentInfo > joints
Definition: hardware_info.hpp:119
std::string original_xml
Definition: hardware_info.hpp:138
std::string name
Name of the hardware.
Definition: hardware_info.hpp:108
std::vector< ComponentInfo > sensors
Definition: hardware_info.hpp:124
std::vector< TransmissionInfo > transmissions
Definition: hardware_info.hpp:134
Definition: hardware_info.hpp:29
std::string max
(Optional) Maximal allowed values of the interface.
Definition: hardware_info.hpp:38
std::string initial_value
(Optional) Initial value of the interface.
Definition: hardware_info.hpp:40
std::string name
Definition: hardware_info.hpp:34
int size
(Optional) If the handle is an array, the size of the array. Used by GPIOs.
Definition: hardware_info.hpp:44
std::string min
(Optional) Minimal allowed values of the interface.
Definition: hardware_info.hpp:36
std::string data_type
(Optional) The datatype of the interface, e.g. "bool", "int". Used by GPIOs.
Definition: hardware_info.hpp:42
Contains semantic info about a given joint loaded from URDF for a transmission.
Definition: hardware_info.hpp:73
Contains semantic info about a given transmission loaded from URDF.
Definition: hardware_info.hpp:95
std::unordered_map< std::string, std::string > parameters
(Optional) Key-value pairs of custom parameters
Definition: hardware_info.hpp:101