Commit 89cd5fe2 authored by Florian Valenza's avatar Florian Valenza
Browse files

[Minor] Cleaning polluting warnings - Handling SE3_JOINT_TYPES macro depending on clang or not

parent 9c6010b9
......@@ -45,6 +45,7 @@ namespace se3
* internal::ActionReturn<Constraint>::Type
* Constraint::se3Action
*/
#ifdef __clang__
#define SE3_JOINT_TYPEDEF_ARG(prefix) \
typedef int Index; \
......@@ -63,6 +64,27 @@ namespace se3
#define SE3_JOINT_TYPEDEF SE3_JOINT_TYPEDEF_ARG()
#define SE3_JOINT_TYPEDEF_TEMPLATE SE3_JOINT_TYPEDEF_ARG(typename)
#else
#define SE3_JOINT_TYPEDEF_ARG() \
typedef int Index; \
typedef typename traits<Joint>::JointData JointData; \
typedef typename traits<Joint>::JointModel JointModel; \
typedef typename traits<Joint>::Constraint_t Constraint_t; \
typedef typename traits<Joint>::Transformation_t Transformation_t; \
typedef typename traits<Joint>::Motion_t Motion_t; \
typedef typename traits<Joint>::Bias_t Bias_t; \
typedef typename traits<Joint>::F_t F_t; \
enum { \
NQ = traits<Joint>::NQ, \
NV = traits<Joint>::NV \
}
#define SE3_JOINT_TYPEDEF SE3_JOINT_TYPEDEF_ARG()
#define SE3_JOINT_TYPEDEF_TEMPLATE SE3_JOINT_TYPEDEF_ARG()
#endif
#define SE3_JOINT_USE_INDEXES \
typedef JointModelBase<JointModel> Base; \
using Base::idx_q; \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment