Issues with source command for setting up ros2 workspace

155 Views Asked by At

I'm going through the ROS2 tutorial here, as far as I know Ive been following it line by line but I'm running into issues trying to run a setup script for the workspace.

When I try to run the bash script the source command seems to look within a directory I dont specify when theres a setup.bash script in the specified directory. I tried getting more info with help but theres nothing I can see that would explain why its looking for a file deeper in than I specified.

nathan@nathan-desktop:~/ros2_ws$ ls
build  install  log  src
nathan@nathan-desktop:~/ros2_ws$ source /opt/ros/iron/setup.bash 
nathan@nathan-desktop:~/ros2_ws$ source install/setup.bash
not found: "/home/nathan/ros2_ws/install/examples_rclcpp_minimal_action_client/share/examples_rclcpp_minimal_action_client/local_setup.bash"
nathan@nathan-desktop:~/ros2_ws$
0

There are 0 best solutions below