pinocchio
4.1.0
A fast and flexible implementation of Rigid Body Dynamics algorithms and their analytical derivatives
Toggle main menu visibility
Loading...
Searching...
No Matches
coal-pinocchio-conversions.hpp
1
//
2
// Copyright (c) 2015-2024 CNRS INRIA
3
//
4
#pragma once
5
6
// IWYU pragma: begin_keep
7
#include <Eigen/Core>
8
9
#include <coal/math/transform.h>
10
11
#include "pinocchio/spatial.hpp"
12
// IWYU pragma: end_keep
13
14
namespace
pinocchio
15
{
16
template
<
typename
Scalar>
17
inline
coal::Transform3s toCoalTransform3s(
const
SE3Tpl<Scalar> & m)
18
{
19
SE3Tpl<double, 0> m_ = m.template cast<double>();
20
return
coal::Transform3s(m_.rotation(), m_.translation());
21
}
22
23
inline
SE3 toPinocchioSE3(
const
coal::Transform3s & tf)
24
{
25
typedef
SE3::Scalar Scalar;
26
return
SE3(tf.getRotation().cast<Scalar>(), tf.getTranslation().cast<Scalar>());
27
}
28
29
}
// namespace pinocchio
pinocchio
Main pinocchio namespace.
Definition
treeview.dox:11
include
pinocchio
collision
coal-pinocchio-conversions.hpp
Generated by
1.17.0