Skip to content

Commit

Permalink
fix for python3 ...
Browse files Browse the repository at this point in the history
  • Loading branch information
YoheiKakiuchi committed Apr 15, 2020
1 parent 63c49f0 commit 60d5411
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions hrpsys_choreonoid/scripts/ros_service_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ def getCoordinate(robotname = 'JAXON_RED', linkname = 'WAIST'):

if iLink == None:
return '(:fail "invalid linkname %s")'%(linkname)

coords = iLink.position()
if callable(iLink.position):
coords = iLink.position()
else:
coords = iLink.position
pos = coords[0:3, 3]
rot = coords[0:3, 0:3]

Expand Down

0 comments on commit 60d5411

Please sign in to comment.