Skip to content

Commit

Permalink
Update example_14/hardware/rrbot_actuator_without_feedback.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Sai Kishor Kothakota <saisastra3@gmail.com>
  • Loading branch information
fmauch and saikishor authored Mar 2, 2024
1 parent 20c5d73 commit a55a1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_14/hardware/rrbot_actuator_without_feedback.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ hardware_interface::return_type RRBotActuatorWithoutFeedback::read(
hardware_interface::return_type ros2_control_demo_example_14::RRBotActuatorWithoutFeedback::write(
const rclcpp::Time & /*time*/, const rclcpp::Duration & /*period*/)
{
if (!std::isnan(hw_joint_command_))
if (std::isfinite(hw_joint_command_))
{
// START: This part here is for exemplary purposes - Please do not copy to your production code
RCLCPP_INFO(
Expand Down

0 comments on commit a55a1a2

Please sign in to comment.