open-rmf / free_fleet

A free fleet management system.
Apache License 2.0
157 stars 65 forks source link

Package 'ff_examples_ros2' not found #58

Closed otomoov closed 3 years ago

otomoov commented 3 years ago

Distributor ID: Ubuntu Description: Ubuntu 20.04.1 LTS Release: 20.04 Codename: focal

ROS1 noetic ROS2 foxy branch: fix/focal-docs

oto@moov:~/server_ws$ source ~/server_ws/install/setup.bash
ROS_DISTRO was set to 'foxy' before. Please make sure that the environment does not mix paths from different distributions.
ROS_DISTRO was set to 'noetic' before. Please make sure that the environment does not mix paths from different distributions.
oto@moov:~/server_ws$ ros2 launch ff_examples_ros2 fake_server.launch.xml
Package 'ff_examples_ros2' not found: "package 'ff_examples_ros2' not found, searching: ['/home/oto/server_ws/install/rmf_traffic_msgs', '/home/oto/server_ws/install/rmf_lift_msgs', '/home/oto/server_ws/install/rmf_fleet_msgs', '/home/oto/server_ws/install/rmf_door_msgs', '/home/oto/server_ws/install/rmf_dispenser_msgs', '/home/oto/server_ws/install/rmf_cmake_uncrustify', '/home/oto/server_ws/install/ament_cmake_catch2', '/home/oto/rmf_demos_ws/install/demos', '/home/oto/rmf_demos_ws/install/visualizer', '/home/oto/rmf_demos_ws/install/traffic_editor_assets', '/home/oto/rmf_demos_ws/install/traffic_editor', '/home/oto/rmf_demos_ws/install/test_maps', '/home/oto/rmf_demos_ws/install/rviz2_plugin', '/home/oto/rmf_demos_ws/install/rmf_workcell_msgs', '/home/oto/rmf_demos_ws/install/rmf_schedule_visualizer', '/home/oto/rmf_demos_ws/install/rmf_fleet_adapter', '/home/oto/rmf_demos_ws/install/rmf_traffic_ros2', '/home/oto/rmf_demos_ws/install/rmf_rviz_plugin', '/home/oto/rmf_demos_ws/install/fleet_state_visualizer', '/home/oto/rmf_demos_ws/install/rmf_traffic_msgs', '/home/oto/rmf_demos_ws/install/rmf_demo_tasks', '/home/oto/rmf_demos_ws/install/rmf_task_msgs', '/home/oto/rmf_demos_ws/install/building_systems_visualizer', '/home/oto/rmf_demos_ws/install/rmf_schedule_visualizer_msgs', '/home/oto/rmf_demos_ws/install/rmf_demo_assets', '/home/oto/rmf_demos_ws/install/building_ignition_plugins', '/home/oto/rmf_demos_ws/install/building_gazebo_plugins', '/home/oto/rmf_demos_ws/install/building_sim_common', '/home/oto/rmf_demos_ws/install/rmf_lift_msgs', '/home/oto/rmf_demos_ws/install/rmf_gazebo_plugins', '/home/oto/rmf_demos_ws/install/rmf_ingestor_msgs', '/home/oto/rmf_demos_ws/install/rmf_fleet_msgs', '/home/oto/rmf_demos_ws/install/rmf_door_msgs', '/home/oto/rmf_demos_ws/install/rmf_dispenser_msgs', '/home/oto/rmf_demos_ws/install/rmf_demos_dashboard_resources', '/home/oto/rmf_demos_ws/install/rmf_demo_maps', '/home/oto/rmf_demos_ws/install/rmf_cmake_uncrustify', '/home/oto/rmf_demos_ws/install/building_map_tools', '/home/oto/rmf_demos_ws/install/building_map_msgs', '/home/oto/rmf_demos_ws/install/ament_cmake_catch2', '/opt/ros/foxy']"
oto@moov:~
aaronchongth commented 3 years ago

Thank you for bringing it up, I have not been able to recreate it, unfortunately.

I see that you have both ROS versions sourced for your working terminal, could you try on a fresh terminal, make sure you don't have both workspaces sourced at the same time,

source ~/server_ws/install/setup.bash
ros2 launch ff_examples_ros2 fake_server.launch.xml

In the odd event that it was not built, you can try rebuilding the whole workspace from scratch,

cd ~/server_ws
rm -rf build install log
source /opt/ros/foxy/setup.bash
colcon build --cmake-args -DCMAKE_BUILD_TYPE=RELEASE --packages-up-to free_fleet free_fleet_server_ros2 ff_examples_ros2

Just as a sanity check, make sure you don't have both ROS versions sourced in your .bashrc file as well.

Let me know how it goes, cheers.

otomoov commented 3 years ago

@aaronchongth thank you, server_ws built with no issue.