Robotics StackExchange | Archived questions

catkin init doesnt create a ws in my current folder

when i now use catkin init it doesnt create a workspace in the folder i directed to. it just creates it in the HOME folder thus giving an error. i used this :

source /opt/ros/kinetic/setup.bash
mkdir -p ROS/new_ros_ws/src
cd $HOME/ROS/new_ros_ws
catkin init

however it doesnt make a workspace inside the "newrosws"

greetings Girpon

Asked by girpon on 2018-10-08 10:16:15 UTC

Comments

Answers

Can you check whether you have a directory called .catkin_tools in your home directory?


Edit:

no i dont, but im sure i did install catkin tools at some point.

.catkin_tools is a hidden directory, so it won't show up if you just browse to your home dir using the file browser.

You'll have to either enable "show hidden files", or use ls -al $HOME in a terminal.

Asked by gvdhoorn on 2018-10-08 10:28:39 UTC

Comments

no i dont, but im sure i did install catkin tools at some point.

Asked by girpon on 2018-10-08 10:31:06 UTC

yes there is .catkin_tools

Asked by girpon on 2018-10-08 10:38:03 UTC

Delete it using rm -rf $HOME/.catkin_tools.

Then open a new terminal and try creating your workspace again.

Asked by gvdhoorn on 2018-10-08 10:38:48 UTC

thanks it worked!!

Asked by girpon on 2018-10-08 10:39:30 UTC