File tree Expand file tree Collapse file tree 4 files changed +200
-97
lines changed
include/hardware_interface Expand file tree Collapse file tree 4 files changed +200
-97
lines changed Original file line number Diff line number Diff line change 16
16
#define HARDWARE_INTERFACE__ACTUATOR_INTERFACE_HPP_
17
17
18
18
#include < limits>
19
- #include < map>
20
19
#include < memory>
21
20
#include < string>
22
21
#include < unordered_map>
@@ -356,8 +355,8 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
356
355
357
356
protected:
358
357
HardwareInfo info_;
359
- std::map <std::string, InterfaceDescription> joint_state_interfaces_;
360
- std::map <std::string, InterfaceDescription> joint_command_interfaces_;
358
+ std::unordered_map <std::string, InterfaceDescription> joint_state_interfaces_;
359
+ std::unordered_map <std::string, InterfaceDescription> joint_command_interfaces_;
361
360
362
361
std::unordered_map<std::string, std::shared_ptr<StateInterface>> actuator_states_;
363
362
std::unordered_map<std::string, std::shared_ptr<CommandInterface>> actuator_commands_;
Original file line number Diff line number Diff line change 16
16
#define HARDWARE_INTERFACE__SENSOR_INTERFACE_HPP_
17
17
18
18
#include < limits>
19
- #include < map>
20
19
#include < memory>
21
20
#include < string>
22
21
#include < unordered_map>
@@ -224,7 +223,7 @@ class SensorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
224
223
protected:
225
224
HardwareInfo info_;
226
225
227
- std::map <std::string, InterfaceDescription> sensor_state_interfaces_;
226
+ std::unordered_map <std::string, InterfaceDescription> sensor_state_interfaces_;
228
227
229
228
std::unordered_map<std::string, std::shared_ptr<StateInterface>> sensor_states_;
230
229
Original file line number Diff line number Diff line change 16
16
#define HARDWARE_INTERFACE__SYSTEM_INTERFACE_HPP_
17
17
18
18
#include < limits>
19
- #include < map>
20
19
#include < memory>
21
20
#include < string>
22
21
#include < unordered_map>
@@ -396,13 +395,13 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
396
395
397
396
protected:
398
397
HardwareInfo info_;
399
- std::map <std::string, InterfaceDescription> joint_state_interfaces_;
400
- std::map <std::string, InterfaceDescription> joint_command_interfaces_;
398
+ std::unordered_map <std::string, InterfaceDescription> joint_state_interfaces_;
399
+ std::unordered_map <std::string, InterfaceDescription> joint_command_interfaces_;
401
400
402
- std::map <std::string, InterfaceDescription> sensor_state_interfaces_;
401
+ std::unordered_map <std::string, InterfaceDescription> sensor_state_interfaces_;
403
402
404
- std::map <std::string, InterfaceDescription> gpio_state_interfaces_;
405
- std::map <std::string, InterfaceDescription> gpio_command_interfaces_;
403
+ std::unordered_map <std::string, InterfaceDescription> gpio_state_interfaces_;
404
+ std::unordered_map <std::string, InterfaceDescription> gpio_command_interfaces_;
406
405
407
406
std::unordered_map<std::string, std::shared_ptr<StateInterface>> system_states_;
408
407
std::unordered_map<std::string, std::shared_ptr<CommandInterface>> system_commands_;
You can’t perform that action at this time.
0 commit comments