Closed Jason-Zhou1 closed 3 years ago
Is this error showing up when compiling your own code (for example, a new fleet adapter), or the code in this repository? All commits to this repo are automatically compiled in a GitHub action. For example, here is the latest commit to this repo, which shows successful compilation: https://github.com/osrf/rmf_core/pull/186/checks
In addition to Morgan's comments, it's impossible for us to diagnose where an error might be without more of the compiler output. For example:
Hi mxgrey,
We are operating in Eloquent Ubuntu18.04. The overall error messages are:
--- stderr: rmf_traffic
/home/jaosn/rmf_demos_ws/src/rmf/rmf_core/rmf_traffic/src/rmf_traffic/schedule/Negotiation.cpp: In static member function ‘static rmf_utils::optional~~
make[2]: [CMakeFiles/rmf_traffic.dir/src/rmf_traffic/schedule/Negotiation.cpp.o] Error 1
make[1]: [CMakeFiles/rmf_traffic.dir/all] Error 2
make: *** [all] Error 2
On Ubuntu 18.04, you need to override the default compiler to a newer version (gcc 8
), as per the installation instructions:
https://github.com/osrf/rmf_core#installation
Are you doing that? (Note that if you have previously partially built the system with the "stock" gcc 7 compiler, you'll want to erase the build and install directories and start over, to make sure it's all "clean" when the build is being configured.
Failed <<< rmf_traffic_ros2 [0.30s, exited with code 1]
Summary: 12 packages finished [2.92s] 1 package failed: rmf_traffic_ros2 1 package had stderr output: rmf_traffic_ros2 1 package not processed
Thanks!
The latest master
branch depends on the foxy
distribution of ROS2.
If you're on 18.04, then you'll need to build ROS2 foxy from source and then build your RMF workspace on top of that overlay.
Or upgrading your system to 20.04 may be an easier path.
Hi friends, I met some error when I colcon build:
error: could not convert ‘negotiation’ from ‘rmf_traffic::schedule::Negotiation’ to ‘rmf_utils::optional {aka std::optional}’
return negotiation;
May I know how to solve it?