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

Configuring the layered costmap[SOLVED]

asked 2015-01-12 12:43:45 -0500

NiranjanDeshpande gravatar image

updated 2015-01-19 17:25:40 -0500

Hello,

I am a newbie to ROS. I wish to use the existing implementation of layered costmap for one of my projects. I follwed the tutorials mentioned here:

  1. Configuring Layered Costmaps http://wiki.ros.org/costmap_2d/Tutori...

  2. Creating a New Layer http://wiki.ros.org/costmap_2d/Tutori...

When I try to configure the layers, it happens that always all layers are existing. I am not able to figure out what is going wrong as I do not get any warning or error messages. I followed the same procedure like mentioned in the tutorial, that is, creating the minimal.yaml file and adding plugin specifications one after the other. And then loading the parameters through rosparam in a launch file.

Please advise what could be done in this situation. Thank you in advance.

edit retag flag offensive close merge delete

Comments

What do you mean all the layers are existing?

David Lu gravatar image David Lu  ( 2015-01-12 21:04:07 -0500 )edit

I see static_layer, obstacle_layer, footprint_layers. What I wish to do is add my own layers.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-13 07:04:21 -0500 )edit

I followed the tutorials on costmap layaer creation and if I add the plugins in my local_costmap_params.yaml file I can see the new layers added. But now i want to remove all the layers(static_layer, obstacle_layer, footprint_layers) and then add them one after the other.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-13 07:04:38 -0500 )edit

Also, I had one more query regarding the inflation radius. If the change the value of this parameter, I do not see a change in rviz.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-13 07:05:30 -0500 )edit

In the previous version of costmap if I made a change in inflation radius value the red area surrounding the object used to change. Now its not happening. In fact I see layers around each object with three colors and not sure what does these colors signify.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-13 07:05:49 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
2

answered 2015-01-14 10:00:17 -0500

David Lu gravatar image

If the plugins parameter is not defined in the costmap namespace, then the static/obstacle/footprint layers will be automatically created. You should change your launch files so that the plugins parameter is set using the layers you want.

edit flag offensive delete link more

Comments

Hello,

Thanks a lot for your reply. I figured out I was messing up with the launch and yaml files and so could not change the layers being used. However, its working now.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-14 19:33:31 -0500 )edit

I had one more query though. If I disable the static layer for global costmap, the planner never generates a plan. So what I understand is static_layer has to be published at least? I wish to write my own static_layer where I want to ignore a few objects mapped in the grid map.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-14 19:35:50 -0500 )edit

Is this possible to achieve? What things I need to take care of to make sure my static_layer is consistent with the existing static_layer and I can run the navigation? I will ofcourse dig into the code now to understand the same.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-14 19:37:15 -0500 )edit

If you don't have a static map, you need to manually set the size of the costmap. Also, if the problem is resolved, please mark the answer as correct.

David Lu gravatar image David Lu  ( 2015-01-14 21:05:29 -0500 )edit

Ohk. Thank you for your reply. And sorry for delay in replying to you.

NiranjanDeshpande gravatar image NiranjanDeshpande  ( 2015-01-19 07:15:08 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-01-12 12:43:45 -0500

Seen: 2,341 times

Last updated: Jan 19 '15