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

    Getting mavsdk server running on voxl2

    VOXL SDK
    3
    7
    207
    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.
    • B
      binu.abraham
      last edited by

      I have a voxl2 drone, I can ssh to it, but can't adb in right now.
      I am trying to follow the instructions on https://docs.modalai.com/mavsdk/ But cannot find the voxl-mavsdk.tar file that is referenced in the video in the download.
      So I have tried to build it using the docker https://gitlab.com/voxl-public/voxl-docker-images/voxl-docker-mavsdk. But the build.sh assumes the device is connected via adb .
      I tried running those commands from the ssh shell , but I couldn't find voxl-configure-docker-support.sh.
      Is there a different set of instructions for voxl2 ?

      B 1 Reply Last reply Reply Quote 0
      • B
        binu.abraham @binu.abraham
        last edited by

        @binu-abraham I found the voxl-configure-docker-support script, trying to run it now

        B 1 Reply Last reply Reply Quote 0
        • B
          binu.abraham @binu.abraham
          last edited by

          @binu-abraham Is there a pre-built docker image for mavsdk server on voxl2 ?

          B B 2 Replies Last reply Reply Quote 0
          • B
            binu.abraham @binu.abraham
            last edited by

            @binu-abraham
            Wanted to post about how I got this working finally
            I was having issues with docker build ( would segfault on ubuntu) and building the mavsdk from source ( while running the binary on voxl2, it complained that glibc was missing ) , so I finally downloaded the mavsdk_server_linux-arm64-musl from https://github.com/mavlink/MAVSDK/releases

            Followed the instructions to set the vision hub prameters from https://docs.modalai.com/mavsdk/

            Started the mavsdk-server
            ./mavsdk_server_linux-arm64-musl -p 50051 udpin://0.0.0.0:14550

            From the android app
            drone = System(
            <drone IP address>,
            50051 // -p parameter for mavsdk-server
            )
            Don't call mavsdkServer.run as mavsdkserver is already running in voxl2

            B 1 Reply Last reply Reply Quote 0
            • B
              brahim @binu.abraham
              last edited by

              @binu-abraham you can do an scp of the get_docker.sh script here on to the voxl2 and then run it.

              Most of the voxl suite packages assume you have an adb connection.

              As for building the docker image over ssh, I would just clone down voxl-docker-mavsdk on to the voxl2 itself, change directory to voxl-docker-mavsdk, and then just run the following command:

              docker build . -t mavsdk --network=host
              
              

              This should build an ubuntu focal image with mavsdk + all dependencies as well as the takeoff and land example

              L 1 Reply Last reply Reply Quote 0
              • B
                brahim @binu.abraham
                last edited by

                @binu-abraham I do not believe modalai has images on docker hub or any other docker repo. The gitlab repo has all of the Dockerfiles though.

                1 Reply Last reply Reply Quote 0
                • L
                  luisdelavega @brahim
                  last edited by

                  @brahim Thanks for this advice!

                  I'm working on Windows with WSL and it is impossible for me to build the docker image by following the instructions on the voxl-docker-mavsdk README.

                  I'm still unsure why the image build on the VOXL and not on my WSL Ubuntu, but at least I got it to work.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post
                  Powered by NodeBB | Contributors