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

What is the "center of the robot" in costmap_2d's footprint?

asked 2015-09-14 15:26:18 -0500

kwiesz91 gravatar image

In the robot setup navigation tutorial, it says:

"In the case of specifying the footprint, the center of the robot is assumed to be at (0.0, 0.0)..."

From this, it sounds like they want it to be the actual center of the robot, but then how does it relate this to the center of rotation, which is used everywhere else? Because in my case, I have static transforms that relate the sensor positions to the center of rotation, not the actual center of the robot.

edit retag flag offensive close merge delete

Comments

what is "everywhere else" where they refer to the center of rotation?

mgruhler gravatar image mgruhler  ( 2015-09-15 10:02:27 -0500 )edit

I should have just said: "...but then how does this relate to the base_link"

kwiesz91 gravatar image kwiesz91  ( 2015-09-15 10:38:53 -0500 )edit

alright ;-)

mgruhler gravatar image mgruhler  ( 2015-09-15 10:42:00 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2015-09-15 10:01:59 -0500

mgruhler gravatar image

As they say

In the case of specifying the footprint, the center of the robot is assumed to be at (0.0, 0.0)...

This means, when you specify the footprint, you have to specify the endpoints relative to where YOU put the center (and this means, the base_link) of the robot. It does not need to be the actual center. This depends on your robot, application and base kinematics.

E.g., there are some common locations you put the base_link of the robot, that depend on the kinematics. For omnidirectional robots, most people have it as the physical center of the robot. For differential drive robots, it usually is the middle of the axis of the two driven wheels, independently of the physical dimensions of the robot.

edit flag offensive delete link more

Comments

Thank you so much. This is the exact answer i was looking for. Maybe I'm crazy in thinking that the text could be a little clearer? Or maybe it can just blatantly say "the center is where you have your base_link" for people like me.

kwiesz91 gravatar image kwiesz91  ( 2015-09-15 10:36:01 -0500 )edit
1

Well, having this as base_link is also just a convention. Actually, for the costmaps, you have the parameter robot_base_frame which could be set to something else.

mgruhler gravatar image mgruhler  ( 2015-09-15 10:49:18 -0500 )edit

I figured, but good point.

kwiesz91 gravatar image kwiesz91  ( 2015-09-15 12:32:11 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2015-09-14 15:26:18 -0500

Seen: 979 times

Last updated: Sep 15 '15