Closed nikboy111 closed 2 years ago
@nikboy111 Please open a question on https://answers.ros.org, which is our central question and answer site. You should be able to get help there.
I had the exact same problem I found the answer here that worked.
"This will happen mostly because you do not have permissions to edit the workspace directory. Try giving read/write permission of the workspace to all users using
cd <your workspace>
sudo chmod 777 -R .
Then build using colcon build in the current directory."
I had the same issue with ROS2 humble on Windows 10. The directory of my humble installation was the set to read-only. After changing it, the error was gone.
Oh, I encountered a similar issue and spent a good two days troubleshooting, only to realize that the install directory can be modified only by the root user. It was quite a revelation, and I ended up double-checking the permissions just to confirm.
admajors00 is right about permission..
Thanks ALL!!
Required Info:
Expected behavior
Successful build of turtlebot3 packages.
Actual behavior
After building the package I'm having the following error:
After this section i couldn't build the package:
Searching lots of different troubleshoot like this always got me the advice of having to source the /opt/ros/foxy/setup.bash or */setup.sh, but this doesn't help me fix the problem. If I source the setup.sh I'm getting this error:
I don't know what else to do. Thank you so much in advance! Regards Nik
Update: I placed the turtlebot workspace inside the source folder of the ROS2 workspace. When building the whole ROS2 workspace it seems to work fine and I get no errors, but as soon as I run colcon build in the turtlebot workspace i get the same error like before.