ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

TF laser_frame is jump up and down flickering, each time i try to turn the map make a mess

asked 2020-08-12 00:10:31 -0500

kyozho gravatar image

hi, i have problem with lidar and raspberry pi. i make my own robot to scanning area with lidar. every time i turn the map duplicating and make a mess, the laser not following the map it self.

the video robot turning https://youtu.be/QqtTJY6glIg the result https://ibb.co/RPzqhSP

spec;

  1. ydldar x4
  2. raspberry pi 3 b+
  3. motor driver h bridge
  4. 2 dc motor
  5. List item

right now to turn i'm using simple code to control it with w a s d

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2020-08-12 12:21:52 -0500

parzival gravatar image

updated 2020-08-12 12:23:29 -0500

You will probably find information/solution regarding your problem faster if you just search about it on google followed by ros. I'm sure this question has been asked before, do read them.

From your image, it seems you are using hector_mapping with default parameter values.

This is a common result for the setup you have mentioned. Hector_mapping generally fails in scanmatching when the robot rotates too fast.

From your spec list, it seems you are not using any other sensor to provide odom information. Get an IMU and I think the result will be much better. You can also fuse the information from wheel encoders to get a better map.

If you have reliable encoders and IMU, and have wrote programs which creates a good model, then try gmapping as well, although it is a bit heavy on computation compared to hector.

A quick fix is to rotate the robot slower than your current speed of rotation

edit flag offensive delete link more

Comments

hi, thank you very much so sorry i just started this project don't know where to start. but thanks will try the IMU later :D

kyozho gravatar image kyozho  ( 2020-08-12 23:48:51 -0500 )edit

No problem, we all make mistakes when we start. From my experience I would suggest you invest in encoders and IMU along with the ydlidar you are using. It will really help

parzival gravatar image parzival  ( 2020-08-12 23:51:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2020-08-12 00:10:31 -0500

Seen: 115 times

Last updated: Aug 12 '20