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

Get robot pose in costmap layer updateBounds.

asked 2015-07-10 15:08:32 -0600

mattc_vec gravatar image

I'm trying to get the pose of my robot in a custom costmap_2d layer, modeled after the tutorial layer here: The robot_x, robot_y, and robot_yaw parameters in the updateBounds function don't seem to change from zero throughout the planning process. Is there any other way to get the pose of the robot in that function? Or some way to see why the pose is zero? I can't seem to find where that function is called. The changes I make to the costmap are applied, though. Thanks!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-07-10 15:27:59 -0600

David Lu gravatar image

The function is called here:

The numbers passed in should reflect the pose of the robot_base_frame relative to the global frame. I would check the frame of your map.

edit flag offensive delete link more

Question Tools



Asked: 2015-07-10 15:08:32 -0600

Seen: 646 times

Last updated: Jul 10 '15