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

navfn compile error

asked 2018-08-23 10:38:20 -0500

zeynep gravatar image

updated 2018-08-23 13:42:38 -0500

allenh1 gravatar image

Hello , for writing my own global planner, i cloned source of navigation stack

git clone https://github.com/ros-planning/navig...

i copied navfn package to my own workspace and built with catkin_make but this weird error comes;

/home/largo/ws/src/navfn/src/navfn_node.cpp: In member function ‘void navfn::NavfnWithCostmap::poseCallback(const ConstPtr&)’:
/home/largo/ws/src/navfn/src/navfn_node.cpp:85:34: error: no matching function for call to ‘costmap_2d::Costmap2DROS::getRobotPose(geometry_msgs::PoseStamped&)’
   cmap_->getRobotPose(global_pose);

I had built this package before with the same steps!!!

Any help will be appreciated.

Best regards

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2018-08-23 15:51:54 -0500

fergs gravatar image

Did you only copy the one package to your workspace? You probably want to build the whole navigation stack from a consistent version. Also -- pay attention to which branch you are using -- we've made a lot of API changes in the melodic-devel branch (the default branch when cloning). If you are on Kinetic, you want to "git checkout kinetic-devel" within the git repo to get the right version.

edit flag offensive delete link more

Comments

thank you very much, you are right, it is because of the wrong branch, i use kinetic but cloned melodic-devel branch

zeynep gravatar image zeynep  ( 2018-08-23 15:58:47 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2018-08-23 10:38:20 -0500

Seen: 1,175 times

Last updated: Aug 23 '18