Closed sachinkum0009 closed 3 years ago
Hi @sachinkum0009
I have just merged #9 . Update and try again, please
Use master
Best
Pull request #9 worked fine Thank you so much :+1:
Hi @fmrico ,
I tried to use foxy-devel
and got the same error. So I change to master
branch but there are another errors:
--- stderr: plansys2_patrol_navigation_example
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp: In member function ‘void PatrollingController::step()’:
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:67:31: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
67 | if (executor_client_->start_plan_execution()) {
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:81:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘execute_and_check_plan’
81 | if (executor_client_->execute_and_check_plan() && executor_client_->getResult()) {
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:91:37: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
91 | if (executor_client_->start_plan_execution()) {
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:101:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
101 | executor_client_->start_plan_execution(); // replan and execute
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:116:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘execute_and_check_plan’
116 | if (executor_client_->execute_and_check_plan() && executor_client_->getResult()) {
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:126:37: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
126 | if (executor_client_->start_plan_execution()) {
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:136:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
136 | executor_client_->start_plan_execution(); // replan and execute
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:151:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘execute_and_check_plan’
151 | if (executor_client_->execute_and_check_plan() && executor_client_->getResult()) {
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:161:37: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
161 | if (executor_client_->start_plan_execution()) {
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:171:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
171 | executor_client_->start_plan_execution(); // replan and execute
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:186:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘execute_and_check_plan’
186 | if (executor_client_->execute_and_check_plan() && executor_client_->getResult()) {
| ^~~~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:196:37: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
196 | if (executor_client_->start_plan_execution()) {
| ^~~~~~~~~~~~~~~~~~~~
/home/ros/plansys2_foxy_ws/src/plansys2_example/plansys2_patrol_navigation_example/src/patrolling_controller_node.cpp:207:33: error: ‘using element_type = class plansys2::ExecutorClient’ {aka ‘class plansys2::ExecutorClient’} has no member named ‘start_plan_execution’
207 | executor_client_->start_plan_execution(); // replan and execute
| ^~~~~~~~~~~~~~~~~~~~
make[2]: *** [CMakeFiles/patrolling_controller_node.dir/build.make:63: CMakeFiles/patrolling_controller_node.dir/src/patrolling_controller_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:136: CMakeFiles/patrolling_controller_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed <<< plansys2_patrol_navigation_example [20.3s, exited with code 2]
But this commit works for me on ROS 2 Foxy: https://github.com/IntelligentRoboticsLabs/ros2_planning_system_examples/commit/4e5e83b350c292f1908f5e04e25deff07fa38770
Dear @QQting
Use master
for all your builds. Foxy-devel
is only used to create the packages and it is usually outdated. Indeed, I will synchronize today to create packages.
Best
Hi, I tried to compile this pkg for ros2 Foxy But getting this error
Any idea, how to remove the error in compiling. I am using foxy-devel branch.