• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
ModalAI Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
    • Register
    • Login

    Rename ROS Topics pulished by the RB5

    ROS
    3
    4
    276
    Loading More Posts
    • 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.
    • P
      Prabhav Gupta
      last edited by 11 Jul 2024, 20:00

      Hello,

      My setup includes a RB5 drone, connected to a local wifi network, running the voxl_mpa_to_ros node. This enables my laptop connected on the same network to find and subscribe to the same topics remotely.

      I would like to implement my own SLAM (such as RTAB-MAP or ORB-SLAM3) based on the image and imu data received from the drone. This requires me to change the name on the ROS topics published by the drone to ones expected by the SLAM node.

      For example, in case of ORB-SLAM (https://github.com/thien94/orb_slam3_ros?tab=readme-ov-file#4-ros-topics-params-and-services) -

      Expected topics:
      /camera/image_raw for Mono(-Inertial) node
      /camera/left/image_raw for Stereo(-Inertial) node
      /camera/right/image_raw for Stereo(-Inertial) node
      /imu for Mono/Stereo/RGBD-Inertial node
      /camera/rgb/image_raw and /camera/depth_registered/image_raw for RGBD node

      Actual topic names:

      /hires_large_color
      /hires_large_encoded
      /hires_large_grey
      /hires_small_color
      /hires_small_encoded
      /hires_small_grey
      /hires_snapshot
      /imu_px4
      /qvio/odometry
      /qvio/pose
      /qvio_overlay
      /rosout
      /rosout_agg
      /stereo_front/left
      /stereo_front/right
      /stereo_rear/left
      /stereo_rear/right
      /tracking
      

      Any help would be greatly appreciated.

      M 1 Reply Last reply 12 Jul 2024, 00:59 Reply Quote 0
      • M
        Moderator ModalAI Team @Prabhav Gupta
        last edited by 12 Jul 2024, 00:59

        @Prabhav-Gupta The code for voxl-mpa-to-ros is here. You can for it and make the changes you need

        P 1 Reply Last reply 15 Jul 2024, 18:53 Reply Quote 1
        • P
          Prabhav Gupta @Moderator
          last edited by 15 Jul 2024, 18:53

          @Moderator Thanks a lot, I will look into this!

          S 1 Reply Last reply 24 Sept 2024, 08:38 Reply Quote 0
          • S
            smilon @Prabhav Gupta
            last edited by 24 Sept 2024, 08:38

            @Prabhav-Gupta You can just remap the topics coming out of the voxl_mpa_node, or remap the topics inside your ORBSLAM launch file. No need to mess with the source code.

            1 Reply Last reply Reply Quote -1
            • First post
              Last post
            Powered by NodeBB | Contributors