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

Have costmap in separate node?

asked 2015-09-06 23:16:53 -0600

NiranjanDeshpande gravatar image

Hello all,

I wanted to know if its possible to have the costmap running in separate node than from the global and local planners like in move_base. However, in this case is there any way to access the pointer of the global costmap(created in costmap node) by the planner which would be running in different node?

Thank you in advance.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-09-07 01:54:27 -0600

ahendrix gravatar image

You cannot share pointers between nodes. This means that you cannot directly access a costmap that is running in a different node.

Depending on exactly what you're trying to do, some of the following might apply:

  • Within move_base, the costmap updates, the local planner and the global planner all run in different threads
  • You can pass Costmap2D messages between nodes, but the underlying layering is lost, and transferring big maps can be slow
  • You can create a Costmap2D object within your node
  • There is a node that allows you to run the costmap by itself, without the planners
edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2015-09-06 23:16:53 -0600

Seen: 537 times

Last updated: Sep 07 '15