locusrobotics / robot_navigation

Spiritual successor to ros-planning/navigation.
450 stars 148 forks source link

Change nav_core2 Interfaces #13

Closed DLu closed 6 years ago

DLu commented 6 years ago

This PR changes the nav_core2 interfaces and makes the changes to other packages needed to comply with the interface changes.

nav_core2 changes

The primary change is creating nav_core2::Costmap and using it in place of costmap_2d::Costmap2DROS in the interfaces.

The interfaces are also changed to include ros::NodeHandles in the initialization in order to control which callback queues planners/costmaps run in.

The LocalPlanner interface no longer relies on using the last pose of the global plan as the goal. Instead there is a new explicit setGoalPose method.

This PR also introduces a Bounds library for tracking rectangular bounds and a BasicCostmap class for implementing, well, a basic Costmap.

other changes