Skip to content

Commit cd8cd5e

Browse files
author
earlaud
committed
FIX QUATERNION CONVENTION for target state
1 parent 7a3cc32 commit cd8cd5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/simple-mpc/inverse-dynamics.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ namespace simple_mpc
138138
postureTask_->setReference(samplePosture_);
139139

140140
// Base task
141-
pose_base_.rotation() = pinocchio::SE3::Quaternion(q_target[3], q_target[4], q_target[5], q_target[6]).matrix();
141+
pose_base_.rotation() = pinocchio::SE3::Quaternion(q_target[6], q_target[3], q_target[4], q_target[5]).matrix();
142142
pose_base_.translation() = q_target.head(3);
143143
tsid::math::SE3ToVector(pose_base_, sampleBase_.pos);
144144
sampleBase_.setDerivative(v_target.head(6));

0 commit comments

Comments
 (0)