Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'global_costmap_ros_' was not declared in this scope #2

Closed
drscopus opened this issue Aug 26, 2017 · 1 comment
Closed

'global_costmap_ros_' was not declared in this scope #2

drscopus opened this issue Aug 26, 2017 · 1 comment

Comments

@drscopus
Copy link

Hi, when I compile asr_ftc_local_planner by running catkin_make, it output

error: 'global_costmap_ros_' was not declared in this scope
             joinCostmap_->initialize(costmap_ros_, global_costmap_ros_);

Where the variable 'global_costmap_ros_' is declared?
Thanks

@FelixMarek
Copy link
Collaborator

FelixMarek commented Aug 26, 2017

Hi,
you must define this parameter in the nav_core package.
Look at the wiki http://wiki.ros.org/asr_ftc_local_planner at point "3.1. Needed packages" at under point "nav_core".

You must add one protected attribute:
costmap_2d::Costmap2DROS* global_costmap_ros;
in nav_core/include/base_local_planner.h

Or you can use our nav_core packages at https://github.com/asr-ros/asr_nav_core/tree/master/include/nav_core.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants