File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
ocs2_pinocchio/ocs2_pinocchio_interface/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -253,7 +253,7 @@ auto PinocchioEndEffectorKinematicsCppAd::getOrientationError(const vector_t& st
253253 -> std::vector<vector3_t> {
254254 vector_t params (4 * endEffectorIds_.size ());
255255 for (int i = 0 ; i < endEffectorIds_.size (); i++) {
256- params.segment <4 >(i) = referenceOrientations[i].coeffs ();
256+ params.segment <4 >(4 * i) = referenceOrientations[i].coeffs ();
257257 }
258258
259259 const vector_t errorValues = orientationErrorCppAdInterfacePtr_->getFunctionValue (state, params);
@@ -272,7 +272,7 @@ std::vector<VectorFunctionLinearApproximation> PinocchioEndEffectorKinematicsCpp
272272 const vector_t & state, const std::vector<quaternion_t >& referenceOrientations) const {
273273 vector_t params (4 * endEffectorIds_.size ());
274274 for (int i = 0 ; i < endEffectorIds_.size (); i++) {
275- params.segment <4 >(i) = referenceOrientations[i].coeffs ();
275+ params.segment <4 >(4 * i) = referenceOrientations[i].coeffs ();
276276 }
277277
278278 const vector_t errorValues = orientationErrorCppAdInterfacePtr_->getFunctionValue (state, params);
You can’t perform that action at this time.
0 commit comments