Skip to content

Problems Visualizing Octomap in RViz2 #3531

Closed as not planned
Closed as not planned

Description

@andre-silva9975

Description

I have problems working witch octomap in both RMW: FastRTPS and CycloneDDS. First of all, I am working with a TIAGo robot. The problems that I have when working with FastRTPS are the fact that I can't change the octomap frame but I can see the octomap in RViz2. Regarding the CycloneDDS, I simply ca not observe the octomap at all in RViz2.

ROS Distro

Humble

OS and version

Ubuntu 22.04

Source or binary build?

Source

If binary, which release version?

No response

If source, which branch?

humble

Which RMW are you using?

CycloneDDS

Steps to Reproduce

To reproduce the issues, just download and install the packages of TIAGo Simulation in ros2. Then make the following changes in the package tiago_moveit_config:

  • In the file config/sensors_3d.yaml add the line octomap_frame: map under the line octomap_resolution: 0.025 and change the the point_cloud_topic to /head_front_camera/depth/points.
  • I have also tried to change the launch file (launch/move_group.launch.py) by adding this "octomap_frame": "map" to the move_group node parameters.

After performing these changes build the package. After that is done run the following command: ros2 launch tiago_gazebo tiago_gazebo.launch.py navigation:=True moveit:=True is_public_sim:=True. Finally in RViz2, send a Nav2 Goal next to a wall and the send another goal to somewhere else. Don't forget to include the PlanningScene display in RViz in order to try to see the octomap.

Expected behavior

What should happen, for both DDS, is the visualization of an octomap that is fixed to the map frame, i.e, when the robot moves, the octomap does not move, it stays static. Currently the octomap is relative to the base_footprint like show in the following ROS message:

[move_group-15] [INFO] [1753105020.918131429] [moveit.ros.perception.pointcloud_octomap_updater]: Listening to '/throttle_filtering_points/filtered_points' using message filter with target frame 'base_footprint '

Actual behavior

For FastRTPS, I can see the octomap in RViz2 but the octomap moves when the robot also moves. Regarding CycloneDDS, I can't observe no octomap in RViz2.

Backtrace or Console output

No response

Activity

  1. added
    bug
    on Jul 21, 2025
  2. andre-silva9975 commented on Jul 22, 2025

    @andre-silva9975
    Author

    So I was able to solve part of the problem. Now I can see the octomap using the Cyclone DDS. I found the solution in this link.

  3. github-actions commented on Sep 8, 2025

    @github-actions

    This issue is being labeled as stale because it has been open 45 days with no activity. It will be automatically closed after another 45 days without follow-ups.

  4. github-actions commented on Oct 23, 2025

    @github-actions

    This issue was closed because it has been stalled for 45 days with no activity.

  5. andre-silva9975 commented on Oct 24, 2025

    @andre-silva9975
    Author

    I guess the main problem was a QoS setting. Everything seems to work now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions