Ask Your Question
2

how to update the costmap manually in Rviz?

asked 2014-07-10 21:41:05 -0500

JJ gravatar image

updated 2014-07-10 21:43:41 -0500

Hello,

I'm wondering if there's a way to manually change the costmap in Rviz.

My goal is: if we have an initial location and a target location, the robot moves as if there's an virtual corridor around the shortest distance path, and everything else, even free space, is considered as obstacles. And this way, if there's a real obstacle on the shortest distance path, the local planner would just stop, instead of going around it.

My thought is to maybe just manually update the costmap, pixel by pixel, so that we can have a costmap representing the virtual corridor as described above, instead of the real costmap. So how is the costmap saved and loaded? Is there a way for us to update it manually? Other suggestions on how to approach this is also welcomed =)

Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2014-07-10 23:38:43 -0500

Hi JJ,

Check out the carrot planner. I think it does what you are looking for.

Good luck and welcome to the forum.

edit flag offensive delete link more

Comments

Thanks! This is probably the thing I'm looking for. One more question, though: I read those ten lines of code on that webpage, but right now I'm a bit confused about where this code would go and how to use it... Any suggestions how I should proceed? Thanks a lot!

JJ gravatar image JJ  ( 2014-07-14 08:42:23 -0500 )edit

You are welcome, in order to use the carrot planner you don't even need to code anything. When you launch the navigation framework, just set the parameter base_global_planner: carrot_planner/CarrotPlanner. Check out the move_base docs here: http://wiki.ros.org/move_base?distro=hydro

Martin Peris gravatar image Martin Peris  ( 2014-07-14 19:12:38 -0500 )edit

Martin, How does carrot_planner help to this issue? The aim is to keep the robot within a certain distance of the global path (or inside a virtual corridor). carrot_planner's description says something different.

ROSCMBOT gravatar image ROSCMBOT  ( 2014-07-18 00:05:22 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-07-10 21:41:05 -0500

Seen: 579 times

Last updated: Jul 10 '14