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. Modifying mpa-to-ros

Modifying mpa-to-ros

Scheduled Pinned Locked Moved Ask your questions right here!
3 Posts 2 Posters 499 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.
  • J Offline
    J Offline
    jon
    Regular
    wrote on last edited by
    #1

    Working with the m500 (voxl flight), we are having issues streaming video to our ground station in order to process via yolov5. Obviously it's a bandwidth problem, as to my understanding mpa_to_ros just slams whatever the cameras are outputting over the network with no regards to whether the ground station is able to receive it.
    A simple solution would be to edit the voxl-camera-server config file and grayscale the image, change framerate to ~1-2fps, etc., but that still is capable of jamming the network if the drone gets too far away or something
    Would it be possible to build this 'listening' functionality directly into my mpa_to_ros node, and if so where would I change this? I've looked through the source code on github but still can't form a general understanding of how it all works.

    1 Reply Last reply
    0
    • Chad SweetC Offline
      Chad SweetC Offline
      Chad Sweet
      ModalAI Team
      wrote on last edited by
      #2

      Here is the code where the frame is published via ROS https://gitlab.com/voxl-public/voxl-sdk/utilities/voxl-mpa-to-ros/-/blob/master/catkin_ws/src/src/interfaces/camera_interface.cpp#L91

      I'm not aware of a way to flow control ROS packets. You may need to come up with your own method to do so, or ask the ROS folks if there is a way to flow control.

      Another thought would be to JPG compress the frames before sending over ROS. You could still jam up the netowrk, but at least it would happen less frequently

      1 Reply Last reply
      0
      • Chad SweetC Offline
        Chad SweetC Offline
        Chad Sweet
        ModalAI Team
        wrote on last edited by
        #3

        Looks like ROS supports the CompressedImage format

        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