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

Plansys2 error during build #8

Open
MnM03 opened this issue Jan 16, 2025 · 1 comment
Open

Plansys2 error during build #8

MnM03 opened this issue Jan 16, 2025 · 1 comment

Comments

@MnM03
Copy link
Collaborator

MnM03 commented Jan 16, 2025

I encountered the following error while trying to build the packages:


--- stderr: plansys2_lifecycle_manager                                                                                                                                
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/src/lifecycle_manager_node.cpp: In function ‘int main(int, char**)’:
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/src/lifecycle_manager_node.cpp:40:25: error: ‘rclcpp::experimental::executors’ has not been declared
   40 |   rclcpp::experimental::executors::EventsExecutor exe;
      |                         ^~~~~~~~~
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/src/lifecycle_manager_node.cpp:43:5: error: ‘exe’ was not declared in this scope; did you mean ‘exp’?
   43 |     exe.add_node(manager_node.second);
      |     ^~~
      |     exp
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/src/lifecycle_manager_node.cpp:49:3: error: ‘exe’ was not declared in this scope; did you mean ‘exp’?
   49 |   exe.spin_until_future_complete(startup_future);
      |   ^~~
      |   exp
gmake[2]: *** [CMakeFiles/lifecycle_manager_node.dir/build.make:76: CMakeFiles/lifecycle_manager_node.dir/src/lifecycle_manager_node.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:200: CMakeFiles/lifecycle_manager_node.dir/all] Error 2
gmake[1]: *** Waiting for unfinished jobs....
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/test/lf_manager_test.cpp: In member function ‘virtual void lifecycle_manager_lf_client_Test::TestBody()’:
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/test/lf_manager_test.cpp:36:36: error: ‘rclcpp::experimental::executors’ has not been declared
   36 |   auto exe = rclcpp::experimental::executors::EventsExecutor::make_shared();
      |                                    ^~~~~~~~~
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/test/lf_manager_test.cpp: In member function ‘virtual void lifecycle_manager_lf_startup_Test::TestBody()’:
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/test/lf_manager_test.cpp:100:25: error: ‘rclcpp::experimental::executors’ has not been declared
  100 |   rclcpp::experimental::executors::EventsExecutor exe;
      |                         ^~~~~~~~~
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/test/lf_manager_test.cpp:103:5: error: ‘exe’ was not declared in this scope; did you mean ‘exp’?
  103 |     exe.add_node(manager_node.second);
      |     ^~~
      |     exp
/home/mohamed/suave_rosa_ws/src/plansys2/plansys2_lifecycle_manager/test/lf_manager_test.cpp:106:3: error: ‘exe’ was not declared in this scope; did you mean ‘exp’?
  106 |   exe.add_node(de_node->get_node_base_interface());
      |   ^~~
      |   exp
gmake[2]: *** [test/CMakeFiles/lf_manager_test.dir/build.make:76: test/CMakeFiles/lf_manager_test.dir/lf_manager_test.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:228: test/CMakeFiles/lf_manager_test.dir/all] Error 2
gmake: *** [Makefile:146: all] Error 2
---
Failed   <<< plansys2_lifecycle_manager [5.13s, exited with code 2]

I solved this by changing the version in plansys2 to humble in rosinstall file, I am not sure if this is the correct way:

Image

@Rezenders
Copy link
Contributor

I couldn't reproduce this error. I will try again later.
If I remember correctly, we would need to modify the suave_rosa_plansys launchfile to make it work with humble, as humble doesn't have a parameter to set the problem file.
Like this:

'problem_file':
suave_rosa_plansys_path + '/pddl/suave_problem.pddl',

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