File tree Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Expand file tree Collapse file tree 2 files changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,7 @@ Changelog for package webots_ros2_control
552023.1.3 (2024-08-07)
66------------------
77* Added support for the new `ros2_control ` API affecting resource_manager and controller_manager.
8+ * Corrected the sign of the joint accelerations.
89
9102023.1.0 (2023-06-29)
1011------------------
Original file line number Diff line number Diff line change @@ -153,7 +153,7 @@ namespace webots_ros2_control {
153153 const double velocity = std::isnan (joint.position ) ? NAN : (position - joint.position ) / deltaTime;
154154
155155 if (!std::isnan (joint.velocity ))
156- joint.acceleration = (joint. velocity - velocity) / deltaTime;
156+ joint.acceleration = (velocity - joint. velocity ) / deltaTime;
157157 joint.velocity = velocity;
158158 joint.position = position;
159159 }
You can’t perform that action at this time.
0 commit comments