src
parsers
urdf
utils.cpp
Go to the documentation of this file.
1
#include "
pinocchio/parsers/urdf/utils.hpp
"
2
3
namespace
pinocchio
4
{
5
namespace
urdf
6
{
7
namespace
details
8
{
9
10
SE3
convertFromUrdf
(const ::urdf::Pose & M)
11
{
12
const ::urdf::Vector3
&
p
=
M
.position;
13
const ::urdf::Rotation &
q
=
M
.rotation;
14
return
SE3
(
SE3::Quaternion
(
q
.w,
q
.x,
q
.y,
q
.z).matrix(),
SE3::Vector3
(
p
.x,
p
.y,
p
.z));
15
}
16
}
// namespace details
17
}
// namespace urdf
18
}
// namespace pinocchio
pinocchio::SE3Tpl< context::Scalar, context::Options >::Vector3
traits< SE3Tpl >::Vector3 Vector3
Definition:
spatial/se3-tpl.hpp:55
pinocchio::SE3Tpl< context::Scalar, context::Options >
pinocchio::urdf::details::convertFromUrdf
SE3 convertFromUrdf(const ::urdf::Pose &M)
Convert URDF Pose quantity to SE3.
Definition:
utils.cpp:10
dpendulum.p
p
Definition:
dpendulum.py:7
details
M
M
pinocchio::context::Vector3
Eigen::Matrix< Scalar, 3, 1, Options > Vector3
Definition:
context/generic.hpp:53
utils.hpp
pinocchio::q
JointCollectionTpl const Eigen::MatrixBase< ConfigVectorType > & q
Definition:
joint-configuration.hpp:1083
pinocchio::SE3Tpl< context::Scalar, context::Options >::Quaternion
Eigen::Quaternion< Scalar, Options > Quaternion
Definition:
spatial/se3-tpl.hpp:54
urdf
Definition:
types.hpp:29
pinocchio::SE3
SE3Tpl< context::Scalar, context::Options > SE3
Definition:
spatial/fwd.hpp:64
pinocchio
Main pinocchio namespace.
Definition:
timings.cpp:27
pinocchio
Author(s):
autogenerated on Fri Nov 1 2024 02:41:49