File tree Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Expand file tree Collapse file tree 2 files changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -84,11 +84,6 @@ hardware_interface::CallbackReturn RRBotSystemPositionOnlyHardware::on_init(
8484 REGISTER_ROS2_CONTROL_INTROSPECTION (" hw_start_sec" , &hw_start_sec_);
8585 REGISTER_ROS2_CONTROL_INTROSPECTION (" hw_stop_sec" , &hw_stop_sec_);
8686 REGISTER_ROS2_CONTROL_INTROSPECTION (" hw_slowdown" , &hw_slowdown_);
87- for (size_t i = 0 ; i < info_.joints .size (); ++i)
88- {
89- REGISTER_ROS2_CONTROL_INTROSPECTION (info_.joints [i].name + " .hw_state" , &hw_states_[i]);
90- REGISTER_ROS2_CONTROL_INTROSPECTION (info_.joints [i].name + " .hw_command" , &hw_commands_[i]);
91- }
9287
9388 return hardware_interface::CallbackReturn::SUCCESS;
9489}
Original file line number Diff line number Diff line change @@ -89,17 +89,6 @@ hardware_interface::CallbackReturn RRBotSystemWithSensorHardware::on_init(
8989 REGISTER_ROS2_CONTROL_INTROSPECTION (" hw_stop_sec" , &hw_stop_sec_);
9090 REGISTER_ROS2_CONTROL_INTROSPECTION (" hw_slowdown" , &hw_slowdown_);
9191 REGISTER_ROS2_CONTROL_INTROSPECTION (" hw_sensor_change" , &hw_sensor_change_);
92- for (size_t i = 0 ; i < info_.joints .size (); ++i)
93- {
94- REGISTER_ROS2_CONTROL_INTROSPECTION (info_.joints [i].name + " .hw_state" , &hw_joint_states_[i]);
95- REGISTER_ROS2_CONTROL_INTROSPECTION (info_.joints [i].name + " .hw_command" , &hw_joint_commands_[i]);
96- }
97- for (size_t i = 0 ; i < info_.sensors [0 ].state_interfaces .size (); ++i)
98- {
99- REGISTER_ROS2_CONTROL_INTROSPECTION (
100- info_.sensors [0 ].name + " ." + info_.sensors [0 ].state_interfaces [i].name ,
101- &hw_sensor_states_[i]);
102- }
10392
10493 return hardware_interface::CallbackReturn::SUCCESS;
10594}
You can’t perform that action at this time.
0 commit comments