Getting mavsdk server running on voxl2
-
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 ? -
@binu-abraham I found the voxl-configure-docker-support script, trying to run it now
-
@binu-abraham Is there a pre-built docker image for mavsdk server on voxl2 ?
-
@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/releasesFollowed 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:14550From 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 -
@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
-
@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.