Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

what should I do???

not try to make your Catkin workspace in a non-world-writable location. /opt/ros/lunar/catkin_ws is a location only writable by root (or users with similar permissions).

Try to create your workspace in your $HOME directory.

what should I do???

not try to make your Catkin workspace in a non-world-writable location. /opt/ros/lunar/catkin_ws is a location only writable by root (or users with similar permissions).

Try to create your workspace in your $HOME directory.


Edit: please add how you created your workspace (ie: the /home/ros_working/catkin_ws directory).

Also include the output of ls -al /home/ros_working/catkin_ws in your update.

And when I use sudo , sudo: catkin_init_workspace: command not found

never use sudo with ROS. It is hardly ever really necessary, and there are almost always other ways to achieve what you want to do.

It's certainly not needed to be able to create, init and build a workspace.