File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -281,6 +281,14 @@ def do_postprocess():
281
281
282
282
if prpy .util .HasAffineDOFs (cspec ):
283
283
affine_dofs = (DOFAffine .X | DOFAffine .Y | DOFAffine .RotationAxis )
284
+
285
+ # Bug in OpenRAVE ExtractUsedIndices function makes
286
+ # dof_indices = affine_dofs. Temporary workaround for that bug.
287
+ dof_indices = []
288
+ logger .warning (
289
+ 'Trajectory contains affine DOFs. Any regular DOFs'
290
+ ' will be ignored.'
291
+ )
284
292
else :
285
293
affine_dofs = 0
286
294
@@ -291,7 +299,7 @@ def do_postprocess():
291
299
cloned_robot .GetName (), list (dof_indices ), affine_dofs
292
300
)
293
301
294
- if dof_indices and affine_dofs :
302
+ if len ( dof_indices ) and affine_dofs :
295
303
raise ValueError (
296
304
'Trajectory contains both affine and regular DOFs.' )
297
305
# Special case for timing affine-only trajectories.
You can’t perform that action at this time.
0 commit comments