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

How to clear the costmap from other nodes (navigation2)

asked 2022-02-02 08:31:42 -0600

hamada gravatar image

How do I clear the costmap of navigation2 from other nodes? Environment ROS2 Eloquent. When I was in ROS1, I could clear the costmap by calling the service. Is it possible to do the same in ROS2?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2022-02-02 12:19:57 -0600

updated 2022-02-02 12:21:13 -0600

Indeed, we have services that implement the following messages: https://github.com/ros-planning/navig...

Included there are full and partial costmap clearing operations. You can see an example of these in use in the BT navigator's clearing costmap BT node plugins. That's where we handle that logic in Nav2 rather than move_base. You can see a pythonic example in the nav2_simple_navigatorI added last year which implements the core action APIs for using Nav2 in python without worrying about the ROS details (for the basic use-case): https://github.com/ros-planning/navig...

Eloquent is very old and unsupported now however, though the BT node was one of the first we added so it should be available in Eloquent (but you wouldn't have other extremely significant new features and bug fixes in Eloquent). Please upgrade to at least Galactic, by my personal recommendation. These features are worth it.

edit flag offensive delete link more

Comments

Thanks! I will refer to it. We are going to update to Foxy in our product in the future. Is Galactic better than Foxy? The EOL seems to be longer with Foxy. Do you have any articles that can help me?

hamada gravatar image hamada  ( 2022-02-02 22:31:19 -0600 )edit

Yes, Galactic fixes a TON of problems across the ecosystem, not just in Nav2. Plus, Nav2 has essentially dropped maintenance of Foxy due to the number and scale of changes between it and the bleeding edge development. There are still tons of things that cannot and aren't going to be backported to Foxy due to the speed of new development.

stevemacenski gravatar image stevemacenski  ( 2022-02-02 22:35:49 -0600 )edit

Question Tools

Stats

Asked: 2022-02-02 08:31:42 -0600

Seen: 726 times

Last updated: Feb 02 '22