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

ModalAI Forum

  1. ModalAI Support Forum
  2. Software Development
  3. ROS
  4. Getting Range finder information in ROS and more.

Getting Range finder information in ROS and more.

Scheduled Pinned Locked Moved ROS
6 Posts 2 Posters 1.3k 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.
  • J Offline
    J Offline
    Judoor 0
    Regular
    wrote on last edited by
    #1

    Hi,
    I'd like to get the range finder data in ROS, right now it doesn't appear in mpa_to_ros, what should I change for it to appear?
    I cannot get it from MAVROS either, the distance_sensor doesn't appear in my topics. But it appears on GQC and i've got the right value.
    Is it cause I set it up wrong in voxl-px4.conf (right now the value is NONE).
    Also, how can i get an idea of when the VIO / OV start to fail so I can activate a failsafe in my ROS Node?

    Setup : Starling 2 max, dual cam, with TOF

    Have a good day
    Julien

    J 1 Reply Last reply
    0
    • J Judoor 0

      Hi,
      I'd like to get the range finder data in ROS, right now it doesn't appear in mpa_to_ros, what should I change for it to appear?
      I cannot get it from MAVROS either, the distance_sensor doesn't appear in my topics. But it appears on GQC and i've got the right value.
      Is it cause I set it up wrong in voxl-px4.conf (right now the value is NONE).
      Also, how can i get an idea of when the VIO / OV start to fail so I can activate a failsafe in my ROS Node?

      Setup : Starling 2 max, dual cam, with TOF

      Have a good day
      Julien

      J Offline
      J Offline
      Judoor 0
      Regular
      wrote on last edited by
      #2

      @Judoor-0 For the rangefinder part i've looked into the mpa_to_ros code and modified it to add rangefinder_data_t and republished it in a ros_topic.

      But for the covariance/error of the vio I still have no clue how to get it

      Julien

      J T 2 Replies Last reply
      0
      • J Judoor 0

        @Judoor-0 For the rangefinder part i've looked into the mpa_to_ros code and modified it to add rangefinder_data_t and republished it in a ros_topic.

        But for the covariance/error of the vio I still have no clue how to get it

        Julien

        J Offline
        J Offline
        Judoor 0
        Regular
        wrote on last edited by
        #3

        @Alex-Kushleyev I don't know who can help me on this one, I tried to modify the mpa_to_ros package and I think I did it successfully (adding range-sensor and some vins status). How can I share it, so someone from your team can verify it and then if it's good enough put it on the gitlab ?
        Julien

        1 Reply Last reply
        0
        • J Judoor 0

          @Judoor-0 For the rangefinder part i've looked into the mpa_to_ros code and modified it to add rangefinder_data_t and republished it in a ros_topic.

          But for the covariance/error of the vio I still have no clue how to get it

          Julien

          T Offline
          T Offline
          teddy.zaremba
          Contributor
          wrote on last edited by
          #4

          Hi @Judoor-0,

          Interesting I'm assuming you're looking at the rangefinders pipe. I can take a look at your code, or you can make a MR back into mpa-to-ros2.

          Also, something to consider is using microdds and subscribing to the "fmu/in/obstacle_distance" topic.

          J 1 Reply Last reply
          0
          • T teddy.zaremba

            Hi @Judoor-0,

            Interesting I'm assuming you're looking at the rangefinders pipe. I can take a look at your code, or you can make a MR back into mpa-to-ros2.

            Also, something to consider is using microdds and subscribing to the "fmu/in/obstacle_distance" topic.

            J Offline
            J Offline
            Judoor 0
            Regular
            wrote on last edited by
            #5

            @teddy-zaremba Hi teddy,
            I'm on ROS 1 so it's just MPA_TO_ROS and not MPA_TO_ROS2.
            Yes I looked at the rangefinder pipes and did get the rangefinder data and republished_it in ROS and same with the ov_status.
            I don't have access to microdds in ROS1 unless I do a ROS2 to ROS1 bridge.
            Julien

            T 1 Reply Last reply
            0
            • J Judoor 0

              @teddy-zaremba Hi teddy,
              I'm on ROS 1 so it's just MPA_TO_ROS and not MPA_TO_ROS2.
              Yes I looked at the rangefinder pipes and did get the rangefinder data and republished_it in ROS and same with the ov_status.
              I don't have access to microdds in ROS1 unless I do a ROS2 to ROS1 bridge.
              Julien

              T Offline
              T Offline
              teddy.zaremba
              Contributor
              wrote on last edited by
              #6

              Hi @Judoor-0,

              Cool! Feel free to make a MR or post the link to your code if you want someone to review it.

              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