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 1616#define HARDWARE_INTERFACE__ACTUATOR_INTERFACE_HPP_
1717
1818#include < limits>
19- #include < map>
2019#include < memory>
2120#include < string>
2221#include < unordered_map>
@@ -356,8 +355,8 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
356355
357356protected:
358357 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_;
361360
362361 std::unordered_map<std::string, std::shared_ptr<StateInterface>> actuator_states_;
363362 std::unordered_map<std::string, std::shared_ptr<CommandInterface>> actuator_commands_;
Original file line number Diff line number Diff line change 1616#define HARDWARE_INTERFACE__SENSOR_INTERFACE_HPP_
1717
1818#include < limits>
19- #include < map>
2019#include < memory>
2120#include < string>
2221#include < unordered_map>
@@ -224,7 +223,7 @@ class SensorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
224223protected:
225224 HardwareInfo info_;
226225
227- std::map <std::string, InterfaceDescription> sensor_state_interfaces_;
226+ std::unordered_map <std::string, InterfaceDescription> sensor_state_interfaces_;
228227
229228 std::unordered_map<std::string, std::shared_ptr<StateInterface>> sensor_states_;
230229
Original file line number Diff line number Diff line change 1616#define HARDWARE_INTERFACE__SYSTEM_INTERFACE_HPP_
1717
1818#include < limits>
19- #include < map>
2019#include < memory>
2120#include < string>
2221#include < unordered_map>
@@ -396,13 +395,13 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
396395
397396protected:
398397 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_;
401400
402- std::map <std::string, InterfaceDescription> sensor_state_interfaces_;
401+ std::unordered_map <std::string, InterfaceDescription> sensor_state_interfaces_;
403402
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_;
406405
407406 std::unordered_map<std::string, std::shared_ptr<StateInterface>> system_states_;
408407 std::unordered_map<std::string, std::shared_ptr<CommandInterface>> system_commands_;
You can’t perform that action at this time.
0 commit comments