File tree Expand file tree Collapse file tree 4 files changed +201
-97
lines changed
include/hardware_interface Expand file tree Collapse file tree 4 files changed +201
-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>
@@ -396,8 +395,8 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
396395 rclcpp::Clock::SharedPtr get_clock () const { return clock_interface_->get_clock (); }
397396
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
402401 std::unordered_map<std::string, std::shared_ptr<StateInterface>> actuator_states_;
403402 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>
@@ -264,7 +263,7 @@ class SensorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
264263
265264 HardwareInfo info_;
266265
267- std::map <std::string, InterfaceDescription> sensor_state_interfaces_;
266+ std::unordered_map <std::string, InterfaceDescription> sensor_state_interfaces_;
268267
269268 std::unordered_map<std::string, std::shared_ptr<StateInterface>> sensor_states_;
270269
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>
@@ -436,13 +435,13 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
436435 rclcpp::Clock::SharedPtr get_clock () const { return clock_interface_->get_clock (); }
437436
438437 HardwareInfo info_;
439- std::map <std::string, InterfaceDescription> joint_state_interfaces_;
440- std::map <std::string, InterfaceDescription> joint_command_interfaces_;
438+ std::unordered_map <std::string, InterfaceDescription> joint_state_interfaces_;
439+ std::unordered_map <std::string, InterfaceDescription> joint_command_interfaces_;
441440
442- std::map <std::string, InterfaceDescription> sensor_state_interfaces_;
441+ std::unordered_map <std::string, InterfaceDescription> sensor_state_interfaces_;
443442
444- std::map <std::string, InterfaceDescription> gpio_state_interfaces_;
445- std::map <std::string, InterfaceDescription> gpio_command_interfaces_;
443+ std::unordered_map <std::string, InterfaceDescription> gpio_state_interfaces_;
444+ std::unordered_map <std::string, InterfaceDescription> gpio_command_interfaces_;
446445
447446 std::unordered_map<std::string, std::shared_ptr<StateInterface>> system_states_;
448447 std::unordered_map<std::string, std::shared_ptr<CommandInterface>> system_commands_;
You can’t perform that action at this time.
0 commit comments