Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Collapse
Brand Logo

ModalAI Forum

  1. ModalAI Support Forum
  2. Ask your questions right here!
  3. VOXL2 HITL Sim with Gazebo in Docker - gazebo/voxl2 communication

VOXL2 HITL Sim with Gazebo in Docker - gazebo/voxl2 communication

Scheduled Pinned Locked Moved Ask your questions right here!
7 Posts 2 Posters 987 Views 1 Watching
  • 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.
  • G Offline
    G Offline
    garret
    Contributor
    wrote on last edited by garret
    #1

    Good afternoon,

    I am a new user trying to setup a HITL simulation with gazebo for a standard VTOL. I did the bootcamp from the documentation and then followed VOXL PX4 steps from here: https://docs.modalai.com/voxl-px4/

    In short, I get the following when run qshell dsp-hitl status
    f5f79e4d-7937-480f-a284-fcfb3b3e1a04-image.png

    As far as I understand, my J18 port is not receiving data from gazebo. I am using out of the box MCBL-00091-1 USB to Serial UART Cable from ModalAI, so I hope the chord is not an issue.

    Some of the troubleshooting that I have done:

    1. checking output from:
      xhost +
      docker run --rm -it --net=host --privileged -e DISPLAY=$DISPLAY -v /dev/input:/dev/input:rw -v /tmp/.X11-unix:/tmp/.X11-unix:ro voxl-gazebo-docker ./run_gazebo.bash
      86af997e-3745-4d72-94b5-d3fb268ec66c-image.png

    Since my /ttyUSB0 is recognized, I assume gazebo is trying to send the data to the voxl2 board.

    1. As for my services, I have the following:
      8be9fc25-2000-4e6a-9eae-17811d71df92-image.png

    px4 and qvio are disabled by default and mavlink is running.

    1. trying to adjust latency via:

    echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer

    ===================================
    none of the above produced favorable outcome. I was thinking of trying to set this up via old method in "Archivede instructions" from here: https://docs.modalai.com/voxl2-PX4-hitl/. however, i am using ubuntu 22.04 and as far as I understand gazebo classic is no longer supported on this version. hence, my only option is to use the docker. if anyone has any idea how I can troubleshoot further - it would be much appreciated.

    G 1 Reply Last reply
    0
    • G garret

      Good afternoon,

      I am a new user trying to setup a HITL simulation with gazebo for a standard VTOL. I did the bootcamp from the documentation and then followed VOXL PX4 steps from here: https://docs.modalai.com/voxl-px4/

      In short, I get the following when run qshell dsp-hitl status
      f5f79e4d-7937-480f-a284-fcfb3b3e1a04-image.png

      As far as I understand, my J18 port is not receiving data from gazebo. I am using out of the box MCBL-00091-1 USB to Serial UART Cable from ModalAI, so I hope the chord is not an issue.

      Some of the troubleshooting that I have done:

      1. checking output from:
        xhost +
        docker run --rm -it --net=host --privileged -e DISPLAY=$DISPLAY -v /dev/input:/dev/input:rw -v /tmp/.X11-unix:/tmp/.X11-unix:ro voxl-gazebo-docker ./run_gazebo.bash
        86af997e-3745-4d72-94b5-d3fb268ec66c-image.png

      Since my /ttyUSB0 is recognized, I assume gazebo is trying to send the data to the voxl2 board.

      1. As for my services, I have the following:
        8be9fc25-2000-4e6a-9eae-17811d71df92-image.png

      px4 and qvio are disabled by default and mavlink is running.

      1. trying to adjust latency via:

      echo 1 | sudo tee /sys/bus/usb-serial/devices/ttyUSB0/latency_timer

      ===================================
      none of the above produced favorable outcome. I was thinking of trying to set this up via old method in "Archivede instructions" from here: https://docs.modalai.com/voxl2-PX4-hitl/. however, i am using ubuntu 22.04 and as far as I understand gazebo classic is no longer supported on this version. hence, my only option is to use the docker. if anyone has any idea how I can troubleshoot further - it would be much appreciated.

      G Offline
      G Offline
      garret
      Contributor
      wrote on last edited by garret
      #2

      @garret Note: this is my physical setup
      Untitled drawing.png
      Untitled drawing(1).png

      Eric KatzfeyE 1 Reply Last reply
      0
      • G garret

        @garret Note: this is my physical setup
        Untitled drawing.png
        Untitled drawing(1).png

        Eric KatzfeyE Online
        Eric KatzfeyE Online
        Eric Katzfey
        ModalAI Team
        wrote on last edited by
        #3

        @garret I use the Sparkfun CAB-12977 and CAB-17240 for HITL and it works really well.

        G 1 Reply Last reply
        0
        • Eric KatzfeyE Eric Katzfey

          @garret I use the Sparkfun CAB-12977 and CAB-17240 for HITL and it works really well.

          G Offline
          G Offline
          garret
          Contributor
          wrote on last edited by
          #4

          @Eric-Katzfey so you suspect it is a cable issue?

          Eric KatzfeyE 1 Reply Last reply
          0
          • G garret

            @Eric-Katzfey so you suspect it is a cable issue?

            Eric KatzfeyE Online
            Eric KatzfeyE Online
            Eric Katzfey
            ModalAI Team
            wrote on last edited by
            #5

            @garret Very likely. But you also have some errors on gazebo launch that I have never seen before so that could be part of the problem as well.

            G 1 Reply Last reply
            0
            • Eric KatzfeyE Eric Katzfey

              @garret Very likely. But you also have some errors on gazebo launch that I have never seen before so that could be part of the problem as well.

              G Offline
              G Offline
              garret
              Contributor
              wrote on last edited by
              #6

              @Eric-Katzfey are you referring to libgl errors?

              1 Reply Last reply
              0
              • G Offline
                G Offline
                garret
                Contributor
                wrote on last edited by
                #7

                RESOLVED

                for those who come after:

                it was indeed an ftdi cable issue. Keep in mind that MCBL-00091-1 USB to Serial UART Cable is not a proper cable (i tried two freshly out of the box, and none worked). Currently using this cable: https://www.amazon.sa/-/en/Moyina-Converter-Terminated-BeagleBone-Minnowboard/dp/B06ZYPLFNB

                1 Reply Last reply
                1

                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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                ModalAI
                Categories Recent Tags ModalAI.com Docs
                © 2026 ModalAI® · Accelerating autonomy for smaller, smarter, safer drones · Powered by NodeBB
                • Login

                • Don't have an account? Register

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups