Python Programming Your NAO Robot Tutorial Video 2

  Рет қаралды 19,219

RoboPhil

RoboPhil

Күн бұрын

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.
Philip English: philipenglish.com
Sponsor: Robot Center: www.robotcenter...
Hi guys! I'm Philip English from Robophil.com. Now on this video we are looking to teach you on how to program your NAO robot to walk with Python. The NAO can be program to walk to any point using the in-build Python Programming Language, so instead of using the drag and drop boxes in the choregraphe, Python is more expressive and allows you to do things like computing trigonometric calculations on the robot.
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")"
• On the next line write “motionProxy.walkTo(0.2,0.0,0.0) “
• End it with “self.onStopped()”
So as you can see we have put it down here. Now, the first line is a proxy called, ALmotion which what is we created here, which allows us to call the motion functions up, the second line is the walkTo which moves the robot to specific distance. Now, look on the decimal places here, sorry the numbers here, so see .2 is X and Y and the radius, so he's going to move .2 forward and then if I start playing with the other numbers here, he'll move to the Y radius and then to the other turning point as well. The final bit is the self.onStopped this will call and tell the choregraphe to stop the procedure when it is at the end and just simple loop and loop and loop. Now, If we are good we should see this now on the 3D NAO, so if I hit play, there we go we can see it walking along and as you know, if you going to see your robot you'll gonna see it walking along now with you. So that's it guys just have a quick play with the walk two in Python, again you can play with there figures and number in here to see it again to walk a little bit further. Brilliant! Thank you!
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.
Read more: www.philipengli...

Пікірлер: 14
@chandlerdavis9231
@chandlerdavis9231 9 жыл бұрын
Thanks for the tutorial! This will really help.
@blind_neighbourhoodNerd
@blind_neighbourhoodNerd 9 жыл бұрын
Awesome video!! Thanks heaps man
@eduardovictoria7038
@eduardovictoria7038 8 жыл бұрын
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!!
@RoboPhil
@RoboPhil 8 жыл бұрын
+Eduardo Victoria Hi Eduardo, keep me posted on your tic tac toe game, I would like to see it. Did you manage to get it all completed? :-)
@eduardovictoria7038
@eduardovictoria7038 8 жыл бұрын
+Robo Phil No Phil, that is not finished yet, is there a way to include in a box in chiregraphe all the Tic Tac Toe algorithm and that its output would be one variable of my algorithm?
@RoboPhil
@RoboPhil 6 жыл бұрын
Hi Eduardo, Are you still using your NAO Robot?
@RoboPhil
@RoboPhil 6 жыл бұрын
Can you email me here phil@robophil.com
@jillianautomire2478
@jillianautomire2478 8 жыл бұрын
Is this real Python code? Or is this a further creation of the language?
@ruqaiyaattaullah5793
@ruqaiyaattaullah5793 4 жыл бұрын
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.
@ithanhunt3250
@ithanhunt3250 8 жыл бұрын
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()
@RoboPhil
@RoboPhil 6 жыл бұрын
Hi Ithan, Are you still using your NAO Robot?
@RoboPhil
@RoboPhil 6 жыл бұрын
Hi are you still using the NAO Robot?. Can you email me here phil@robophil.com
@guillaumedeweck1286
@guillaumedeweck1286 7 жыл бұрын
Hello, My name is William and i am french Currently, I work on a school project with NAO and I would like him to swing according to the data of the accelerometer (as is shown in this link : fr.mathworks.com/videos/control-a-nao-robot-with-matlab-and-simu... ) 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
@BOB-rr5fe
@BOB-rr5fe 7 жыл бұрын
Can nao play hide n seek
Python Programming Your NAO Robot Tutorial Video 3
7:42
RoboPhil
Рет қаралды 13 М.
Python Programming your NAO Robot Tutorial Video 1
7:48
RoboPhil
Рет қаралды 57 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 61 МЛН
Yay, My Dad Is a Vending Machine! 🛍️😆 #funny #prank #comedy
00:17
Flipping Robot vs Heavier And Heavier Objects
00:34
Mark Rober
Рет қаралды 59 МЛН
How to make your Aldebaran NAO Robot Dance Tutorial Video 1
19:44
Nao robot How to install Python libraries/MQTT
6:05
Engineering_life
Рет қаралды 1,6 М.
Programming NAO robot with Python [Webinar]
31:01
Aldebaran
Рет қаралды 61 М.
Custom Transformer Shatters All Voltage Records (ft. 3D Printing Nerd)
21:23
If __name__ == "__main__" for Python Developers
8:47
Python Simplified
Рет қаралды 408 М.
"Clean" Code, Horrible Performance
22:41
Molly Rocket
Рет қаралды 897 М.
Aldebaran NAO Tutorial Video 6 "Walking Forward"
5:52
RoboPhil
Рет қаралды 12 М.
КАК РАБОТАЕТ WIFI?
20:14
Alek OS
Рет қаралды 54 М.
Aldebaran NAO Tutorial Video 3 “Speech Recognition"
8:42
RoboPhil
Рет қаралды 28 М.
MY HEIGHT vs MrBEAST CREW 🙈📏
00:22
Celine Dept
Рет қаралды 61 МЛН