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 ? -
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 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 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
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=hostThis should build an ubuntu focal image with mavsdk + all dependencies as well as the takeoff and land example
-
@binu-abraham Is there a pre-built docker image for mavsdk server on voxl2 ?
@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.
-
@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=hostThis should build an ubuntu focal image with mavsdk + all dependencies as well as the takeoff and land example
@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.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login