Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2d Map Editor in database viewer save issue #1173

Closed
robotx10 opened this issue Jun 7, 2024 · 1 comment
Closed

2d Map Editor in database viewer save issue #1173

robotx10 opened this issue Jun 7, 2024 · 1 comment

Comments

@robotx10
Copy link

robotx10 commented Jun 7, 2024

I am facing issue with the latest RTABMAP on ROS2 Humble, the issue is 2d Map Editor in database viewer is having save issue. After saving and running localization with 'Mem/IncrementalMemory':'False', 'Mem/InitWMWithAllNodes':'True' is vanishing drawn occupancy grids cells on graph

Below are the database files and corresponding screen shots.

mapping

DB file:
https://drive.google.com/file/d/1EunzWWneflGMYX5TK6O0w41LdpUZXoB_/view?usp=sharing

editing

DB file:
https://drive.google.com/file/d/1T4YJH5CloISOKemO6zf41jgYZnnsUXhT/view?usp=sharing

  • When Ran with localization

after_localization

https://drive.google.com/file/d/1BiL7HWuvU8B3YAe-1FBvmX5b1dc8LqHS/view?usp=sharing

launch parameters:

parameters={
      'frame_id':'base_footprint',
      'subscribe_stereo':True,
      'subscribe_odom_info':True,
      'wait_imu_to_init':True,
      'qos_image':qos,
      'qos_imu':qos,
      'Reg/Force3DoF':'true',
      'Grid/RayTracing':'true',
      }



    Node(
        package='rtabmap_odom', executable='stereo_odometry', output='screen',
        parameters=[parameters],
        remappings=remappings),

    # SLAM mode:
    Node(
        condition=UnlessCondition(localization),
        package='rtabmap_slam', executable='rtabmap', output='screen',
        parameters=[parameters],
        remappings=remappings,
        arguments=['-d']), # This will delete the previous database (~/.ros/rtabmap.db)

    # Localization mode:
    Node(
        condition=IfCondition(localization),
        package='rtabmap_slam', executable='rtabmap', output='screen',
        parameters=[parameters,
          {'Mem/IncrementalMemory':'False',
           'Mem/InitWMWithAllNodes':'True'}],
        remappings=remappings),

I uploaded db files for all the cases. It used to work good with previous versions. But now suddenly it stopped working. 'Mem/IncrementalMemory':'False', 'Mem/InitWMWithAllNodes':'True'

@matlabbe
Copy link
Member

matlabbe commented Jun 10, 2024

Thx for reporting, there was indeed a bug. This issue was introduced in that PR: introlab/rtabmap#1180

I fixed it in this commit. You should update/rebuild rtabmap library.

Here the result in rviz:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants