resolved real minor py3 conflict with KDL (#21)

This commit is contained in:
Volker Gabler 2018-11-20 23:45:30 +01:00 committed by Chris Lalancette
parent 8af7e1a10d
commit 9c6c7c60f2
1 changed files with 2 additions and 2 deletions

View File

@ -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)
@ -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)