Ask Your Question
0

Best practices: checking a path with Costmap2DROS

asked Feb 20

bkx gravatar image bkx
90 1 8

updated Feb 20

tfoote gravatar image tfoote flag of United States
11130 27 85 172
http://www.ros.org/

Hi,

I have a populated Costmap2DROS object and a vector of poses which make up the robot's path. I need to verify that on every pose, the robot is not in collision.

It should be sufficient to check whether the pose lies within the robot's inscribed radius, although if the computational load is light enough I could check the robot's footprint.

What are the best practices for doing this with a Costmap2DROS? I have found that I can make a copy of the underlying costmap, but this seems inefficient.

Thanks!

delete close flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
1

answered Feb 21

eitan gravatar image eitan
1633 5 11 27

You should be able to use the CostmapModel class in the base_local_planner package to allow you to check if a given pose is in collision. You can find documentation on the class here.

link delete flag offensive edit

Your answer

Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!
[hide preview]

Question tools

Follow

subscribe to rss feed

Stats

Asked: Feb 20

Seen: 78 times

Last updated: Feb 21