Tagged: python api error
- Arif SaeedParticipantJanuary 15, 2020 at 3:09 pmPost count: 7
I tried to use the method get_pose from the python API however i get the error msg:
AttributeError: __NiryoOne instance has no attribute ‘get_pose’
had this method been deprecated.
I dont think this an error on my side, as when i try get_joints() it worksS.ImuraParticipantJanuary 15, 2020 at 7:55 pmPost count: 9
Hi Arif Saeed
I just tried “get_pose()” with reference to the below page.
I could not execute this command.
I found the correct command from the below page.
>Niryo One Python API.
I tried “get_arm_pose()”. I can do it.
Please try “get_arm_pose()”. “get_pose()”command is wrong.S.ImuraParticipantJanuary 15, 2020 at 8:04 pmPost count: 9
I’ve attached a sample code.Have a nice day.
(Be careful! Please add “indent” yourself.)
# To use the API, copy these 4 lines on each Python file you create
from niryo_one_python_api.niryo_one_api import *
print “— Start”
n = NiryoOne()
except NiryoOneException as e:
# handle exception here
# you can also make a try/except for each command separately
print “— End”
- You must be logged in to reply to this topic.