resolved real minor py3 conflict with KDL (#21)
This commit is contained in:
parent
8af7e1a10d
commit
9c6c7c60f2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue