Skip to content

Commit

Permalink
Fix diffbot position integration (#350)
Browse files Browse the repository at this point in the history
(cherry picked from commit 43c9e9e)
  • Loading branch information
emereum authored and mergify[bot] committed Aug 20, 2023
1 parent 90b9e9f commit f72f301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example_2/hardware/diffbot_system.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ hardware_interface::return_type DiffBotSystemHardware::read(
// Simulate DiffBot wheels's movement as a first-order system
// Update the joint status: this is a revolute joint without any limit.
// Simply integrates
hw_positions_[i] = hw_positions_[1] + period.seconds() * hw_velocities_[i];
hw_positions_[i] = hw_positions_[i] + period.seconds() * hw_velocities_[i];

RCLCPP_INFO(
rclcpp::get_logger("DiffBotSystemHardware"),
Expand Down

0 comments on commit f72f301

Please sign in to comment.