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

Costmap2DROS::getRobotFootprint() vs Costmap2DROS::getOrientedFootprint()

asked 2021-06-15 11:03:41 -0500

updated 2021-06-15 11:08:32 -0500

I was going through Costmap2DROS documentation. What is the difference between getOrientedFootprint() and getRobotFootprint() methods?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-06-20 11:35:56 -0500

Mike Scheutzow gravatar image

As far as I remember, getRobotFootprint() returns the originally-defined footprint i.e. with a z-axis rotation of 0 in the base_link frame. But getOrientedFootprint() transforms the original footprint using the base_link's current rotation within the map frame. The oriented footprint is useful if you want to determine exactly which costmap cells the robot is on top of, or to calculate the minimum distance from the footprint boundary to some obstacle.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2021-06-15 11:03:41 -0500

Seen: 87 times

Last updated: Jun 15 '21