Robotics StackExchange | Archived questions

Robot position jumps during manual and autonomous mapping, which causing abnormal map. Need help

Required Info:

Steps to reproduce issue

```

robot bringup in robot machine

ros2 launch ros2diffdrive-robot_bringup bringup.launch.py

robot visualization in Host machine

ros2 launch ros2diffdriverobotvisualization robot_model.launch.py

slam toolbox for mapping

ros2 launch ros2diffdriverobotnavigation slam.launch.py ```

Expected behavior

While manually controlling the robot it should map the room as clean as possible and should not jump to a different position

Actual behavior

The map is very noisy as seen in the video. The maps rotate as well with the base_frame which I am not sure it supposed to do it or not. After moving the robot it seems it jumps to a different position which is making the map unusable

  1. video with SLAM toolbox - video link
    • Note: Imu topic freezes at some point which has been fixed later using a separate power source for IMU. But this is not causing the main issue.
  2. video without slam but only lidar laser scan - video link

Additional information

This is a custom differential robot that has teensy 3.2 as a microcontroller running microros client. The robot has also MPU9250 imu and 2 encoders in both motors. For lidar source, I am using YDLIDAR. As seen in the videos the map shifts while manually moving the robot, which is why I cannot get a clean map. The weird jumps or map shift does not appear in the simulation with the same robot description file. Any help is appreciated.

All the config files and launchers are below:

Asked by manzurmurshid on 2022-09-01 15:10:38 UTC

Comments

hi, did you resolved this? I'm having the same problem even without performing SLAM.

Asked by n000oob on 2022-12-27 01:52:30 UTC

So far no and I had to put a pause on that for while. I still do not know where I am making the mistake.

Asked by manzurmurshid on 2023-04-14 08:47:23 UTC

Answers