You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Octomap in MoveIt 2 moves with the Robot despite being set to "map" frame. #3539
I'm experiencing an issue where the octomap generated by MoveIt 2 appears to move along with the robot, even though the MoveIt OccupancyMapUpdater seems to be set up correctly with the map frame as its reference. This leads to a situation where the octomap appears to "stick" to the robot as it moves, rather than remaining static in the global map frame. To isolate the issue, I tested the same scenarion with octomap_server2. In this case, the octomap remains perfectly static in the map frame, even as the robot moves. This suggests the problem is may be specific to how MoveIt 2 processes the octomap internally.
Screencast.from.25-07-2025.11.56.55.webm
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
Launch a TIAGo robot simulation in ROS 2 Humble.
Configure MoveIt 2 to use the PointCloudOctomapUpdater.
Ensure that monitor_->getMapFrame() is set to map and RViz2 fixed frame is set to map.
Move the robot (either manually or via navigation stack).
Observe the octomap in RViz2.
Expected behavior
The octomap should remain fixed in the map frame, accumulating data over time as the robot moves, rather than updating relative to the robot's pose.
Actual behavior
The octomap shifts with the robot, as though it were being published or updated in the robot's local frame (e.g., base_footprint), not in a fixed global frame.
I was able to solve the problem by adding this line in the SRDF of the robot: <virtual_joint child_link="base_footprint" name="virtual_joint" parent_frame="map" type="floating"/>. It seems if the planning frame coming from the root of the robot model is different from the one we set in the octomap_frame, then the octomap generated won't be static. I believe this problem is related to this issue #3531.
Activity
Reverts moveit#2985, Ports moveit moveit#3388 moveit#3470 moveit#3539 …
Reverts moveit#2985, Ports moveit moveit#3388 moveit#3470 moveit#3539 (…
andre-silva9975 commentedon Jul 29, 2025
I was able to solve the problem by adding this line in the SRDF of the robot:
<virtual_joint child_link="base_footprint" name="virtual_joint" parent_frame="map" type="floating"/>. It seems if the planning frame coming from the root of the robot model is different from the one we set in theoctomap_frame, then the octomap generated won't be static. I believe this problem is related to this issue #3531.adricort commentedon Aug 6, 2025
This was insanely useful @andre-silva9975 , thank you so much, I also had the same problem and solved it by creating the virtual joint:
<virtual_joint
name="virtual_joint"
type="floating"
parent_frame="world"
child_link="base_link"
/>
Reverts moveit#2985, Ports moveit moveit#3388 moveit#3470 moveit#3539 (…
Reverts moveit#2985, Ports moveit moveit#3388 moveit#3470 moveit#3539 (…
Reverts moveit#2985, Ports moveit moveit#3388 moveit#3470 moveit#3539 (…