创建 catkin 工作区时出现问题 - 工作区 = 主目录



我第一次遇到这个问题,我不明白为什么...当我想创建一个 catkin 工作区时,我会创建一个新目录并执行catkin_makecatkin init,实际上工作区始终是我的主目录,而不是我创建的新工作区。因此,在我的主目录上也创建了一个builddevel目录。你知道我在这里错过了什么吗?非常感谢您的帮助

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
------------------------------------------------------

我遇到了完全相同的问题,这是解决方案:

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

做!希望这也适用于您的情况。

相关内容

  • 没有找到相关文章