Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment