Coder Social home page Coder Social logo

No RVIZ Visualization? about kimera-multi HOT 3 CLOSED

JD-Florez avatar JD-Florez commented on June 28, 2024
No RVIZ Visualization?

from kimera-multi.

Comments (3)

FrankYard avatar FrankYard commented on June 28, 2024

The trajectory of a single robot can be displayed. I set the fixed frame in RVIZ as the map of a certain robot, and then set the topic of the path to the optimized_trajectory of the same robot, so that I can see the trajectory of that robot. To switch the trajectory, the fixed frame should be switched. I am not sure if the author has provided a function to display the trajectories of all robots in one coordinate system.

from kimera-multi.

yunzc avatar yunzc commented on June 28, 2024

You can also define a world frame as the "shared" coordinate system and add a static transform publisher for each robot
rosrun tf2_ros static_transform_publisher 0 0 0 0 0 1 world $ROBOT_NAME/map

from kimera-multi.

sandilyasg avatar sandilyasg commented on June 28, 2024

To help future users with this issue, I wrote a roslaunch file doing what @yunzc mentioned: defining a world frame as the shared coordinate system and add a static transform publisher for each robot, so that the tf trees stay connected and we can visualize easily in RViz. Here is the launch file which has jackal1, jackal2, sparkal1, sparkal2, thoth, and hathor:

<launch>

  <!-- sparkal 1 -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="static_transform_publisher_sparkal1" args="0 0 0 0 0 1 world sparkal1/map" />

  <!-- sparkal 2 -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="static_transform_publisher_sparkal2" args="0 0 0 0 0 1 world sparkal2/map" />

  <!-- jackal 1 -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="static_transform_publisher_jackal1" args="0 0 0 0 0 1 world acl_jackal/map" />

  <!-- jackal 2 -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="static_transform_publisher_jackal2" args="0 0 0 0 0 1 world acl_jackal2/map" />

  <!-- thoth -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="static_transform_publisher_thoth" args="0 0 0 0 0 1 world thoth/map" />

  <!-- hathor -->
  <node pkg="tf2_ros" type="static_transform_publisher" name="static_transform_publisher_hathor" args="0 0 0 0 0 1 world hathor/map" />

</launch>

After roslaunching this file, going to RViz and selecting the Paths as optimized_trajectory for each of the robots (e.g. /acl_jackal/kimera_vio_ros/optimized_trajectory) will look like the screenshot below. Note that the single-robot VIO trajectory estimates from different robots will not be aligned in the same reference frame (in general), as noted by @yuluntian in #7.

Screenshot from 2023-11-04 21-35-22

from kimera-multi.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.