Skip to content

Commit

Permalink
Solve quaternion conversion issue
Browse files Browse the repository at this point in the history
  • Loading branch information
paolo-viceconte committed Oct 18, 2023
1 parent b210a18 commit 972b794
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ void CreateLeggedOdometry(pybind11::module& module)
py::arg("frame_index"))
.def("change_fixed_frame",
py::overload_cast<const std::ptrdiff_t&,
const Eigen::Quaterniond&,
const Eigen::Vector4d&,
const Eigen::Vector3d&>(&LeggedOdometry::changeFixedFrame),
py::arg("frame_index"),
py::arg("frame_orientation_in_world"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ class LeggedOdometry : public FloatingBaseEstimator
* @note ensure to pass unit quaternion
*/
bool changeFixedFrame(const std::ptrdiff_t& frameIndex,
const Eigen::Quaterniond& frameOrientationInWorld,
const Eigen::Vector4d& frameOrientationInWorld,
const Eigen::Vector3d& framePositionInWorld);

/**
Expand Down
2 changes: 1 addition & 1 deletion src/Estimators/src/LeggedOdometry.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -917,7 +917,7 @@ bool LeggedOdometry::Impl::changeFixedFrame(const iDynTree::FrameIndex& newIdx,


bool LeggedOdometry::changeFixedFrame(const std::ptrdiff_t& newIdx,
const Eigen::Quaterniond& frameOrientationInWorld,
const Eigen::Vector4d& frameOrientationInWorld,
const Eigen::Vector3d& framePositionInWorld)
{
const std::string_view printPrefix = "[LeggedOdometry::changeFixedFrame] ";
Expand Down

0 comments on commit 972b794

Please sign in to comment.