Skip to content

Commit 999824e

Browse files
[Example 1] Print rw_rate (#729)
1 parent 9831630 commit 999824e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

example_1/hardware/rrbot.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ hardware_interface::CallbackReturn RRBotSystemPositionOnlyHardware::on_init(
4242
hw_start_sec_ = stod(info_.hardware_parameters["example_param_hw_start_duration_sec"]);
4343
hw_stop_sec_ = stod(info_.hardware_parameters["example_param_hw_stop_duration_sec"]);
4444
hw_slowdown_ = stod(info_.hardware_parameters["example_param_hw_slowdown"]);
45+
RCLCPP_INFO(get_logger(), "Robot hardware_component update_rate is %dHz", info_.rw_rate);
4546
// END: This part here is for exemplary purposes - Please do not copy to your production code
4647

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

0 commit comments

Comments
 (0)