Open Napoleon-BlownApart opened 7 years ago
The error seems to be cause by a change in the Aldebaran API. Line 38 needs to be changed to:
postureProxy.goToPosture(posture,1.0)
Where only the Posture and speed are required as parameters. Stiffness, I haven't checked the old API so I could be wrong, is no longer required.
Fixing this leads to a subscript out of range error in the JointControl
method:
Traceback (most recent call last):
File "single_nao_control.py", line 57, in <module>
JointControl(clientID,motionProxy,0,Body)
File "/home/user/Downloads/v-rep_Nao/Project-NAO-Control/Scripts/manage_joints.py", line 216, in JointControl
vrep.simxSetJointTargetPosition(clientID,Body[21][i],commandAngles[22],vrep.simx_opmode_streaming)
IndexError: list index out of range
22 is out of range from the commandAngles = motionProxy.getAngles('Body', False)
call (line 187). This may have something to do with the version of the Nao being used? (Not sure.)
I have made it work in general. However I have removed the functionality for the finger, which I will return next. I'm going to Fork this repo, fix it up, and then do a pull request.
Hi Napoleon,
Thanks for the info. I haven't touch this project for a long time (since I was still a student) and it's true that the NAOqi API have changed since.
I'm going to take a look soon in the code to updgrade it for 2.1.4.3, and maybe add more functionnalities.
Thanks again for your help ! :)
Hi Pierre, thank you for your work. However I'm having some issues getting it working here. When I run
single_nao_control.py
, I get the following error:Can you shed any light on what may be going wrong?
I have a variety of Choregraphes installed but I'm using
choregraphe-suite-2.1.4.13-linux64
. I am using the lastest V-REP, downloaded a few days ago. I also have a variety of Naoqi libraries installed in usr/local:My PYTHONPATH points to
pynaoqi-python2.7-2.1.4.13-linux64/
and my LD_LIBRARY_PATH points to/usr/local/naoqi-sdk-2.1.4.13-linux64/lib
My full environment, is listed below: