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. Subscribe to voxl_mpa_to_ros topics

Subscribe to voxl_mpa_to_ros topics

Scheduled Pinned Locked Moved Ask your questions right here!
ros
5 Posts 2 Posters 1.6k 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.
  • Isabella YuI Offline
    Isabella YuI Offline
    Isabella Yu
    Contributor
    wrote on last edited by Isabella Yu
    #1

    I'm writing a C++ ros node to do 3D object detection using AiDetectionMsg and the pointcloud generated from the stereo camera. How would I subscribe to the AiDetection topic in my code? I couldn't find the topic name via rostopic list. I tried doing

    #include <voxl_mpa_to_ros/AiDetection.h>
    

    but running catkin build gives a not found error.

    1 Reply Last reply
    0
    • ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #2

      @Isabella-Yu said in Subscribe to voxl_mpa_to_ros topics:

      #include <voxl_mpa_to_ros/AiDetection.h>

      The topic name for AiDetectionMsgs is tflite_data, and should be published by voxl_mpa_to_ros automatically if voxl-tflite-server is running and publishing to the pipe at /run/mpa/tflite_data.

      For a custom ROS node using the AiDetectionMsg, you will have to manually copy the AiDetection.msg file that lives here and use catkin to generate the associated header file. This tutorial http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c++) covers this fairly well, but the main two additions to your CMakeLists will be adding these lines:

      add_message_files(
          DIRECTORY 
          msg
          FILES
          AiDetection.msg
      )
      
      generate_messages()
      

      Then, when you need to include this message within your project, the syntax is simply:

      #include <project_name/AiDetection.h>
      // where project_name is as whatever you define in your CMakeLists, i.e. 
      // project(voxl_mpa_to_ros)
      Isabella YuI 1 Reply Last reply
      0
      • Isabella YuI Offline
        Isabella YuI Offline
        Isabella Yu
        Contributor
        wrote on last edited by
        #3

        Thanks! I'll try this out

        1 Reply Last reply
        0
        • ? A Former User

          @Isabella-Yu said in Subscribe to voxl_mpa_to_ros topics:

          #include <voxl_mpa_to_ros/AiDetection.h>

          The topic name for AiDetectionMsgs is tflite_data, and should be published by voxl_mpa_to_ros automatically if voxl-tflite-server is running and publishing to the pipe at /run/mpa/tflite_data.

          For a custom ROS node using the AiDetectionMsg, you will have to manually copy the AiDetection.msg file that lives here and use catkin to generate the associated header file. This tutorial http://wiki.ros.org/ROS/Tutorials/WritingPublisherSubscriber(c++) covers this fairly well, but the main two additions to your CMakeLists will be adding these lines:

          add_message_files(
              DIRECTORY 
              msg
              FILES
              AiDetection.msg
          )
          
          generate_messages()
          

          Then, when you need to include this message within your project, the syntax is simply:

          #include <project_name/AiDetection.h>
          // where project_name is as whatever you define in your CMakeLists, i.e. 
          // project(voxl_mpa_to_ros)
          Isabella YuI Offline
          Isabella YuI Offline
          Isabella Yu
          Contributor
          wrote on last edited by
          #4

          @Matt-Turi how would I manually start /run/mpa/tflite_data? I switched to a different m500 and started voxl-tflite-server, but there appears to be no /run/mpa/tflite_data pipe, only the /run/mpa/tflite pipe. The model I'm using is the default MobileNetV2 object detection model for VOXL, and I reset the drone to factory defaults using voxl-configure-tflite

          1 Reply Last reply
          0
          • ? Offline
            ? Offline
            A Former User
            wrote on last edited by
            #5

            @Isabella-Yu,

            If there is no tflite_data pipe, you may be using a version of voxl-tflite-server that does not have the ai_detection_t added yet. This feature was added in v0.2.0, so make sure you are using the latest available version!

            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