Problem with building workspace in ros2
I was trying to set up a simple client in ROS1 (melodic) and a simple server in ROS2 (eloquent). Following the tutorial https://github.com/osrf/free_fleet/bl.... However I got stuck at the point where I am building my workspace in ROS2 (at colcon build)
cd ~/server_ws
source /opt/ros/eloquent/setup.bash
# build cyclonedds first with the necessary cmake flags
colcon build --packages-select cyclonedds --cmake-args -DBUILD_IDLC=NO
# build the rest of the packages
colcon build
These were the following error messages.
Starting >>> rmf_traffic
--- stderr: rmf_traffic
CMake Error at /usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:415 (message):
A required package was not found
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/FindPkgConfig.cmake:593 (_pkg_check_modules_internal)
CMakeLists.txt:26 (pkg_check_modules)
---
Failed <<< rmf_traffic [ Exited with code 1 ]
Aborted <<< rmf_fleet_msgs
Aborted <<< rmf_door_msgs
Aborted <<< building_map_msgs
Aborted <<< rmf_lift_msgs
Aborted <<< rmf_workcell_msgs
Aborted <<< rmf_dispenser_msgs
Aborted <<< rmf_traffic_msgs
Please advise.
Can you clarify what you mean by "stuck"? It looks like the package succeeded to build (I believe the error message can be ignored). Do you have any errors running the code ?
@marguedas Perhaps my problem is another issue. The following line which I have to run is
colcon build
The error messages are as follows:Do you have any idea? Thank you for your time
Yes this looks like an actual error. Can you please edit your original question and title to reflect that this is the problem you are looking for a solution for ?