Closed ruk-shan closed 2 years ago
It looks like you're trying to compile with incompatible versions of the rmf_traffic
and rmf_ros2
repos. Please make sure you git pull
the latest main
branch of every repo in your workspace and then try again.
Thank u very much for the reply. I will try that. BTW I was following the instructions may have to update them.
Which instructions were you following specifically?
Also, were you following the instructions with a completely fresh workspace, or were you trying to build on top of a workspace that already had some repos in it?
from this page, https://github.com/open-rmf/rmf. I'm trying to build a fresh workspace.
I have tried to build to with main branches and still fails. Please help.
Do you have a version of rmf_traffic
installed to your system or installed in your ROS distro? For example if you're using Foxy, you might have the apt package ros-foxy-rmf-traffic
installed.
If so, we've seen some issues where colcon does not overlay the workspace version of the package correctly over the version that's installed, and so the build system ends up using the installed version of rmf_traffic
. If that's your situation, then you'll need to uninstall whatever version of rmf_traffic
you have previously installed.
I just ran through the build instructions on my own computer and had no build errors, so I do believe there's something wonky on your machine somewhere.
Thank u very much for the answer. I will try again report the progress.
I installed RMF from binary few weeks ago. I uninstalled rmf_traffic packages as u said and it works.!!!!! Thank u very much.
~~~ /home/shan/rmf_ws/src/rmf/rmf_ros2/rmf_traffic_ros2/include/rmf_traffic_ros2/schedule/ParticipantRegistry.hpp:122:3: error: ‘Registration’ does not name a type 122~~~ In file included from /home/shan/rmf_ws/src/rmf/rmf_ros2/rmf_traffic_ros2/src/rmf_traffic_ros2/schedule/Node.cpp:30: /home/shan/rmf_ws/src/rmf/rmf_ros2/rmf_traffic_ros2/include/rmf_traffic_ros2/schedule/ParticipantDescription.hpp:37:24: error: ‘ParticipantDescriptionsMap’ in namespace ‘rmf_traffic::schedule’ does not name a type; did you mean ‘ParticipantDescription’? 37~~~~~~~~~~~~~~~~~~~~~~~~~ /home/shan/rmf_ws/src/rmf/rmf_ros2/rmf_traffic_ros2/src/rmf_traffic_ros2/schedule/Node.cpp:430:47: error: ‘participants’ was not declared in this scope; did you mean ‘ParticipantId’? 430~~~~~~~^~~~~~~/home/shan/rmf_ws/src/rmf/rmf_ros2/rmf_traffic_ros2/src/rmf_traffic_ros2/schedule/Node.cpp: In member function ‘virtual void rmf_traffic_ros2::schedule::ScheduleNode::register_participant(const request_id_ptr&, const SharedPtr&, const SharedPtr&)’: /home/shan/rmf_ws/src/rmf/rmf_ros2/rmf_traffic_ros2/src/rmf_traffic_ros2/schedule/Node.cpp:680:9: error: ‘using element_type = class rmf_traffic_ros2::schedule::ParticipantRegistry’ {aka ‘class rmf_traffic_ros2::schedule::ParticipantRegistry’} has no member named ‘add_or_retrieve_participant’ 680 | ->add_or_retrieve_participant(