laser sensor data rotates when the robot rotates

asked 2020-03-04 14:44:04 -0500

ahmed_ali95 gravatar image

hello guys ,I'm new to ros ,i'm trying to simulate 2 wheeled robot on ros and gazebo the body consist of 2 wheels and a caster wheel and a laser sensor and also added a diff_drive_controller pkg to control the motion of the wheels. when i tried to simulate it on gazebo by putting some objects in the environment and then visualize the laser data on rviz using the odom frams as the fixed frame in rviz ,something weird had happened (see the video below) ,when the robot go forward and backward in straight lines everything seems to work fine ,but when the robot rotates the visual representation of the laser data start also to rotate although , it represents a fixed object in the environment so can anyone suggest where the problem is ? here is the tf tree link texthere is a video describing the issue

edit retag flag offensive close merge delete


I'm having the same issue, have you found out what could be the problem?

Husam gravatar image Husam  ( 2022-04-17 22:11:12 -0500 )edit