[Bug] source install/setup.bash doesn't work

This is an error report.


Screenshot of the error


Error details

"source install/setup.bash" command doesn't work. it keeps displaying this error. i have logged in and out and still get this error. "not found:/home/user/ros2_ws/install/movement_pkg/..."

I think you are building only the custon_interfaces package. Run “colcon build” command and then try again

Hi @abdulbasityekeen61 ,

This is a common error in ROS2. The fix is very simple, to compile the workspace from scratch.

Use the following commands:

cd ~/ros2_ws
rm -rf ./build ./install ./log
colcon build
source install/setup.bash

After executing the above 4 commands, you should be able to launch your desired ROS2 program without any issue.

Let me know if this did not solve your issue.

Regards,
Girish

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.