BipedalLocomotion::Conversions namespace

Functions

auto toEigen(casadi::DM& input) -> Eigen::Map<Eigen::MatrixXd>
Conversion from a casadi::DM to an Eigen matrix,.
auto toEigen(const casadi::DM& input) -> Eigen::Map<const Eigen::MatrixXd>
Conversion from a casadi::DM to an Eigen matrix,.
template<class Scalar>
auto toEigenPose(const Eigen::Matrix<Scalar, 3, 3>& rotation, const Eigen::Matrix<Scalar, 3, 1>& translation) -> Eigen::Matrix<Scalar, 4, 4>
Construct homogeneous transformation matrix from rotation matrix and translation vector.
template<class Scalar>
auto toManifPose(const Eigen::Matrix<Scalar, 3, 3>& rotation, const Eigen::Matrix<Scalar, 3, 1>& translation) -> manif::SE3<Scalar>
Convert rotation matrix and translation vector to manif SE3 object.
auto toManifPose(Eigen::Ref<const Eigen::Matrix3d> rotation, Eigen::Ref<const Eigen::Vector3d> translation) -> manif::SE3d
Convert rotation matrix and translation vector to manif SE3d object.
auto toManifPose(const iDynTree::Transform& H) -> manif::SE3d
Convert iDynTree transform object to manif SE3d object.
template<class Scalar>
auto toManifRot(const Eigen::Matrix<Scalar, 3, 3>& rotation) -> manif::SO3<Scalar>
Convert rotation matrix to manif SO3 object.
auto toManifRot(Eigen::Ref<const Eigen::Matrix3d> rotation) -> manif::SO3d
Convert rotation matrix to manif SO3d object.
auto toManifRot(const iDynTree::Rotation& R) -> manif::SO3d
Convert iDynTree rotation object to manif SE3d object.
auto toManifTwist(const iDynTree::Twist& twist) -> manif::SE3Tangentd
Convert iDynTree twist object to manif SE3Tangentd object.
auto toiDynTreePose(const manif::SE3d& se3) -> iDynTree::Transform
Convert a manif SE3 object into and iDynTree::Transform.
template<typename type>
auto toEigen(matioCpp::MultiDimensionalArray<type>& input) -> Eigen::Map<Eigen::Matrix<type, Eigen::Dynamic, Eigen::Dynamic>>
Conversion from a matioCpp::MultiDimensionalArray to an Eigen matrix.
template<typename type>
auto toEigen(const matioCpp::MultiDimensionalArray<type>& input) -> const Eigen::Map<Eigen::Matrix<type, Eigen::Dynamic, Eigen::Dynamic>>
Conversion from a const matioCpp::MultiDimensionalArray to an Eigen matrix.
template<typename type>
auto toEigen(matioCpp::Vector<type>& input) -> Eigen::Map<Eigen::Matrix<type, Eigen::Dynamic, 1>>
Conversion from a matioCpp::Vector to an Eigen vector.
template<typename type>
auto toEigen(const matioCpp::Vector<type>& input) -> const Eigen::Map<Eigen::Matrix<type, Eigen::Dynamic, 1>>
Conversion from a const matioCpp::Vector to an Eigen vector.
template<typename EigenDerived, typename = std::enable_if_t<Eigen::MatrixBase<EigenDerived>::RowsAtCompileTime != 1&& Eigen::MatrixBase<EigenDerived>::ColsAtCompileTime != 1>>
auto tomatioCpp(const Eigen::MatrixBase<EigenDerived>& input, const std::string& name) -> matioCpp::MultiDimensionalArray<typename EigenDerived::Scalar>
Conversion from an Eigen matrix to a matioCpp::MultiDimensionalArray.
auto tomatioCpp(const iDynTree::MatrixDynSize& input, const std::string& name) -> matioCpp::MultiDimensionalArray<double>
Conversion from an iDynTree::MatrixDynSize to a matioCpp::MultiDimensionalArray.
template<unsigned int nRows, unsigned int nCols>
auto tomatioCpp(const iDynTree::MatrixFixSize<nRows, nCols>& input, const std::string& name) -> matioCpp::MultiDimensionalArray<double>
Conversion from an iDynTree::MatrixFixSize to a matioCpp::MultiDimensionalArray.
template<class Vector, typename = typename std::enable_if_t<BipedalLocomotion::GenericContainer::is_vector_constructible<Vector>::value&& !std::is_same_v<Vector, std::string>>>
auto tomatioCpp(const Vector& input, const std::string& name) -> matioCpp::Vector<typename std::remove_cv_t<typename BipedalLocomotion::container_data<Vector>::type>>
Conversion from a generic Vector to a matioCpp::Vector.
auto tomatioCpp(const std::string& input, const std::string& name) -> matioCpp::String
Conversion from a std::string to a matioCpp::String.
auto tomatioCpp(const std::vector<bool>& input, const std::string& name) -> matioCpp::Vector<matioCpp::Logical>
Conversion from a boolean vector to a matioCpp::Vector<matioCpp::Logical>
template<typename type, typename = std::enable_if_t<std::is_fundamental_v<type>&& !std::is_same_v<type, bool>>>
auto tomatioCpp(const type& input, const std::string& name) -> matioCpp::Element<type>
Conversion from a fundamental type to the corresponding matioCpp::Element.
auto tomatioCpp(bool input, const std::string& name) -> matioCpp::Element<matioCpp::Logical>
Conversion from a boolean to a matioCpp::Element<matioCpp::Logical>
auto tomatioCpp(const std::vector<std::string>& input, const std::string& name) -> matioCpp::CellArray
Conversion from a vector of strings to a matioCpp::CellArray containing the input strings.
template<class iterator, typename = typename std::enable_if_t<is_pair_iterator_string<iterator>::value>>
auto tomatioCppStruct(iterator begin, iterator end, const std::string& name) -> matioCpp::Struct
Create a matioCpp::Struct starting from the begin and end iterators of a map-like container The dereferenced value of the iterator has to be a pair (like with std::maps and std::unordered_map) with the key being a string.
template<class iterator>
auto toMatioCppCellArray(const iterator& begin, const iterator& end, const std::string& name) -> matioCpp::CellArray
Create a matioCpp::CellArray starting from the begin and end iterators of a container.