Skip to content

Commit 9630d2d

Browse files
committed
spatial: Add fwd decl in some se3 headers to avoid issue with cppadcg
1 parent 1a89e59 commit 9630d2d

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

include/pinocchio/spatial/se3-expr-base.hpp

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,18 @@
77

88
namespace pinocchio
99
{
10+
// Forward declaration
11+
// TODO: This should go into spatial/fwd.hpp but because of a strange include path
12+
// in context/cppadcg.hpp we can include se3.hpp without including spatial/fwd.hpp first.
13+
template<typename Derived>
14+
struct SE3ExprBase;
15+
template<typename Derived>
16+
struct SE3ExprNoalias;
17+
template<typename RotProduct, typename TransProduct>
18+
struct SE3ExprProduct;
19+
template<typename RotProduct, typename TransProduct>
20+
SE3ExprProduct<RotProduct, TransProduct>
21+
make_se3_expr_product(RotProduct rot_prod, TransProduct trans_prod);
1022

1123
// Forward traits typedef
1224
#define PINOCCHIO_SE3_EXPR_TYPEDEF_TPL(Derived) \

include/pinocchio/spatial/se3-tpl.hpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@
1717

1818
namespace pinocchio
1919
{
20+
// Forward declarations
21+
// TODO: This should go into spatial/fwd.hpp but because of a strange include path
22+
// in context/cppadcg.hpp we can include se3.hpp without including spatial/fwd.hpp first.
23+
template<typename _Scalar, int _Options>
24+
struct SE3TplExpr;
25+
template<typename _Scalar, int _Options>
26+
struct SE3TplConstExpr;
27+
2028
template<typename _Scalar, int _Options>
2129
struct traits<SE3Tpl<_Scalar, _Options>>
2230
{

0 commit comments

Comments
 (0)