Skip to content

Commit

Permalink
Restored compatibility with Orocos KDL after Joint.None was removed
Browse files Browse the repository at this point in the history
  • Loading branch information
fjulian committed Sep 9, 2020
1 parent 735d562 commit 0805476
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kdl_parser_py/kdl_parser_py/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,9 @@ def _toKdlInertia(i):

def _toKdlJoint(jnt):

fixed = lambda j,F: kdl.Joint(j.name, getattr(kdl.Joint, 'None'))
fixed = lambda j,F: kdl.Joint(
j.name,
getattr(kdl.Joint, 'Fixed') if hasattr(kdl.Joint, 'Fixed') else getattr(kdl.Joint, 'None'))
rotational = lambda j,F: kdl.Joint(j.name, F.p, F.M * kdl.Vector(*j.axis), kdl.Joint.RotAxis)
translational = lambda j,F: kdl.Joint(j.name, F.p, F.M * kdl.Vector(*j.axis), kdl.Joint.TransAxis)

Expand Down

0 comments on commit 0805476

Please sign in to comment.