0
$\begingroup$

Rosanswers logo

Hi all,

I'm pretty desperate right now because I can't figure out where my mistake is. I hope someone can enlighten me.

When I try to localize my robot (while driving) the laserscan data moves with it (but it should stay on the obstacles in the static map I use). In detail: I set the robots pose with the "2D Pose Estimate". I drive towards a wall (using robot steering) and as the robot approaches the wall the laserscan data moves towards the robot. As a result of that the robot does not localize properly. Here are two screenshots of rviz for better visualization (before and after driving) Can anyone give me a hint into the right direction?

Any help would be appreciated!


Originally posted by peterwe on ROS Answers with karma: 36 on 2017-05-12

Post score: 0


Original comments

Comment by Procópio on 2017-05-17:
please, post your amcl config and your tf tree. is this a real robot or a simulation? how are you generating your odometry?

$\endgroup$

1 Answer 1

0
$\begingroup$

Rosanswers logo

I'm sorry for the late reply. Thank you for your help but I figured out the problem. It was in the base_controller responsible for handling the cmd_vel commands.


Originally posted by peterwe with karma: 36 on 2017-05-18

This answer was ACCEPTED on the original site

Post score: 0


Original comments

Comment by JKRoopan on 2023-01-11:
What was the reason for the error in laserscan data

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.