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

    Using MPA within voxl-docker-mavsdk-cpp

    Modal Pipe Architecture (MPA)
    3
    3
    254
    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.
    • Evan HertafeldE
      Evan Hertafeld
      last edited by

      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?

      Jetson NanoJ 1 Reply Last reply Reply Quote 0
      • Jetson NanoJ
        Jetson Nano @Evan Hertafeld
        last edited by

        @Evan-Hertafeld Hey I wanted to know whether you were able to connect to mpa server and access the data inside mavsdk

        1 Reply Last reply Reply Quote 0
        • Zachary Lowell 0Z
          Zachary Lowell 0 ModalAI Team
          last edited by

          @Evan-Hertafeld said in Using MPA within voxl-docker-mavsdk-cpp:

          libmodal_pipe

          @Evan-Hertafeld @Jetson-Nano

          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

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