"catkin_make" must be invoked in the root of workspace
Hi, I've got this problem, I saw other people with it, but answer on their topic didn't help me So i exactly have The specified base path "/home/eisti/catkinws/src/turtlesimcleaner" contains a package but "catkin_make" must be invoked in the root of workspace When I try
~/catkin_ws/src/turtlesim_cleaner$ catkin_make
I'm just trying to do this tutorial
So the last things to do in this tutorials doesn't work " rosrun turtlesim_cleaner move.py" I think it's because of that, but I don't know how to fix this, I just follow the turorials
this is my workespace
catkin_ws/
/build
/devel
/frames.gv
/frames.pdf
/install
/src (in this one)
/beginner_tutorials
/CMakeLists.txt
/learning_tf
/turtlesim_cleaner
Edit:
Thank you,
In fact I had an other problem and I thougth it was from this catkin_make, but it wasn't I had a rospack error, like this, and solve it with this topic
But I still do not understant this line in the tutorial
$ cd ~/catkin_ws/src/turtlesim_cleaner
$ mkdir src
$ catkin_make
because like this catkin_make
can't work
Asked by vidalquent on 2019-06-12 17:24:59 UTC
Answers
You need to run that command from the root of your workspace, not from the root of your package. In other words, cd
to the root of your workspace and run that command:
cd ~/catkin_ws
catkin_make
Update:
The part of that tutorial that says
$ cd ~/catkin_ws/src/turtlesim_cleaner
$ mkdir src
$ catkin_make
is incorrect. You should only call catkin_make
from the root of your workspace. I've updated the tutorial. What it should (and does now) read is
$ cd ~/catkin_ws/src/turtlesim_cleaner
$ mkdir src
$ cd ~/catkin_ws
$ catkin_make
Asked by jayess on 2019-06-12 18:03:30 UTC
Comments
@vidalquent If this answered your question, please click on the check mark (✓) next to the answer to mark it as correct
Asked by jayess on 2019-06-14 23:50:18 UTC
Comments
Can you please update your question with links to the answers that you've tried using? This will help to keep people from suggesting solutions that you've already attempted
Asked by jayess on 2019-06-12 18:06:42 UTC