第一次遇到此问题,我不明白为什么...当我想创建一个catkin工作区时,我创建一个新目录并执行catkin_make
或catkin init
,而实际上该工作区是总是我的主目录而不是我创建的新工作空间。因此,在我的主目录中也创建了一个build
和devel
目录。你知道我在这里想念的吗?非常感谢您的帮助
emeric@emeric-desktop:~$ cd catkin_planning_ws/
emeric@emeric-desktop:~/catkin_planning_ws$ ls
src
emeric@emeric-desktop:~/catkin_planning_ws$ catkin init
Catkin workspace `/home/emeric` is already initialized. No action taken.
---------------------------------------------------------------------------
Profile: default
Extending: [env] /home/emeric/catkin_wsp/devel:/opt/ros/kinetic
Workspace: /home/emeric
---------------------------------------------------------------------------
Source Space: [exists] /home/emeric/src
Log Space: [missing] /home/emeric/logs
Build Space: [missing] /home/emeric/build
Devel Space: [missing] /home/emeric/devel
Install Space: [unused] /home/emeric/install
DESTDIR: [unused] None
---------------------------------------------------------------------------
Devel Space Layout: linked
Install Space Layout: None
---------------------------------------------------------------------------
Additional CMake Args: DCMAKE_BUILT_TYPE=Release
Additional Make Args: None
Additional catkin Make Args: None
Internal Make Job Server: True
Cache Job Environments: False
---------------------------------------------------------------------------
Whitelisted Packages: None
Blacklisted Packages: None
------------------------------------------------------
答案 0 :(得分:0)
我遇到了完全相同的问题,这是解决方案:
1. cd #go to home dir
2. ls -la | grep catkin #cheak if there is a dir named *.catkin_tools*, that's the problem!!!
3. rm -r .catkin_tools
完成! 希望这也适合您的情况。