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. SITL using VOXL2 PX4 software

SITL using VOXL2 PX4 software

Scheduled Pinned Locked Moved Ask your questions right here!
10 Posts 6 Posters 2.3k 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.
  • K Offline
    K Offline
    kerct
    Contributor
    wrote on last edited by
    #1

    Is it possible to run SITL using ModalAI's version of the PX4 software? I am using this repo https://github.com/modalai/px4-firmware/ and followed the same steps as I would with PX4's Autopilot repo:

    1. roslaunch my gazebo world
    2. in px4-firmware, make px4_sitl_default none
    3. start my own ros app

    However, I recently discovered that there's the option to make modalai_voxl2 (instead of make px4_sitl_default), so I am not sure if I am actually using the ModalAI version. What is the correct way to do so?

    I am unable to make modalai_voxl2 successfully:

    $ make modalai_voxl2
    -- PX4 version: v1.14.0-2.0.43-dev (1.14.0)
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
    -- PX4 config file: /home/xx/px4-firmware/boards/modalai/voxl2/default.px4board
    -- PLATFORM posix
    -- LINUX_TARGET y
    -- TOOLCHAIN aarch64-linux-gnu
    -- ROMFSROOT px4fmu_common
    -- ROOTFSDIR /data/px4
    -- PX4 config: modalai_voxl2_default
    -- PX4 platform: posix
    -- PX4 lockstep: disabled
    -- The CXX compiler identification is unknown
    -- The C compiler identification is unknown
    -- The ASM compiler identification is unknown
    -- Found assembler: /bin/aarch64-linux-gnu-gcc
    CMake Error at CMakeLists.txt:219 (project):
    The CMAKE_CXX_COMPILER:

    /bin/aarch64-linux-gnu-g++
    

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.

    CMake Error at CMakeLists.txt:219 (project):
    The CMAKE_C_COMPILER:

    /bin/aarch64-linux-gnu-gcc
    

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
    the compiler, or to the compiler name if it is in the PATH.

    CMake Error at CMakeLists.txt:219 (project):
    The CMAKE_ASM_COMPILER:

    /bin/aarch64-linux-gnu-gcc
    

    is not a full path to an existing compiler tool.

    Tell CMake where to find the compiler by setting either the environment
    variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
    to the compiler, or to the compiler name if it is in the PATH.

    -- Warning: Did not find file Compiler/-ASM
    -- Configuring incomplete, errors occurred!
    See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeOutput.log".
    See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeError.log".
    Error: /home/xx/px4-firmware/build/modalai_voxl2_default is not a directory
    make: *** [Makefile:232: modalai_voxl2] Error 1

    ModeratorM Eric KatzfeyE 2 Replies Last reply
    0
    • K kerct

      Is it possible to run SITL using ModalAI's version of the PX4 software? I am using this repo https://github.com/modalai/px4-firmware/ and followed the same steps as I would with PX4's Autopilot repo:

      1. roslaunch my gazebo world
      2. in px4-firmware, make px4_sitl_default none
      3. start my own ros app

      However, I recently discovered that there's the option to make modalai_voxl2 (instead of make px4_sitl_default), so I am not sure if I am actually using the ModalAI version. What is the correct way to do so?

      I am unable to make modalai_voxl2 successfully:

      $ make modalai_voxl2
      -- PX4 version: v1.14.0-2.0.43-dev (1.14.0)
      -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
      -- PX4 config file: /home/xx/px4-firmware/boards/modalai/voxl2/default.px4board
      -- PLATFORM posix
      -- LINUX_TARGET y
      -- TOOLCHAIN aarch64-linux-gnu
      -- ROMFSROOT px4fmu_common
      -- ROOTFSDIR /data/px4
      -- PX4 config: modalai_voxl2_default
      -- PX4 platform: posix
      -- PX4 lockstep: disabled
      -- The CXX compiler identification is unknown
      -- The C compiler identification is unknown
      -- The ASM compiler identification is unknown
      -- Found assembler: /bin/aarch64-linux-gnu-gcc
      CMake Error at CMakeLists.txt:219 (project):
      The CMAKE_CXX_COMPILER:

      /bin/aarch64-linux-gnu-g++
      

      is not a full path to an existing compiler tool.

      Tell CMake where to find the compiler by setting either the environment
      variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.

      CMake Error at CMakeLists.txt:219 (project):
      The CMAKE_C_COMPILER:

      /bin/aarch64-linux-gnu-gcc
      

      is not a full path to an existing compiler tool.

      Tell CMake where to find the compiler by setting either the environment
      variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
      the compiler, or to the compiler name if it is in the PATH.

      CMake Error at CMakeLists.txt:219 (project):
      The CMAKE_ASM_COMPILER:

      /bin/aarch64-linux-gnu-gcc
      

      is not a full path to an existing compiler tool.

      Tell CMake where to find the compiler by setting either the environment
      variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
      to the compiler, or to the compiler name if it is in the PATH.

      -- Warning: Did not find file Compiler/-ASM
      -- Configuring incomplete, errors occurred!
      See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeOutput.log".
      See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeError.log".
      Error: /home/xx/px4-firmware/build/modalai_voxl2_default is not a directory
      make: *** [Makefile:232: modalai_voxl2] Error 1

      ModeratorM Offline
      ModeratorM Offline
      Moderator
      ModalAI Team
      wrote on last edited by
      #2

      @kerct We have HITL documented here: https://docs.modalai.com/voxl2-PX4-hitl/

      In SITL there would not be anything unique to test

      1 Reply Last reply
      0
      • Zachary Lowell 0Z Offline
        Zachary Lowell 0Z Offline
        Zachary Lowell 0
        ModalAI Team
        wrote on last edited by
        #3

        @kerct you should be able to run SITL just fine - however keep in mind that a lot of the PX4 modules and drivers running on the voxl2 run on the DSP, not the linux side. SO based off this - if you run the SITL instance on your linux/posix machine - it will be leveraging the module that is built to run on the linux side not what would be running on the DSP - so it is kind of in vein.

        Anyways - I would recommend if you want to test your ros code and your gazebo stuff, run the voxl2 in hitl. Here is a video explaining how to setup HITL on the board:

        Link Preview Image
        How To Run HITL On ModalAI's VOXL2

        HITL stands for "Hardware In The Loop" and in this video, Zach Lowell will show you run HITL mode using ModalAI's VOXL2. Doing this requires a bit more softw...

        favicon

        YouTube (www.youtube.com)

        Let us know if this helps!

        Usama HamayunU 1 Reply Last reply
        0
        • K kerct

          Is it possible to run SITL using ModalAI's version of the PX4 software? I am using this repo https://github.com/modalai/px4-firmware/ and followed the same steps as I would with PX4's Autopilot repo:

          1. roslaunch my gazebo world
          2. in px4-firmware, make px4_sitl_default none
          3. start my own ros app

          However, I recently discovered that there's the option to make modalai_voxl2 (instead of make px4_sitl_default), so I am not sure if I am actually using the ModalAI version. What is the correct way to do so?

          I am unable to make modalai_voxl2 successfully:

          $ make modalai_voxl2
          -- PX4 version: v1.14.0-2.0.43-dev (1.14.0)
          -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.8.10", minimum required is "3")
          -- PX4 config file: /home/xx/px4-firmware/boards/modalai/voxl2/default.px4board
          -- PLATFORM posix
          -- LINUX_TARGET y
          -- TOOLCHAIN aarch64-linux-gnu
          -- ROMFSROOT px4fmu_common
          -- ROOTFSDIR /data/px4
          -- PX4 config: modalai_voxl2_default
          -- PX4 platform: posix
          -- PX4 lockstep: disabled
          -- The CXX compiler identification is unknown
          -- The C compiler identification is unknown
          -- The ASM compiler identification is unknown
          -- Found assembler: /bin/aarch64-linux-gnu-gcc
          CMake Error at CMakeLists.txt:219 (project):
          The CMAKE_CXX_COMPILER:

          /bin/aarch64-linux-gnu-g++
          

          is not a full path to an existing compiler tool.

          Tell CMake where to find the compiler by setting either the environment
          variable "CXX" or the CMake cache entry CMAKE_CXX_COMPILER to the full path
          to the compiler, or to the compiler name if it is in the PATH.

          CMake Error at CMakeLists.txt:219 (project):
          The CMAKE_C_COMPILER:

          /bin/aarch64-linux-gnu-gcc
          

          is not a full path to an existing compiler tool.

          Tell CMake where to find the compiler by setting either the environment
          variable "CC" or the CMake cache entry CMAKE_C_COMPILER to the full path to
          the compiler, or to the compiler name if it is in the PATH.

          CMake Error at CMakeLists.txt:219 (project):
          The CMAKE_ASM_COMPILER:

          /bin/aarch64-linux-gnu-gcc
          

          is not a full path to an existing compiler tool.

          Tell CMake where to find the compiler by setting either the environment
          variable "ASM" or the CMake cache entry CMAKE_ASM_COMPILER to the full path
          to the compiler, or to the compiler name if it is in the PATH.

          -- Warning: Did not find file Compiler/-ASM
          -- Configuring incomplete, errors occurred!
          See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeOutput.log".
          See also "/home/xx/px4-firmware/build/modalai_voxl2_default/CMakeFiles/CMakeError.log".
          Error: /home/xx/px4-firmware/build/modalai_voxl2_default is not a directory
          make: *** [Makefile:232: modalai_voxl2] Error 1

          Eric KatzfeyE Offline
          Eric KatzfeyE Offline
          Eric Katzfey
          ModalAI Team
          wrote on last edited by
          #4

          @kerct The modalai_voxl2 target is for code running on the voxl2. SITL does not run on the VOXL2, it runs on your desktop computer. So, for that you use the px4_sitl_default target. If you use the modalai fork of the repo then you should use the voxl-dev branch. We do not normally test SITL on this branch so not sure if it is functional. We mostly use HITL since that is running our actual on target code and is much more representative of how things will work on a real drone.

          K 1 Reply Last reply
          0
          • Eric KatzfeyE Eric Katzfey

            @kerct The modalai_voxl2 target is for code running on the voxl2. SITL does not run on the VOXL2, it runs on your desktop computer. So, for that you use the px4_sitl_default target. If you use the modalai fork of the repo then you should use the voxl-dev branch. We do not normally test SITL on this branch so not sure if it is functional. We mostly use HITL since that is running our actual on target code and is much more representative of how things will work on a real drone.

            K Offline
            K Offline
            kerct
            Contributor
            wrote on last edited by
            #5

            @Moderator @Zachary-Lowell-0 @Eric-Katzfey Thanks for your replies! I am looking to do multi-vehicle simulation so SITL would be ideal, but I would definitely try out HITL too (although that would be limited to only 1 vehicle in the simulation right?)

            Eric KatzfeyE 1 Reply Last reply
            0
            • K kerct

              @Moderator @Zachary-Lowell-0 @Eric-Katzfey Thanks for your replies! I am looking to do multi-vehicle simulation so SITL would be ideal, but I would definitely try out HITL too (although that would be limited to only 1 vehicle in the simulation right?)

              Eric KatzfeyE Offline
              Eric KatzfeyE Offline
              Eric Katzfey
              ModalAI Team
              wrote on last edited by
              #6

              @kerct We have not tried to do anything more than single vehicle.

              1 Reply Last reply
              0
              • Zachary Lowell 0Z Offline
                Zachary Lowell 0Z Offline
                Zachary Lowell 0
                ModalAI Team
                wrote on last edited by
                #7

                That is correct it would only be able to support one vehicle. You can test SITL multi vehicles on your parent computer running SITL, however the modules and drivers running in that environment would differ from what is running on the voxl2.

                J 1 Reply Last reply
                0
                • Zachary Lowell 0Z Zachary Lowell 0

                  @kerct you should be able to run SITL just fine - however keep in mind that a lot of the PX4 modules and drivers running on the voxl2 run on the DSP, not the linux side. SO based off this - if you run the SITL instance on your linux/posix machine - it will be leveraging the module that is built to run on the linux side not what would be running on the DSP - so it is kind of in vein.

                  Anyways - I would recommend if you want to test your ros code and your gazebo stuff, run the voxl2 in hitl. Here is a video explaining how to setup HITL on the board:

                  Link Preview Image
                  How To Run HITL On ModalAI's VOXL2

                  HITL stands for "Hardware In The Loop" and in this video, Zach Lowell will show you run HITL mode using ModalAI's VOXL2. Doing this requires a bit more softw...

                  favicon

                  YouTube (www.youtube.com)

                  Let us know if this helps!

                  Usama HamayunU Offline
                  Usama HamayunU Offline
                  Usama Hamayun
                  wrote on last edited by
                  #8

                  @Zachary-Lowell-0 does this modal_voxl2 could run of voxl2_emulator, ???

                  1 Reply Last reply
                  0
                  • Zachary Lowell 0Z Zachary Lowell 0

                    That is correct it would only be able to support one vehicle. You can test SITL multi vehicles on your parent computer running SITL, however the modules and drivers running in that environment would differ from what is running on the voxl2.

                    J Offline
                    J Offline
                    jmltt
                    Regular
                    wrote on last edited by
                    #9

                    @Zachary-Lowell-0 said in SITL using VOXL2 PX4 software:

                    That is correct it would only be able to support one vehicle. You can test SITL multi vehicles on your parent computer running SITL, however the modules and drivers running in that environment would differ from what is running on the voxl2.

                    I'm trying to do the same thing as the original poster (see https://forum.modalai.com/topic/4930/voxl-px4-vs-mainline-px4-sitl-questions)

                    Can you explain generally the differences between the code running on the vehicle vs a SITL build? Is the flight control stack (save sensor input) mostly the same if building the sitl from the px4-firmware branch that's on the quads? I'm going to try out HITL using modalai's docker image as well, but I'd like a SITL build that's going to be as close as possible to what's running on the quads so I can test multi-vehicle control via ros2

                    Eric KatzfeyE 1 Reply Last reply
                    0
                    • J jmltt

                      @Zachary-Lowell-0 said in SITL using VOXL2 PX4 software:

                      That is correct it would only be able to support one vehicle. You can test SITL multi vehicles on your parent computer running SITL, however the modules and drivers running in that environment would differ from what is running on the voxl2.

                      I'm trying to do the same thing as the original poster (see https://forum.modalai.com/topic/4930/voxl-px4-vs-mainline-px4-sitl-questions)

                      Can you explain generally the differences between the code running on the vehicle vs a SITL build? Is the flight control stack (save sensor input) mostly the same if building the sitl from the px4-firmware branch that's on the quads? I'm going to try out HITL using modalai's docker image as well, but I'd like a SITL build that's going to be as close as possible to what's running on the quads so I can test multi-vehicle control via ros2

                      Eric KatzfeyE Offline
                      Eric KatzfeyE Offline
                      Eric Katzfey
                      ModalAI Team
                      wrote on last edited by
                      #10

                      @jmltt For reference, here is a commit that will allow our fork to build for SITL on Ubuntu 24.04: https://github.com/modalai/px4-firmware/commit/8366d2e56c171230ee31c0856cb243d46f09de31

                      1 Reply Last reply
                      0

                      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