Using MPA within voxl-docker-mavsdk-cpp
-
I see the supported method for using MAVSDK with Voxl is a preconfigured Docker container, which I have successfully set up with voxl-docker to run MAVSDK and control my vehicle from within the container.
I see that by default /run/mpa/ is shared into this container, which is great. However, when I try the libmodal_pipe hello_world example, I get an error:
fatal error: modal_start_stop.h: No such file or directory
Clearly this container isn't set up with the libmodal_pipe libraries. What's the proper way to use the MPA pipes from within the voxl-docker-mavsdk-cpp container?
-
@Evan-Hertafeld Hey I wanted to know whether you were able to connect to mpa server and access the data inside mavsdk
-
@Evan-Hertafeld said in Using MPA within voxl-docker-mavsdk-cpp:
libmodal_pipe
You need to share all those files via a volume mount alongside with the /run/mpa directory to allow docker to probe the data and grab from an MPA pipe.
so in your docker run something like
-v /usr/include/modal_start_stop.h:/usr/include/modal_start_stop.h
needs to be done - the other option is you just download the actual MPA debian inside your docker image and call it a day - then you will have all the necessary headers, libs, binaries, and you just need to share /run/mpa as a volume to access the data.Zach