• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    voxl-docker-mavsdk-python build issues

    VOXL
    6
    48
    3.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      Alexander Saunders @Eric Katzfey
      last edited by 23 May 2024, 17:10

      @Eric-Katzfey Hey Eric, I'm running the ./build-image.sh on a laptop and am running into this error. Screenshot from 2024-05-23 13-02-42.png

      E 1 Reply Last reply 24 May 2024, 15:33 Reply Quote 0
      • A
        Alexander Saunders @Eric Katzfey
        last edited by 23 May 2024, 17:15

        @Eric-Katzfey image.png

        1 Reply Last reply Reply Quote 0
        • E
          Eric Katzfey ModalAI Team @Alexander Saunders
          last edited by 24 May 2024, 15:33

          @Alexander-Saunders Oh, the repo probably has the name master changed to main. Can you change the Dockerfile to try to use main instead of master and see if that works?

          A 1 Reply Last reply 24 May 2024, 16:39 Reply Quote 0
          • A
            Alexander Saunders @Eric Katzfey
            last edited by 24 May 2024, 16:39

            @Eric-Katzfey No luck with that. Also the branch is a master. image (1).png

            E 4 Replies Last reply 24 May 2024, 17:10 Reply Quote 0
            • E
              Eric Katzfey ModalAI Team @Alexander Saunders
              last edited by 24 May 2024, 17:10

              @Alexander-Saunders But that's a different problem. Before it was the checkout of master. This is something else.

              A 1 Reply Last reply 24 May 2024, 17:29 Reply Quote 0
              • E
                Eric Katzfey ModalAI Team @Alexander Saunders
                last edited by 24 May 2024, 17:11

                @Alexander-Saunders I'll try it and see what happens.

                1 Reply Last reply Reply Quote 0
                • E
                  Eric Katzfey ModalAI Team @Alexander Saunders
                  last edited by 24 May 2024, 17:18

                  @Alexander-Saunders Okay, yes, I see the same error. Sorry about that. Let me see if I can figure out what is going wrong.

                  1 Reply Last reply Reply Quote 0
                  • E
                    Eric Katzfey ModalAI Team @Alexander Saunders
                    last edited by 24 May 2024, 17:20

                    @Alexander-Saunders Can you try with the origin/ascend/docker branch of voxl-docker-mavsdk-python instead? Seems like that's where the latest updates have happened and haven't been merged back into master yet.

                    A 1 Reply Last reply 24 May 2024, 17:40 Reply Quote 0
                    • A
                      Alexander Saunders @Eric Katzfey
                      last edited by Alexander Saunders 24 May 2024, 17:34 24 May 2024, 17:29

                      @Eric-Katzfey I went ahead and tried the voxl-docker-mavsdk repo also and get the same issue. I tried docker pull docker.io/arm64v8/ubuntu:bionic and giving the user permissions for the file/folder.

                      What is stumping me is the registry-1.docker.io. I can ping it and do a DNS lookup just fine. Also pinging google is fine. But the error is persisting in relation to it.

                      I will try the other branches for voxl-docker-mavsdk andvoxl-docker-mavsdk-python. Will that require changing main to the branch name for the DockerFile?

                      1 Reply Last reply Reply Quote 0
                      • A
                        Alexander Saunders @Eric Katzfey
                        last edited by Alexander Saunders 24 May 2024, 17:47 24 May 2024, 17:40

                        @Eric-Katzfey image (2).png This is from the ascend branch

                        E 1 Reply Last reply 26 May 2024, 17:03 Reply Quote 0
                        • E
                          Eric Katzfey ModalAI Team @Alexander Saunders
                          last edited by 26 May 2024, 17:03

                          @Alexander-Saunders Not sure why that is happening. That does not happen when I try it. I'm guessing that you have a networking issue of some sort or perhaps all this messing with Docker on the target has somehow corrupted it and it needs to be reinstalled.

                          A 2 Replies Last reply 28 May 2024, 14:18 Reply Quote 0
                          • A
                            Alexander Saunders @Eric Katzfey
                            last edited by 28 May 2024, 14:18

                            @Eric-Katzfey So I deleted and re cloned voxl-docker-mavsdk-python branch ascend/docker. The build image failed halfway in. Is there any work that needs to be done on the VOXL2 or host computer that I am not aware of? Screenshot from 2024-05-28 10-15-10.png Screenshot from 2024-05-28 10-14-45.png

                            1 Reply Last reply Reply Quote 0
                            • A
                              Alexander Saunders @Eric Katzfey
                              last edited by 28 May 2024, 15:47

                              @Eric-Katzfey Also in the environment, the SDK is 1.2, python 3.10.12, Ubuntu 22.04.4 LTS

                              E 1 Reply Last reply 28 May 2024, 16:41 Reply Quote 0
                              • E
                                Eric Katzfey ModalAI Team @Alexander Saunders
                                last edited by 28 May 2024, 16:41

                                @Alexander-Saunders Okay, we're looking into it, thanks!

                                A 1 Reply Last reply 28 May 2024, 19:14 Reply Quote 0
                                • A
                                  Alexander Saunders @Eric Katzfey
                                  last edited by 28 May 2024, 19:14

                                  @Eric-Katzfey Thank you! What kind of timeline should I expect to hear back from you?

                                  B 2 Replies Last reply 28 May 2024, 19:27 Reply Quote 0
                                  • B
                                    brahim @Alexander Saunders
                                    last edited by 28 May 2024, 19:27

                                    @Alexander-Saunders I am testing a fix for this issue as we speak. I've sourced the problem to a Mavsdk dependency that had a recent upstream change which is causing issues on the voxl2 build image script.

                                    1 Reply Last reply Reply Quote 0
                                    • B
                                      brahim @Alexander Saunders
                                      last edited by 28 May 2024, 21:31

                                      @Alexander-Saunders can you try the following patch to the Dockerfile?

                                      I noticed that the mavsdk 3rd party package updated their header files to include a filesystem header that is incompatible with standard cpp libraries on ubuntu 18.04, hence switching the dockerfile to focal instead of bionic. You can save the text in a *.patch file (e.g. "filesystem.patch") and then run

                                      git apply filesystem.patch
                                      

                                      Alternatively just switch the docker base image from "bionic" to "focal"

                                      diff --git a/Dockerfile b/Dockerfile
                                      index c38a5c7..08e668b 100644
                                      --- a/Dockerfile
                                      +++ b/Dockerfile
                                      @@ -1,4 +1,4 @@
                                      -FROM arm64v8/ubuntu:bionic
                                      +FROM arm64v8/ubuntu:focal
                                       
                                       WORKDIR /home
                                       
                                      @@ -8,7 +8,7 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
                                       RUN apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main'
                                       RUN apt-get update
                                       RUN apt-get install -y cmake build-essential colordiff git doxygen -y
                                      -RUN apt-get install -y python3 python3-pip -y 
                                      +RUN apt-get install -y python3 python3-pip -y
                                       RUN apt-get install -y git libxml2-dev libxslt-dev curl
                                       
                                       RUN git clone https://github.com/mavlink/MAVSDK.git
                                      
                                      
                                      A 2 Replies Last reply 28 May 2024, 21:58 Reply Quote 0
                                      • A
                                        Alexander Saunders @brahim
                                        last edited by 28 May 2024, 21:58

                                        @brahim Thank you for getting back to me! I do not have access to the VOXL at this moment, but will be able to test first thing in the morning.

                                        1 Reply Last reply Reply Quote 0
                                        • A
                                          Alexander Saunders @brahim
                                          last edited by Alexander Saunders 29 May 2024, 17:59 29 May 2024, 17:58

                                          @brahim Changing from bionic to focal lead to Docker being installed successfully. I am currently following this documentation: https://docs.modalai.com/voxl2-PX4-hitl/ .

                                          The commands were ran fine:

                                          1. wget https://storage.googleapis.com/modalai_public/modal_dockers/voxl-gazebo-docker_v1_2.tgz
                                          2. docker load < voxl-gazebo-docker_v1_2.tgz
                                          3. docker tag voxl-gazebo-docker:v1.2 voxl-gazebo-docker:latest
                                          

                                          I am not using QGC because I am troubleshooting why only heartbeat packages are being sent and not GPS, Odometry, etc. voxl-px4 and qvio-server have been disabled.

                                          In a separate terminal, voxl-px4-hitl is being ran as called for in the documentation. The main issues are gazebo seems to not give expected outputs with some of the commands and the lack of status data from dsp_hitl. I've also looked through the forum to see if anyone else had a similar problem. If you or anyone could point me in the correct direction, I would greatly appreciate that!

                                          -Alexander
                                          Screenshot from 2024-05-29 13-27-31.png Screenshot from 2024-05-29 13-28-05.png Screenshot from 2024-05-29 13-32-45.png

                                          Stefan AmundarainS 1 Reply Last reply 29 May 2024, 19:04 Reply Quote 0
                                          • Stefan AmundarainS
                                            Stefan Amundarain @Alexander Saunders
                                            last edited by Stefan Amundarain 29 May 2024, 19:05 29 May 2024, 19:04

                                            @Alexander-Saunders @brahim to add on a follow up, what is the correct pin out of the FTDI cable we plug into the j18 port? Documentation says no power, just RX, TX, and Gnd; but YouTube instruction by Ascend Engineering uses Power as well. YouTube video by ModalAI matches instructions but the information doesn’t seem to be read, just heartbeat packets.

                                            VinnyV 1 Reply Last reply 29 May 2024, 19:13 Reply Quote 0
                                            11 out of 48
                                            • First post
                                              11/48
                                              Last post
                                            Powered by NodeBB | Contributors