Skip to content

Commit

Permalink
Fix diffbot position integration (#350) (#352)
Browse files Browse the repository at this point in the history
(cherry picked from commit 43c9e9e)

Co-authored-by: Mike Emery <emerym@canva.com>
  • Loading branch information
mergify[bot] and emereum authored Aug 20, 2023
1 parent 90b9e9f commit 546eb21
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 546eb21

Please sign in to comment.