How to program NAO robot using Python in Windows STEP by STEP (2021)

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024
  • Hey Guys,
    Python SDK - Installation Guide
    doc.aldebaran.c...
    Aldebaran Website
    www.softbankro...
    Python Examples
    doc.aldebaran.c...
    -----------------------------------------------------------------------------------
    Also here are some links to other channels that did it in different os:
    Mac: • CoRobots for CompuGirl...
    Linux: • Video
    (not in English, but you can make it out from the video what she is doing)

ความคิดเห็น • 46

  • @yoxanangeles8629
    @yoxanangeles8629 3 ปีที่แล้ว +3

    this is the video I needed, thanks a lot! Can't wait for the next video

  • @engineering_life9550
    @engineering_life9550 3 ปีที่แล้ว +2

    Hello,
    Thanks for this video !
    I followed your video but I still have the error "ImportError: No module named naoqi". Do you know what I can do ? I have windows10, do you think it could be the reason ?
    Thanks for your reply :)

    • @charleskoduru
      @charleskoduru  3 ปีที่แล้ว +1

      Hey bro, sure I would love to help. Before I do can you look at the previous comment below by mildfirewear. They had a similar issue, which I helped them out with. Lmk if your still facing any problems I’ll see what I can do.

    • @charleskoduru
      @charleskoduru  3 ปีที่แล้ว +1

      Recheck your environment variables

  • @fugit185
    @fugit185 2 ปีที่แล้ว

    I have to move python27 and python27 before %USERPROFILE%\AppData\Local\Microsoft\WindowsApps in "Path" environment in order to get python 2.7 work in command prompt

  • @darshpatel727
    @darshpatel727 ปีที่แล้ว

    Hey,
    I was trying to get this SDK in my python 3.11 but it was not working so I switched to python 2.7 and followed your instructions but still it is not working. Please do help ...!

  • @weamt8562
    @weamt8562 7 หลายเดือนก่อน

    Helplful I want if u make another video ✨✨thank u

  • @kzsy
    @kzsy ปีที่แล้ว

    Hey! my team's at the last step on the Pepper setup but we keep getting this error anytime we try connecting to Pepper with the AlProxy module (ALProxy(name,ip address, port)). Do you have any tips for solving this bug? Thank you!

    • @charleskoduru
      @charleskoduru  ปีที่แล้ว

      Can you retrieve the IP from Pepper? I recommend attempting to establish a connection using the standard IP protocol. You can do this by entering the IP address in your web browser and connecting through Ethernet while ensuring that you are on the same Wi-Fi network. Once you successfully log in, access your WLAN network, and that should enable wireless functionality for operating under the AIProxy.

  • @kzsy
    @kzsy ปีที่แล้ว

    Hello, please would you mind guiding me on how you programmed your robot and what SDK did you use. I followed the Official documentation on the website and installed the Python SDK but my computer doesnt connect to the robot via Its IP Address.

    • @charleskoduru
      @charleskoduru  ปีที่แล้ว

      turn on the robot connect via ethernet then click the main button it should say its IP and then you just enter the ip into the web browser.

  • @tiranharsha7925
    @tiranharsha7925 2 ปีที่แล้ว

    Very helpful, thank you so much

  • @midfirewear5764
    @midfirewear5764 3 ปีที่แล้ว +1

    Hi your tuto is super nice but when i try to import naoqi in cmd i got an error thats says : "ImportError: DLL load failed: %1 is not a valid Win32 application" could you please help me ??

    • @charleskoduru
      @charleskoduru  3 ปีที่แล้ว +1

      Hi,
      Don’t worry I got the same error as well. This means that there is a problem with the environment variables during the downloading procedure. The way I solved it was by uninstalling all applications for Python and NAO libs or any other libs related to NAO bot including naoqi. Then once removed I installed them again. In the beginning of the video I show some steps that should help. Since the NAO libs are kinda out of date you gotta have a little waiting time to ensure a successful installation. If you have a 64 bits it’s should not be a problem with the 32 bit install. Unfortunately that’s the only thing NAO libs have that is downloadable. I hope this helps. Let me know if your still stuck.

    • @midfirewear5764
      @midfirewear5764 3 ปีที่แล้ว

      @@charleskoduru well i already deleted all the pythons i had, do i have to delete chorégraph ? Is it possibly related to open cv ? Anyways thanks for trying to help !

    • @charleskoduru
      @charleskoduru  3 ปีที่แล้ว +2

      @@midfirewear5764 Hey, no need to delate Choregraph. Did you check your environment variables, because that is really where is issue occurs. So you removed python and when you installed it, did you do it by using "pip install" in the cmd? By installing applications through the cmd it directly connects the files to locations in the computer. Once you download python check the Envir Vari to see if it is like mine. Then download Naoqi files and follow from 7:57 very very slowly and carefully. This will manually ensure that you have the files in the right spot. Next, you need to share the location of the files with the computer by doing step 10:55. Make sure the spelling matches up on your side. Then close out of all the terminals and open a new terminal and try python > import naoqi. We are getting this error "ImportError: DLL load failed: %1 is not a valid Win32 application" because the downloaded naoqi files are not properly stored in the right location. Please be aware that duplicated files can also cause an issue so it is really really important that you delete any previous naoqi files before redoing something. A helpful tip I learned that gets me through situations like this is " You ought to be a fool if you are doing the same thing, but expecting a different result". This really helped me fixed a lot of stuff especially when troubleshooting. Please try and give this a shot. If still nothing I will try to do a live thing and we can solve your issue like that.

    • @verule3928
      @verule3928 3 ปีที่แล้ว

      I am facing the same issue, were you able to fix it?

    • @midfirewear5764
      @midfirewear5764 3 ปีที่แล้ว

      @@verule3928 sadly i do not manage to solve it, i litterally uninstalled everything, reinstalled, made the path things and PYTHONPATH things multiple times but i still struggle with the same issue :/

  • @verena6358
    @verena6358 2 ปีที่แล้ว

    Hey, thanks for the tutorial in the first place :)
    I still get a problem i don't understand when i try import naoqi:
    the file naoqi.py gets called seemingly with no problems, then in line 9 it callsc"import qi" so the file __init__.py in the subfolder qi gest called which also seems to work fine but this file calls "import Application as _Application" in line 89 and thats where the error occures and I get the same ImportError as midfirewear DLL load failed %1 is not a valid Win32-Application. (Full Error Message see below)
    I guess the the path variables are fine sice naoqi.py is found, but i have no idea where it is looking for this "Applicaiton" it wants to import (i didn't alter the downloaded SDK in any way, I just unzipped, renamed and copied to the right folder)
    Maybe you have an idea what i could try to solve this :) Thanks in advance
    Full Error message:
    Traceback (most recent call last):
    File "", line 1, in
    import naoqi
    File "C:\Python27\Lib\site-packages\pynaoqi\lib
    aoqi.py", line 9, in
    import qi
    File "C:\Python27\Lib\site-packages\pynaoqi\lib\qi\__init__.py", line 89, in
    from _qi import Application as _Application
    ImportError: DLL load failed: %1 ist keine zulässige Win32-Anwendung.

    • @charleskoduru
      @charleskoduru  2 ปีที่แล้ว

      Hey there, please look into the comment by " midfirewear". They had a similar problem and I gave some solutions to help solve it. Please double-check you added your environment variables correctly. Let me know if it works.

  • @zaranto7023
    @zaranto7023 11 หลายเดือนก่อน

    Bro, love you. Through the bonus information in the comments i made it work. Thak You!

    • @charleskoduru
      @charleskoduru  11 หลายเดือนก่อน

      i appreciate bro, thx

  • @soukainagouraguine5736
    @soukainagouraguine5736 2 ปีที่แล้ว

    thank you for the video my question is about How I can also install TensorFlow in the same version of python 2.7, because my project need to use naoqi and tensorflow at the same time

    • @akka1719
      @akka1719 2 ปีที่แล้ว +1

      hello
      did you find the way?

    • @soukainagouraguine5736
      @soukainagouraguine5736 2 ปีที่แล้ว

      @@akka1719 yes you can install a specifiq version of tensorflow

    • @akka1719
      @akka1719 2 ปีที่แล้ว

      @@soukainagouraguine5736 Thanks alot
      can you send me the link of the version please

  • @moatazgharbi6930
    @moatazgharbi6930 2 ปีที่แล้ว

    I have a probleme when i do an order with chroreghraphe the robot say my cloud systeme in wrong, please how can i fix it.

    • @fugit185
      @fugit185 2 ปีที่แล้ว

      can you post your error message here?

  • @Benyosefov
    @Benyosefov 3 ปีที่แล้ว

    Mac version??????

  • @theunawaretom
    @theunawaretom 10 หลายเดือนก่อน

    Thank you very Much you are my man

    • @theunawaretom
      @theunawaretom 10 หลายเดือนก่อน

      I also shared your video with Giorgia, a friend

  • @itsbean3238
    @itsbean3238 2 ปีที่แล้ว

    well, i think we need a community

    • @Batselot
      @Batselot ปีที่แล้ว

      Hell yeah we do since right now the developer websites are now but we are stuck with the robots we could help each other!

    • @charleskoduru
      @charleskoduru  8 หลายเดือนก่อน

      let me see what I can do@@Batselot

  • @naifalharbi3121
    @naifalharbi3121 2 ปีที่แล้ว

    can we use python3 on Nao?

    • @charleskoduru
      @charleskoduru  2 ปีที่แล้ว

      If you are using the 2.1 V Nao then I would stick to using py 2.0, but if you have the latest version of Nao 6 then would I think py 3 is compatible.

    • @fugit185
      @fugit185 2 ปีที่แล้ว

      @@charleskoduru I don't think so, Aldebaran has no python3 SDK for Nao

  • @minilee8
    @minilee8 2 ปีที่แล้ว +1

    Thanks, your video helped me a ton! I had an issue with the import naopi but I fixed it by uninstalling python2.7 and installing the x64 version of python2.7.

    • @JayDayani
      @JayDayani ปีที่แล้ว

      not helpful cheatinng on us