15 #ifndef HARDWARE_INTERFACE__HARDWARE_INFO_HPP_
16 #define HARDWARE_INTERFACE__HARDWARE_INFO_HPP_
19 #include <unordered_map>
22 #include "joint_limits/joint_limits.hpp"
58 std::size_t joint_index;
59 std::size_t mimicked_joint_index;
60 double multiplier = 1.0;
104 std::vector<std::string> state_interfaces;
105 std::vector<std::string> command_interfaces;
107 double mechanical_reduction = 1.0;
115 std::vector<std::string> state_interfaces;
116 std::vector<std::string> command_interfaces;
118 double mechanical_reduction = 1.0;
127 std::vector<JointInfo> joints;
128 std::vector<ActuatorInfo> actuators;
161 std::string get_prefix_name()
const {
return prefix_name; }
218 std::unordered_map<std::string, joint_limits::JointLimits>
limits;
225 std::unordered_map<std::string, joint_limits::SoftJointLimits>
soft_limits;
Definition: actuator.hpp:34
MimicAttribute
This enum is used to store the mimic attribute of a joint.
Definition: hardware_info.hpp:66
Contains semantic info about a given actuator loaded from URDF for a transmission.
Definition: hardware_info.hpp:113
Definition: hardware_info.hpp:77
std::vector< InterfaceInfo > command_interfaces
Definition: hardware_info.hpp:90
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:97
std::vector< InterfaceInfo > state_interfaces
Definition: hardware_info.hpp:95
std::string name
Name of the component.
Definition: hardware_info.hpp:79
MimicAttribute is_mimic
Hold the value of the mimic attribute if given, NOT_SET otherwise.
Definition: hardware_info.hpp:84
std::string type
Type of the component: sensor, joint, or GPIO.
Definition: hardware_info.hpp:81
This structure stores information about hardware defined in a robot's URDF.
Definition: hardware_info.hpp:170
std::string type
Type of the hardware: actuator, sensor or system.
Definition: hardware_info.hpp:174
int thread_priority
Async thread priority.
Definition: hardware_info.hpp:182
std::vector< MimicJoint > mimic_joints
Definition: hardware_info.hpp:195
std::string hardware_plugin_name
Name of the pluginlib plugin of the hardware that will be loaded.
Definition: hardware_info.hpp:184
std::unordered_map< std::string, joint_limits::JointLimits > limits
Definition: hardware_info.hpp:218
std::unordered_map< std::string, std::string > hardware_parameters
(Optional) Key-value pairs for hardware parameters.
Definition: hardware_info.hpp:186
std::string group
Hardware group to which the hardware belongs.
Definition: hardware_info.hpp:176
bool is_async
Component is async.
Definition: hardware_info.hpp:180
std::unordered_map< std::string, joint_limits::SoftJointLimits > soft_limits
Definition: hardware_info.hpp:225
std::vector< ComponentInfo > gpios
Definition: hardware_info.hpp:205
std::vector< ComponentInfo > joints
Definition: hardware_info.hpp:191
std::string original_xml
Definition: hardware_info.hpp:214
std::string name
Name of the hardware.
Definition: hardware_info.hpp:172
std::vector< ComponentInfo > sensors
Definition: hardware_info.hpp:200
std::vector< TransmissionInfo > transmissions
Definition: hardware_info.hpp:210
unsigned int rw_rate
Component's read and write rates in Hz.
Definition: hardware_info.hpp:178
Definition: hardware_info.hpp:138
InterfaceInfo interface_info
Definition: hardware_info.hpp:154
std::string interface_name
Definition: hardware_info.hpp:159
std::string prefix_name
Definition: hardware_info.hpp:149
Definition: hardware_info.hpp:31
std::string max
(Optional) Maximal allowed values of the interface.
Definition: hardware_info.hpp:40
std::string initial_value
(Optional) Initial value of the interface.
Definition: hardware_info.hpp:42
std::string name
Definition: hardware_info.hpp:36
int size
(Optional) If the handle is an array, the size of the array.
Definition: hardware_info.hpp:46
std::string min
(Optional) Minimal allowed values of the interface.
Definition: hardware_info.hpp:38
std::string data_type
(Optional) The datatype of the interface, e.g. "bool", "int".
Definition: hardware_info.hpp:44
std::unordered_map< std::string, std::string > parameters
Definition: hardware_info.hpp:52
bool enable_limits
(Optional) enable or disable the limits for the command interfaces
Definition: hardware_info.hpp:48
Contains semantic info about a given joint loaded from URDF for a transmission.
Definition: hardware_info.hpp:102
This structure stores information about a joint that is mimicking another joint.
Definition: hardware_info.hpp:57
Contains semantic info about a given transmission loaded from URDF.
Definition: hardware_info.hpp:124
std::unordered_map< std::string, std::string > parameters
(Optional) Key-value pairs of custom parameters
Definition: hardware_info.hpp:130