Skip to content

Commit

Permalink
[Example 1] Print rw_rate (#729)
Browse files Browse the repository at this point in the history
  • Loading branch information
christophfroehlich authored Mar 4, 2025
1 parent 9831630 commit 999824e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions example_1/hardware/rrbot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ hardware_interface::CallbackReturn RRBotSystemPositionOnlyHardware::on_init(
hw_start_sec_ = stod(info_.hardware_parameters["example_param_hw_start_duration_sec"]);
hw_stop_sec_ = stod(info_.hardware_parameters["example_param_hw_stop_duration_sec"]);
hw_slowdown_ = stod(info_.hardware_parameters["example_param_hw_slowdown"]);
RCLCPP_INFO(get_logger(), "Robot hardware_component update_rate is %dHz", info_.rw_rate);
// END: This part here is for exemplary purposes - Please do not copy to your production code

for (const hardware_interface::ComponentInfo & joint : info_.joints)
Expand Down

0 comments on commit 999824e

Please sign in to comment.