• DepthAICommunity
  • OAK D Lite on Raspberry PI 3 / Ubuntu 16 : worth trying or no go ?

Thank you Erik !
I've checked the link, i see it's for Python 3.
ROS 1 default is Python 2, so i think i'll take a two steps approach : first, test on an up-to-date non-ROS system with Python 3; then attempt to have my ROS run Python 3, i've found a page that seems encouraging with a step by step guide.

I'll check all this next week-end. Thank you for your help !

    Hi Caz , Sounds great, let us know if you have any additional issues/questions๐Ÿ™‚!

    I've just tried upgrading my setup to run python 3; my conclusion is that the oak-d is a no go on ROS 1 / Raspberry pi3.

    I'd love it if someone ould prove me wrong; but here's how i got there.
    As Python 3 is necessary i found this tutorial explaining how to configure ROS 1 to run Python 3 instead of default Python 2

    (apologies if there's a no-link policy i missed, can be removed in this case!)
    But the page is about ROS Melodic, which is based on Ubuntu 18.

    When trying to follow the indicated steps nontheless i met several pip syntax errors which when googled point to compatibility issues that could involve the Python 3.5 version i use
    Python 3.6 is not available anymore for my environment in any directory i've tried

    Moving to Ubuntu 18 is not an option on my Pi 3 (already tried, so slow it's not usuable), so for me it's a no go in my current state.

    This may rush switching to Raspberry pi 4 when/if they get back to regular prices so i can use the Oak-D in my project !

    • erik replied to this.

      Hi Caz
      What about using depthai C++ instead of python? Then should solve the issues. As all of depthai ros examples/drivers are written in c++ as well. Thoughts?
      Thanks, Erik

      That's an interesting option, i'll look into it !

      It's been decades since i haven't compiled / built C++ though ๐Ÿ™‚ It might be the motivation i'd need to get back into it!

      But ROS adds complexity, the OS and env versions i use don't help, so there may still be dependencies issues i'd have troubles solving.

      I'll have a look at it this week-end, any help pointing me in the right direction would be greatly appreciated !

      I'll also try installing ROS 2 on a pi 4 i have and installing depthAI on it.

      • erik replied to this.

        Hi Caz ,
        Probably using pi4/ros2 will be the easiest way to resolve these version issues ๐Ÿ™‚
        Thanks, Erik

        24 days later

        Hi again !
        I took the time to setup a brand new environment, RPI 4 2GB, Ubuntu 20.04, ROS 2

        I've installed DepthAI prerequisites and i'm now attempting to run the Installing Depth AI script from the page
        https://docs.luxonis.com/en/latest/pages/tutorials/first_steps/
        where i pick the Linuc tab and execute the indicated script.

        It goes well up to one point where it gets stuck.
        All that goes well :

        Collecting pyqt5
        Using cached PyQt5-5.15.9.tar.gz (3.2 MB)
        Installing Build dependencies ... done
        Getting requirements to build wheel ... done

        and it gets stuck on the next line ;
        Preparing metadata (pyproject.toml) ... -

        Won't do a thing from there, apparently uses all CPU after a while and won't get past this.

        First noob question that comes to mind : should the Oak-D be connected to the Raspberry at that point of the install ?
        I've not tested that yet ๐Ÿ™‚

        Thank you for the support !

        • erik replied to this.

          Hi Caz ,
          You don't need pyqt5 per se (you only need it for depthai-demo), that's why by default we don't use it for depthai-demo, and use OpenCV "gui". So you can skip this requirement. In general, I'd suggest using preconfigured RPI image, especially if you aren't exactly sure what you are doing.

          should the Oak-D be connected to the Raspberry

          It doesn't really matter.
          Thanks, Erik

          Thank you Erik,

          i was worried that all required dependencies would not install properly if the script didn't go through all the way as there might have been other steps skipped if it stuck there;.
          So i went on installing for Python; i just tested, it works great and i can run examples !

          I considered using a preconfigured image as a last resort, but i was aiming at an Ubuntu 20 / ROS 2 environment.
          It is now complete with DepthAI on top !

          Thanks again ๐Ÿ™‚

            Hi Caz ,
            Great to hear you got it working๐Ÿ™‚!
            Thanks, Erik

            a year later

            Caz Hello! I am running into issues myself when trying to follow the getting started guide. I am using Ubuntu 22.04 so things might be different for me. Do you remember what all you did to get it up and running?

            I was able to get it working to an extent at one point. I could only get the preview running for 10-20 seconds before crashing. Every other program crashed it. Iโ€™ve tried raspbian and Ubuntu and I just canโ€™t seem to get this thing working.

            • Caz replied to this.

              Hi @Kato
              Please be more specific as to what errors you are receiving then the program crashes. This could give us a little more insight into what might be missing.

              Thanks,
              Jaka

              Kato Hi,

              it's been one year already, since then i've had to switch to 3D printing and hardware issues and i didn't get back to the PI 4 environment yet.

              Reading this thread again, i can't remember exactly what i've had to do to get it going, but i remember that "Install for Python" was a specific install procedure that i must have found online and followed.
              Unlike the previous installs i tried, that install worked fine for me so i guess i didn't have to tweak anything.

              But as jakaskerl mentionned, it would certainly be helpful if you could provide more insights on the issues you encounter.