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

ROS Navigation costmap problem

asked 2021-09-07 05:46:54 -0500

MKMTI gravatar image

updated 2021-09-07 14:52:35 -0500

Mike Scheutzow gravatar image

Hello, I am a beginner in ROS and I am having some issues in doing navigation with my robot.

While is navigating, when I turn the robot the map also makes a turn. When I define a goal, the robot define a path, but when the robot make a rotational movement, the map also rotate, consequently the path changes and send the robot to a different position or stops. But this just happens when the map is dynamic. I have already seen lots of tutorials like Navigation Stack.

I think that is a problem in the tf, but I am not sure.

Can someone give a help? The tfs are: image description

edit retag flag offensive close merge delete

Comments

Hi, could we keep in touch about this project? I´m currently trying to run a robot based on all these stuff. Thank you.

Ronro gravatar image Ronro  ( 2021-09-07 15:56:42 -0500 )edit

A ros system can have a global map, a global costmap, and a local costmap. Which one of these are you calling "the map"? The plugin name in rviz will indicate which of the 3 it is.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-07 16:52:39 -0500 )edit

I think I am using the global map.

MKMTI gravatar image MKMTI  ( 2021-09-07 16:58:48 -0500 )edit

The global map should not move. In rviz, in the Displays panel on the left side, toggle the check marks until the map disappears/re-appears. Then expand the entry using the little triangle, and tell me the full path in the Topic field.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-07 17:16:53 -0500 )edit

The link has a video showing what is happening. link: https://we.tl/t-zfkMIwVjXz

MKMTI gravatar image MKMTI  ( 2021-09-08 09:17:33 -0500 )edit

Hello, @MKMTI, could you send your workspace to me? Or maybe post ur config files in a comment, please?

Ronro gravatar image Ronro  ( 2021-09-08 13:27:16 -0500 )edit
MKMTI gravatar image MKMTI  ( 2021-09-09 03:43:29 -0500 )edit

@MKMTI Is there the navigation package? Can't see It.

Ronro gravatar image Ronro  ( 2021-09-09 06:49:43 -0500 )edit

1 Answer

Sort by » oldest newest most voted
2

answered 2021-09-07 14:50:38 -0500

Mike Scheutzow gravatar image

In rviz, have you selected map as your Fixed Frame?

edit flag offensive delete link more

Comments

Yes , I selected. But it still does the same thing....

MKMTI gravatar image MKMTI  ( 2021-09-07 16:29:51 -0500 )edit

Your video does not show the map moving, so changing the fixed frame fixed that issue.

Now I see that your robot did not navigate properly, so yes, there is still some other problem in your system. You are getting error messages about coordinates being off the map. You should investigate what is causing that.

Mike Scheutzow gravatar image Mike Scheutzow  ( 2021-09-08 10:25:10 -0500 )edit

Shouldn´t the map frame be in static?

MKMTI gravatar image MKMTI  ( 2021-09-08 10:38:39 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2021-09-07 05:46:54 -0500

Seen: 189 times

Last updated: Sep 07 '21