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

Mapping by gmapping isn't correct

asked 2021-10-02 05:38:46 -0600

Kevin1719 gravatar image

updated 2021-10-02 06:05:48 -0600

Hi, I'm doing the mapping process by gmapping. At the beginning, my robot can recognize a wall very well, but when i spin the robot and face into empty space, it suddenly appears a line on the map in Rviz, although there is nothing there. What's the problem? Is there any parameter in gmapping launch file I should adjust?

edit retag flag offensive close merge delete

Comments

Please edit your description to provide more information. Which gmapping package are you using (give us a link)? What sensor input is your robot using to generate a current pose?

You can edit your question using the "edit" button at the end of your description.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-10-03 09:35:47 -0600 )edit

Oh, I have solved the problem, but thanks for your reply, I will close the answer.

Kevin1719 gravatar image Kevin1719  ( 2021-10-03 09:59:14 -0600 )edit
1

@Kevin1719: we're really happy you solved your problem, but we're less happy you didn't take 5 minutes to post an answer so future readers of your question who might be struggling with the same problem could benefit from what you found out.

If everyone on ROS Answers would only post "oh I figured it out" but then not explain what they figured out, there would be no point in having this forum here (as there would be no usable information on it).

Please take the time to do that and post what you did as an answer. Then accept your own answer.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-05 00:58:29 -0600 )edit

Yes, thank you for reminding me :)

Kevin1719 gravatar image Kevin1719  ( 2021-10-05 05:31:21 -0600 )edit
1

Please don't close questions if/once they've been answered.

Accepting the answer suffices.

gvdhoorn gravatar image gvdhoorn  ( 2021-10-05 07:47:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-05 05:35:51 -0600

Kevin1719 gravatar image

Problem solved: the problem was caused because I set the joint xyz attribute too low and it seem to be inside the robot, so the laser beams couldn't get through the robot chassis and were looking strange. Setting it higher, above the base link solved the problem.

edit flag offensive delete link more

Question Tools

2 followers

Stats

Asked: 2021-10-02 05:38:46 -0600

Seen: 162 times

Last updated: Oct 05 '21