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

ModalAI Forum

  1. ModalAI Support Forum
  2. General Questions
  3. (VOXL2 PX4 ROS2) px4_msgs Unrecognized In Program

(VOXL2 PX4 ROS2) px4_msgs Unrecognized In Program

Scheduled Pinned Locked Moved Unsolved General Questions
5 Posts 2 Posters 830 Views
  • 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
    GlennTee
    Contributor
    wrote on last edited by GlennTee
    #1

    Hello. I'm attempting to use various PX4 messages in a program I am working on, but for some reason the px4_msgs package is not recognized at all. I'm not sure if it is a path issue or if I downloaded it wrong somehow, but I tried sourcing the files and that hasn't worked. Ignoring the type also hasn't worked for me. Is there any easy fix for this that I'm missing? I am urgently seeking a fix for this. Pictured below is the error that comes up:
    6f48655b-5981-4b3a-a80c-e609f3df10aa-image.png

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

      @GlennTee have you sourced the right directories? If you run source /opt/ros/foxy/mpa_to_ros/install/setup.bash that should tell your package manager that the px4 messages type exists. I also notice you are running this on your local machine - have you install the necessary packages there? If you instantiate the voxl-cross or qrb5165 emulator image and then use vscode inside the docker then you should be able to see the px4 messages just fine.

      LMK if that helps!
      Zach

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

        @GlennTee have you sourced the right directories? If you run source /opt/ros/foxy/mpa_to_ros/install/setup.bash that should tell your package manager that the px4 messages type exists. I also notice you are running this on your local machine - have you install the necessary packages there? If you instantiate the voxl-cross or qrb5165 emulator image and then use vscode inside the docker then you should be able to see the px4 messages just fine.

        LMK if that helps!
        Zach

        G Offline
        G Offline
        GlennTee
        Contributor
        wrote on last edited by
        #3

        @Zachary-Lowell-0 I tried "source /opt/ros/foxy/setup.bash" and "source install/local_setup.bash," but this was for trying to run my program. I just tried running "source /opt/ros/foxy/mpa_to_ros/install/setup.bash" and this is what I got:
        30cc7677-8b26-435a-89c7-577184be2322-image.png
        I'm using remote ssh in order to access the files on the drone.

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

          Did you ever install voxl-ros2-foxy?

          1 Reply Last reply
          0
          • G GlennTee

            @Zachary-Lowell-0 I tried "source /opt/ros/foxy/setup.bash" and "source install/local_setup.bash," but this was for trying to run my program. I just tried running "source /opt/ros/foxy/mpa_to_ros/install/setup.bash" and this is what I got:
            30cc7677-8b26-435a-89c7-577184be2322-image.png
            I'm using remote ssh in order to access the files on the drone.

            G Offline
            G Offline
            GlennTee
            Contributor
            wrote on last edited by GlennTee
            #5

            @Zachary-Lowell-0 Yes I installed voxl-ros2-foxy. This time I just tried "source /opt/ros/foxy/mpa_to_ros2/install/setup.bash" and that was accepted. However, looking now px4_msgs is still not recognized within my program.
            73d768a7-bab0-42d9-b73e-b4e84749294a-image.png

            1 Reply Last reply
            0

            Reading along? Create a free ModalAI Forum account to join in.

            With an account you can reply, ask your own question, get an email when a ModalAI engineer answers, and mark the reply that solved it. Your place in each thread is saved between visits.

            Questions about VOXL, Flight Core, ESCs and ModalAI drones are answered here by the engineers who build them.

            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