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

laserscan Moving!!!

asked 2023-04-26 08:43:50 -0500

Mehrdad gravatar image

hello Why does the laserscan move when I move the robot? image description

how can i solve this problem?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2023-04-26 22:43:35 -0500

hunterlineage1 gravatar image

The reason why the laser scan appears to move when you move the robot in ROS is because the laser scanner is mounted on the robot and moves with it. As the robot moves, the laser scanner generates a new scan data based on its new position and orientation.

In ROS, the laser scanner publishes the scan data as a sensor_msgs/LaserScan message. This message contains information about the position and orientation of the scanner, as well as the range and intensity measurements of the laser beams.

When the robot moves, the position and orientation of the laser scanner changes, which in turn affects the scan data that it generates. The laser scanner is typically mounted on a motorized joint, which allows it to scan in a wide range of directions as the robot moves.

To visualize the laser scan data in ROS, you can use the rviz visualization tool. In rviz, you can add a LaserScan display and subscribe to the scan topic to see the scan data in real time. As the robot moves, you will see the laser scan data update to reflect its new position and orientation.

edit flag offensive delete link more

Comments

When the laser data moves with the robot, I can't make a map with SLAM.

Mehrdad gravatar image Mehrdad  ( 2023-04-27 00:12:03 -0500 )edit

Which slam package are you using? As in something like slam_toolbox or gmapping slam

hunterlineage1 gravatar image hunterlineage1  ( 2023-04-27 01:18:58 -0500 )edit

slam toolbox - online_async

Mehrdad gravatar image Mehrdad  ( 2023-04-27 02:16:38 -0500 )edit
0

answered 2023-04-26 13:27:42 -0500

angkts gravatar image

Could you check static_map and rolling_window parameters ?

edit flag offensive delete link more

Comments

how can i do this?

Mehrdad gravatar image Mehrdad  ( 2023-04-27 00:10:43 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2023-04-26 08:43:50 -0500

Seen: 267 times

Last updated: Apr 26 '23