Skip to content
Snippets Groups Projects

bugfix: platform position controller is turning into wrong direction

Merged Fabian Reister requested to merge fix/platform-rotation into master
1 file
+ 3
1
Compare changes
  • Side-by-side
  • Inline
@@ -22,7 +22,9 @@
* GNU General Public License
*/
#include "NJointHolonomicPlatformGlobalPositionController.h"
#include <cmath>
#include <SimoxUtility/math/periodic/periodic_clamp.h>
namespace armarx
@@ -87,7 +89,7 @@ namespace armarx
const Eigen::Rotation2Df global_R_local(-measuredOrientation);
Eigen::Vector2f velocities = global_R_local * Eigen::Vector2f(pid.getControlValue()[0], pid.getControlValue()[1]);
Eigen::Vector2f velocities = global_R_local * pid.getControlValue();
target->velocityX = velocities.x();
target->velocityY = velocities.y();
target->velocityRotation = static_cast<float>(opid.getControlValue());
Loading