Commit 31dfb64 Tim Schneider
committed
1 parent 2e18d01 commit 31dfb64 Copy full SHA for 31dfb64
File tree 2 files changed +14
-7
lines changed
2 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,11 @@ find_package(Eigen3 3.3.7 REQUIRED NO_MODULE)
17
17
find_package (Franka REQUIRED)
18
18
19
19
if (${Franka_VERSION} VERSION_GREATER_EQUAL "0.8.0" )
20
- add_compile_definitions (FRANKA8)
20
+ add_compile_definitions (FRANKA_0_8)
21
+ endif ()
22
+
23
+ if (${Franka_VERSION} VERSION_GREATER_EQUAL "0.9.0" )
24
+ add_compile_definitions (FRANKA_0_9)
21
25
endif ()
22
26
23
27
message ("Found Eigen Version: ${Eigen3_VERSION} " )
Original file line number Diff line number Diff line change @@ -191,7 +191,7 @@ PYBIND11_MODULE(_franky, m) {
191
191
.def (py::self * py::self);
192
192
py::implicitly_convertible<double , RelativeDynamicsFactor>();
193
193
194
- #define ERRORS7 \
194
+ #define ERRORS_0_8 \
195
195
joint_position_limits_violation, \
196
196
cartesian_position_limits_violation, \
197
197
self_collision_avoidance_violation, \
@@ -230,15 +230,15 @@ PYBIND11_MODULE(_franky, m) {
230
230
instability_detected, \
231
231
joint_move_in_wrong_direction
232
232
233
- #ifdef FRANKA8
234
- #define ERRORS ERRORS7 , \
233
+ #ifdef FRANKA_0_9
234
+ #define ERRORS ERRORS_0_8 , \
235
235
cartesian_spline_motion_generator_violation, \
236
236
joint_via_motion_generator_planning_joint_limit_violation, \
237
237
base_acceleration_initialization_timeout, \
238
238
base_acceleration_invalid_reading
239
239
#define NUM_ERRORS 41
240
240
#else
241
- #define ERRORS ERRORS7
241
+ #define ERRORS ERRORS_0_8
242
242
#define NUM_ERRORS 37
243
243
#endif
244
244
@@ -325,15 +325,18 @@ PYBIND11_MODULE(_franky, m) {
325
325
py::is_operator ())
326
326
.def (" __repr__" , &Measure::repr);
327
327
328
- #ifdef FRANKA8
328
+ #ifdef FRANKA_0_8
329
329
#define EXTRA_FIELDS1 \
330
330
F_T_NE, \
331
331
NE_T_EE,
332
+ #else
333
+ #define EXTRA_FIELDS1
334
+ #endif
332
335
336
+ #ifdef FRANKA_0_9
333
337
#define EXTRA_FIELDS2 \
334
338
O_ddP_O,
335
339
#else
336
- #define EXTRA_FIELDS1
337
340
#define EXTRA_FIELDS2
338
341
#endif
339
342
You can’t perform that action at this time.
0 commit comments