PlanSys2 / ros2_planning_system_examples

56 stars 30 forks source link

Compiling error on ROS2 Foxy #10

Closed sachinkum0009 closed 3 years ago

sachinkum0009 commented 3 years ago

Hi, I tried to compile this pkg for ros2 Foxy But getting this error

colcon build --symlink-install
Starting >>> plansys2_bt_example
Starting >>> plansys2_cascade_example
Starting >>> plansys2_multidomain_example
Starting >>> plansys2_patrol_navigation_example
--- stderr: plansys2_cascade_example                                                                                   
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:23,
                 from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:24,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:54:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   54 |   virtual std::optional<plansys2::Predicate> getPredicate(const std::string & predicate) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:54:11: note: ‘std::optional’ is only available from C++17 onwards
   54 |   virtual std::optional<plansys2::Predicate> getPredicate(const std::string & predicate) = 0;
      |           ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:68:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   68 |   virtual std::optional<plansys2::Action> getAction(const std::string & action) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:68:11: note: ‘std::optional’ is only available from C++17 onwards
   68 |   virtual std::optional<plansys2::Action> getAction(const std::string & action) = 0;
      |           ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:82:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   82 |   virtual std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action) =
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:82:11: note: ‘std::optional’ is only available from C++17 onwards
   82 |   virtual std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action) =
      |           ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:23,
                 from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:24,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/move_action_node.cpp:23:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:54:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   54 |   virtual std::optional<plansys2::Predicate> getPredicate(const std::string & predicate) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:54:11: note: ‘std::optional’ is only available from C++17 onwards
   54 |   virtual std::optional<plansys2::Predicate> getPredicate(const std::string & predicate) = 0;
      |           ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:68:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   68 |   virtual std::optional<plansys2::Action> getAction(const std::string & action) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:68:11: note: ‘std::optional’ is only available from C++17 onwards
   68 |   virtual std::optional<plansys2::Action> getAction(const std::string & action) = 0;
      |           ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:82:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   82 |   virtual std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action) =
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:82:11: note: ‘std::optional’ is only available from C++17 onwards
   82 |   virtual std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action) =
      |           ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:23,
                 from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:24,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/ask_charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:54:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   54 |   virtual std::optional<plansys2::Predicate> getPredicate(const std::string & predicate) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:54:11: note: ‘std::optional’ is only available from C++17 onwards
   54 |   virtual std::optional<plansys2::Predicate> getPredicate(const std::string & predicate) = 0;
      |           ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:68:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   68 |   virtual std::optional<plansys2::Action> getAction(const std::string & action) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:68:11: note: ‘std::optional’ is only available from C++17 onwards
   68 |   virtual std::optional<plansys2::Action> getAction(const std::string & action) = 0;
      |           ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:82:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   82 |   virtual std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action) =
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertInterface.hpp:82:11: note: ‘std::optional’ is only available from C++17 onwards
   82 |   virtual std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action) =
      |           ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:24,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:71:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   71 |   std::optional<plansys2::Predicate> getPredicate(const std::string & predicate);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:71:3: note: ‘std::optional’ is only available from C++17 onwards
   71 |   std::optional<plansys2::Predicate> getPredicate(const std::string & predicate);
      |   ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:85:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   85 |   std::optional<plansys2::Action> getAction(const std::string & action);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:85:3: note: ‘std::optional’ is only available from C++17 onwards
   85 |   std::optional<plansys2::Action> getAction(const std::string & action);
      |   ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:99:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   99 |   std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:99:3: note: ‘std::optional’ is only available from C++17 onwards
   99 |   std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action);
      |   ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:24,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/ask_charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:71:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   71 |   std::optional<plansys2::Predicate> getPredicate(const std::string & predicate);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:71:3: note: ‘std::optional’ is only available from C++17 onwards
   71 |   std::optional<plansys2::Predicate> getPredicate(const std::string & predicate);
      |   ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:85:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   85 |   std::optional<plansys2::Action> getAction(const std::string & action);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:85:3: note: ‘std::optional’ is only available from C++17 onwards
   85 |   std::optional<plansys2::Action> getAction(const std::string & action);
      |   ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:99:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   99 |   std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:99:3: note: ‘std::optional’ is only available from C++17 onwards
   99 |   std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action);
      |   ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:22,
                 from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:25,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertInterface.hpp:35:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   35 |   virtual std::optional<Instance> getInstance(const std::string & name) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertInterface.hpp:35:11: note: ‘std::optional’ is only available from C++17 onwards
   35 |   virtual std::optional<Instance> getInstance(const std::string & name) = 0;
      |           ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:24,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/move_action_node.cpp:23:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:71:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   71 |   std::optional<plansys2::Predicate> getPredicate(const std::string & predicate);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:71:3: note: ‘std::optional’ is only available from C++17 onwards
   71 |   std::optional<plansys2::Predicate> getPredicate(const std::string & predicate);
      |   ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:85:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   85 |   std::optional<plansys2::Action> getAction(const std::string & action);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:85:3: note: ‘std::optional’ is only available from C++17 onwards
   85 |   std::optional<plansys2::Action> getAction(const std::string & action);
      |   ^~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:99:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   99 |   std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_domain_expert/include/plansys2_domain_expert/DomainExpertClient.hpp:99:3: note: ‘std::optional’ is only available from C++17 onwards
   99 |   std::optional<plansys2::DurativeAction> getDurativeAction(const std::string & action);
      |   ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:22,
                 from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:25,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/ask_charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertInterface.hpp:35:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   35 |   virtual std::optional<Instance> getInstance(const std::string & name) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertInterface.hpp:35:11: note: ‘std::optional’ is only available from C++17 onwards
   35 |   virtual std::optional<Instance> getInstance(const std::string & name) = 0;
      |           ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:22,
                 from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:25,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/move_action_node.cpp:23:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertInterface.hpp:35:16: error: ‘optional’ in namespace ‘std’ does not name a template type
   35 |   virtual std::optional<Instance> getInstance(const std::string & name) = 0;
      |                ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertInterface.hpp:35:11: note: ‘std::optional’ is only available from C++17 onwards
   35 |   virtual std::optional<Instance> getInstance(const std::string & name) = 0;
      |           ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:25,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:52:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   52 |   std::optional<Instance> getInstance(const std::string & name);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:52:3: note: ‘std::optional’ is only available from C++17 onwards
   52 |   std::optional<Instance> getInstance(const std::string & name);
      |   ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:25,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/ask_charge_action_node.cpp:20:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:52:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   52 |   std::optional<Instance> getInstance(const std::string & name);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:52:3: note: ‘std::optional’ is only available from C++17 onwards
   52 |   std::optional<Instance> getInstance(const std::string & name);
      |   ^~~
In file included from /home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_executor/include/plansys2_executor/ActionExecutorClient.hpp:25,
                 from /home/hunter/zzzzz/ros2/plansys2_ws/src/ros2_planning_system_examples/plansys2_cascade_example/src/move_action_node.cpp:23:
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:52:8: error: ‘optional’ in namespace ‘std’ does not name a template type
   52 |   std::optional<Instance> getInstance(const std::string & name);
      |        ^~~~~~~~
/home/hunter/zzzzz/ros2/tycrawler_ws/install/plansys2_problem_expert/include/plansys2_problem_expert/ProblemExpertClient.hpp:52:3: note: ‘std::optional’ is only available from C++17 onwards
   52 |   std::optional<Instance> getInstance(const std::string & name);
      |   ^~~
make[2]: *** [CMakeFiles/ask_charge_action_node.dir/build.make:63: CMakeFiles/ask_charge_action_node.dir/src/ask_charge_action_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:138: CMakeFiles/ask_charge_action_node.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make[2]: *** [CMakeFiles/charge_action_node.dir/build.make:63: CMakeFiles/charge_action_node.dir/src/charge_action_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:111: CMakeFiles/charge_action_node.dir/all] Error 2
make[2]: *** [CMakeFiles/move_action_node.dir/build.make:63: CMakeFiles/move_action_node.dir/src/move_action_node.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:165: CMakeFiles/move_action_node.dir/all] Error 2
make: *** [Makefile:141: all] Error 2
---
Failed   <<< plansys2_cascade_example [22.5s, exited with code 2]
Aborted  <<< plansys2_multidomain_example [23.3s]                                                                                     
Aborted  <<< plansys2_bt_example [24.2s]                                                                                                
Aborted  <<< plansys2_patrol_navigation_example [26.2s]                                 

Summary: 0 packages finished [26.3s]
  1 package failed: plansys2_cascade_example
  3 packages aborted: plansys2_bt_example plansys2_multidomain_example plansys2_patrol_navigation_example
  3 packages had stderr output: plansys2_cascade_example plansys2_multidomain_example plansys2_patrol_navigation_example
  1 package not processed

Any idea, how to remove the error in compiling. I am using foxy-devel branch.

fmrico commented 3 years ago

Hi @sachinkum0009

I have just merged #9 . Update and try again, please

Use master

Best

sachinkum0009 commented 3 years ago

Pull request #9 worked fine Thank you so much :+1:

QQting commented 3 years ago

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

fmrico commented 3 years ago

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