Skip to content

Commit

Permalink
Bugfix in WholeBodyDynamicsDevice filtering
Browse files Browse the repository at this point in the history
Co-authored-by: Prashanth Ramadoss <[email protected]>
  • Loading branch information
GiulioRomualdi and prashanthr05 committed Mar 9, 2022
1 parent 7058fe2 commit 5329f02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion devices/wholeBodyDynamics/WholeBodyDynamicsDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2203,7 +2203,7 @@ void WholeBodyDynamicsDevice::filterSensorsAndRemoveSensorOffsets()

// Run the filter
Eigen::Ref<const Eigen::VectorXd> outputFt = filters.forcetorqueFilters[ft]->filt(filters.bufferEigen6);
iDynTree::toEigen(filteredFTMeasure.getLinearVec3()) = outputFt.tail<3>();
iDynTree::toEigen(filteredFTMeasure.getLinearVec3()) = outputFt.head<3>();
iDynTree::toEigen(filteredFTMeasure.getAngularVec3()) = outputFt.tail<3>();

filteredSensorMeasurements.setMeasurement(iDynTree::SIX_AXIS_FORCE_TORQUE,ft,filteredFTMeasure);
Expand Down

0 comments on commit 5329f02

Please sign in to comment.