Python Programming Your NAO Robot Tutorial Video 2

preview_player
Показать описание
Hi everyone and welcome to How to program your NAO Robot with Python Tutorial Video number 2. On this week's tutorial we are looking to how to get your robot to walk using Python. So if you want to learn how to program your robot to walk up to any mountain then please stay tuned.

Right! Jumping straight here guys, we are going to do the Walk Two Tutorial but with Python.

• Right click the main section box and go to "add new box"
• Create a name for the box
• Input main image
• Select the type of box

Brilliant! And that's it. And we have a Python Code Box here, so what we do is we open but before that what we want to do is stand up,we want our robot to stand up as it is sitting down at the moment, from the screen you can see it is standing up, drag a stand up icon in there and we'll just connect it all up the noodles, I am actually using the NAO key so the 3D robot in the robot view, and this because we need to put the robot on connecting so we can see what's going on quite clearly with the NAO key button, oversee when you are using this on the real robot never forget to trigger on the motors and connect everything up properly.

• Open the Code Box
• Go to “def onInput_onStart(self):”
• Write "motionProxy = ALProxy("ALMotion")"

Well done guys, you can now get your NAO Robot to walk by using
your Python programming skills.
Now have a play with this behaviour to see if you can get your NAO
to walk to several points, or maybe even walk around a maze?
Have a play guys and use your imagination.
Now if you liked this tutorial and want to see the next one in the
collection, then please hit the Subscribe button and keep update with
the latest videos that come out.
Please have a look below, where I have put links relating to this
videos , as well as other information about the NAO Robot.
If you have any questions or want to see any other related tutorials,
then please write me a message in the comments section, and I will
see what I can do.

Thanks Guys! And I will see you next time.

Рекомендации по теме
Комментарии
Автор

Thanks for the tutorial! This will really help.

chandlerdavis
Автор

Hello!! I am implementing a tic tac toe game in Nao, my big doubt is how to connect the tic tac toe´s Algorithm in Python on its 2.7 version which I already have, with this Python codes to Nao! You are very very helpful!!

eduardovictoria
Автор

Hey. I am working with Choregraphe 2.8.5.10. I get this error when using the ALBehavior "Generated behavior class evaluation: name 'ALBehavior' is not defined Behavior generated for this box does not seem to work. Please contact Aldebaran Robotics for further investigation."
Please help.

ruqaiyaattaullah
Автор

Is this real Python code? Or is this a further creation of the language?

jillianautomire
Автор

Hello,
My name is William and i am french
I have a program which permits to rotate (pitch) the knees, however I meet a problem : I would like that the knee movement to be done according to the accelerometer. I thought of programming with boxes : "if", "switch case", or "choice" but I do not know how to program it though I have some Python notions).
Cordially, have a good day.
Could you help me ?

Best regards

guillaumedeweck
Автор

ESTE CODIGO LO HACE ANDAR 6 PASOS

motionProxy = ALProxy("ALMotion")
motionProxy.walkTo(0.2, 0.0, 0.0)
self.onStopped()


ESTE LO HACE ANDAR 24 PASOS
motionProxy = ALProxy("ALMotion")
motionProxy.walkTo(0.9, 0.0, 0.0)
self.onStopped()

ithanhunt