Robotics StackExchange | Archived questions

Sourcing Overlay when creating a workspace

I'm doing the tutorials and trying to source the overlay but I keep getting an error whenever I input this:

. install/local_setup.bash

and I keep getting this:

not found: "/home//ros2ws/install/examplesrclcppminimalactionclient/share/examplesrclcppminimalactionclient/localsetup.bash"

I'm referring to step 6 of this link by the way: https://docs.ros.org/en/rolling/Tutorials/Beginner-Client-Libraries/Creating-A-Workspace/Creating-A-Workspace.html

I would really appreciate any help!

Asked by Idutta on 2023-01-12 18:21:19 UTC

Comments

Try cd into your root of your workspace and:

colcon build

source install/setup.bash

open a new terminal apart from the terminal you built your workspace and source the overlay.

Asked by Davies Ogunsina on 2023-01-12 21:16:21 UTC

I think I messed something else up since now when I am sourcing this happens:

source /opt/ros/foxy/setup.bash bash: /opt/ros/foxy/setup.bash: No such file or directory

I went into bashrc and I got rid of that former line I just put that was at the very bottom but it was still not fixed.

Asked by Idutta on 2023-01-12 22:44:53 UTC

Answers

Was it the rolling repo you cloned into your workspace?

Asked by Davies Ogunsina on 2023-01-12 22:48:48 UTC

Comments

Ok I figured it out and I'm just dumb, I was looking at different versions of the ros documentation apparently. Thanks for the help.

Asked by Idutta on 2023-01-12 23:18:51 UTC

Comments