File tree Expand file tree Collapse file tree 3 files changed +8
-11
lines changed
hardware_interface/include/hardware_interface Expand file tree Collapse file tree 3 files changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -482,17 +482,16 @@ class ActuatorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNod
482482 std::unordered_map<std::string, InterfaceDescription> unlisted_command_interfaces_;
483483
484484private:
485+ std::unordered_map<std::string, std::shared_ptr<StateInterface>> actuator_states_;
486+ std::unordered_map<std::string, std::shared_ptr<CommandInterface>> actuator_commands_;
487+
485488 std::shared_ptr<StateInterface> emergency_stop_;
486489 std::shared_ptr<StateInterface> error_signal_;
487490 std::shared_ptr<StateInterface> error_signal_message_;
488491 std::shared_ptr<StateInterface> warning_signal_;
489492 std::shared_ptr<StateInterface> warning_signal_message_;
490493
491494 rclcpp_lifecycle::State lifecycle_state_;
492-
493- private:
494- std::unordered_map<std::string, std::shared_ptr<StateInterface>> actuator_states_;
495- std::unordered_map<std::string, std::shared_ptr<CommandInterface>> actuator_commands_;
496495};
497496
498497} // namespace hardware_interface
Original file line number Diff line number Diff line change @@ -314,15 +314,14 @@ class SensorInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
314314 std::unordered_map<std::string, InterfaceDescription> unlisted_state_interfaces_;
315315
316316private:
317+ std::unordered_map<std::string, std::shared_ptr<StateInterface>> sensor_states_;
318+
317319 std::shared_ptr<StateInterface> error_signal_;
318320 std::shared_ptr<StateInterface> error_signal_message_;
319321 std::shared_ptr<StateInterface> warning_signal_;
320322 std::shared_ptr<StateInterface> warning_signal_message_;
321323
322324 rclcpp_lifecycle::State lifecycle_state_;
323-
324- private:
325- std::unordered_map<std::string, std::shared_ptr<StateInterface>> sensor_states_;
326325};
327326
328327} // namespace hardware_interface
Original file line number Diff line number Diff line change @@ -527,17 +527,16 @@ class SystemInterface : public rclcpp_lifecycle::node_interfaces::LifecycleNodeI
527527 std::unordered_map<std::string, InterfaceDescription> unlisted_command_interfaces_;
528528
529529private:
530+ std::unordered_map<std::string, std::shared_ptr<StateInterface>> system_states_;
531+ std::unordered_map<std::string, std::shared_ptr<CommandInterface>> system_commands_;
532+
530533 std::shared_ptr<StateInterface> emergency_stop_;
531534 std::shared_ptr<StateInterface> error_signal_;
532535 std::shared_ptr<StateInterface> error_signal_message_;
533536 std::shared_ptr<StateInterface> warning_signal_;
534537 std::shared_ptr<StateInterface> warning_signal_message_;
535538
536539 rclcpp_lifecycle::State lifecycle_state_;
537-
538- private:
539- std::unordered_map<std::string, std::shared_ptr<StateInterface>> system_states_;
540- std::unordered_map<std::string, std::shared_ptr<CommandInterface>> system_commands_;
541540};
542541
543542} // namespace hardware_interface
You can’t perform that action at this time.
0 commit comments