Skip to content

Commit

Permalink
resolved real minor py3 conflict with KDL (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
VGab authored and clalancette committed Nov 20, 2018
1 parent 8af7e1a commit 9c6c7c6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kdl_parser_py/kdl_parser_py/urdf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def _toKdlInertia(i):

def _toKdlJoint(jnt):

fixed = lambda j,F: kdl.Joint(j.name, kdl.Joint.None)
fixed = lambda j,F: kdl.Joint(j.name, 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 Expand Up @@ -122,5 +122,5 @@ def treeFromUrdfModel(robot_model, quiet=False):
if not _add_children_to_tree(robot_model, robot_model.link_map[child], tree):
ok = False
break

return (ok, tree)

0 comments on commit 9c6c7c6

Please sign in to comment.