Skip to content

Commit

Permalink
cleanup after variants merge
Browse files Browse the repository at this point in the history
  • Loading branch information
saikishor committed Jan 1, 2025
1 parent 8726ccc commit f82fc37
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
5 changes: 0 additions & 5 deletions example_12/hardware/rrbot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,6 @@ hardware_interface::CallbackReturn RRBotSystemPositionOnlyHardware::on_init(
REGISTER_ROS2_CONTROL_INTROSPECTION("hw_start_sec", &hw_start_sec_);
REGISTER_ROS2_CONTROL_INTROSPECTION("hw_stop_sec", &hw_stop_sec_);
REGISTER_ROS2_CONTROL_INTROSPECTION("hw_slowdown", &hw_slowdown_);
for (size_t i = 0; i < info_.joints.size(); ++i)
{
REGISTER_ROS2_CONTROL_INTROSPECTION(info_.joints[i].name + ".hw_state", &hw_states_[i]);
REGISTER_ROS2_CONTROL_INTROSPECTION(info_.joints[i].name + ".hw_command", &hw_commands_[i]);
}

return hardware_interface::CallbackReturn::SUCCESS;
}
Expand Down
11 changes: 0 additions & 11 deletions example_4/hardware/rrbot_system_with_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,6 @@ hardware_interface::CallbackReturn RRBotSystemWithSensorHardware::on_init(
REGISTER_ROS2_CONTROL_INTROSPECTION("hw_stop_sec", &hw_stop_sec_);
REGISTER_ROS2_CONTROL_INTROSPECTION("hw_slowdown", &hw_slowdown_);
REGISTER_ROS2_CONTROL_INTROSPECTION("hw_sensor_change", &hw_sensor_change_);
for (size_t i = 0; i < info_.joints.size(); ++i)
{
REGISTER_ROS2_CONTROL_INTROSPECTION(info_.joints[i].name + ".hw_state", &hw_joint_states_[i]);
REGISTER_ROS2_CONTROL_INTROSPECTION(info_.joints[i].name + ".hw_command", &hw_joint_commands_[i]);
}
for (size_t i = 0; i < info_.sensors[0].state_interfaces.size(); ++i)
{
REGISTER_ROS2_CONTROL_INTROSPECTION(
info_.sensors[0].name + "." + info_.sensors[0].state_interfaces[i].name,
&hw_sensor_states_[i]);
}

return hardware_interface::CallbackReturn::SUCCESS;
}
Expand Down

0 comments on commit f82fc37

Please sign in to comment.