ros创建catkin_ws执行catkin init报错

2022-04-19 09:32:50 浏览数 (2)

各位看官好!本人在操作ros时,首先创建了一个catkin_ws/src的文件夹,本来是要在catkin_ws下执行catkin init命令的。不小心在HOME/[NAME]/下执行了catkin init命令。导致再到catkin_ws下执行catkin init命令时报错如下:

代码语言:javascript复制
     dennisou@dennisou-virtual-machine:~/catkin_ws$ catkin init 
Catkin workspace `/home/dennisou` is already initialized. No action taken.
--------------------------------------------------------------------------------
Profile:                     default
Extending:             [env] /opt/ros/melodic
Workspace:                   /home/dennisou
--------------------------------------------------------------------------------
Build Space:       [missing] /home/dennisou/build
Devel Space:       [missing] /home/dennisou/devel
Install Space:      [unused] /home/dennisou/install
Log Space:         [missing] /home/dennisou/logs
Source Space:      [missing] /home/dennisou/src
DESTDIR:            [unused] None
--------------------------------------------------------------------------------
Devel Space Layout:          linked
Install Space Layout:        None
--------------------------------------------------------------------------------
Additional CMake Args:       -DPYTHON_EXECUTABLE=/home/zhangman/anaconda3/bin/python -DPYTHON_INCLUDE_DIR=/home/zhangman/anaconda3/include/python3.7m -DPYTHON_LIBRARY=/home/zhangman/anaconda3/lib/libpython3.7m.so -DCMAKE_BUILD_TYPE=Release-DSETUPTOOLS_DEB_LAYO
Additional Make Args:        None
Additional catkin Make Args: None
Internal Make Job Server:    True
Cache Job Environments:      False
--------------------------------------------------------------------------------
Buildlisted Packages:        None
Skiplisted Packages:         None
--------------------------------------------------------------------------------


--------------------------------------------------------------------------------
WARNING: Source space `/home/dennisou/src` does not yet exist.

各位大神们有什么好办法能解决这个报错吗?试了很多网上的帖子都没有解决。还是那求助万能的网络,望各位大神指教。

0 人点赞