catkin_make Base path: /home/abc/tutorial_ws Source space: /home/abc/tutorial_ws/src Build space: /home/abc/tutorial_ws/build Devel space: /home/abc/tutorial_ws/devel Install space: /home/abc/tutorial_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/abc/tutorial_ws/build" #### #### #### Running command: "make -j12 -l12" in "/home/abc/tutorial_ws/build" ####
时间: 2023-09-09 22:11:38 浏览: 219
这是一个用于构建ROS工作空间的catkin_make命令的输出。它显示了基本路径、源代码路径、构建路径、开发路径和安装路径。接下来,它显示了正在运行的命令,包括"cmake_check_build_system"和"make"命令。"make -j12 -l12"命令中的参数"-j12"表示使用12个线程进行并行编译,"-l12"表示限制编译的负载,以避免过度使用系统资源。这样可以加快编译过程。请问还有其他问题吗?
相关问题
yahboom@Transbot:~/dev/catkin_ws$ catkin_make Base path: /home/yahboom/dev/catkin_ws Source space: /home/yahboom/dev/catkin_ws/src Build space: /home/yahboom/dev/catkin_ws/build Devel space: /home/yahboom/dev/catkin_ws/devel Install space: /home/yahboom/dev/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/yahboom/dev/catkin_ws/build" #### #### #### Running command: "make -j6 -l6" in "/home/yahboom/dev/catkin_ws/build" ####
这段输出来自 `catkin_make` 命令,它用于编译 ROS packages。在这个例子中,`catkin_make` 在 `/home/yahboom/dev/catkin_ws` 目录下编译 ROS packages。输出中的信息表示:
- Base path: `/home/yahboom/dev/catkin_ws`:`catkin_make` 命令在这个路径下查找 ROS packages 的源代码和 build、devel、install 目录。
- Source space: `/home/yahboom/dev/catkin_ws/src`:ROS packages 的源代码目录。
- Build space: `/home/yahboom/dev/catkin_ws/build`:编译 ROS packages 时生成的中间文件和目标文件目录。
- Devel space: `/home/yahboom/dev/catkin_ws/devel`:编译 ROS packages 后生成的可执行文件和库文件目录。
- Install space: `/home/yahboom/dev/catkin_ws/install`:安装 ROS packages 后生成的可执行文件和库文件目录。
接下来的输出显示了 `catkin_make` 命令运行的步骤。首先运行 `make cmake_check_build_system` 命令检查 build 目录是否存在,以及 build 目录中是否存在 CMakeLists.txt 文件。然后运行 `make -j6 -l6` 命令编译 ROS packages。`-j6` 表示使用 6 个 CPU 核心并行编译,`-l6` 表示在编译过程中限制系统负载不超过 6。
dp@dp-virtual-machine:~/catkin_ws$ catkin_make Base path: /home/dp/catkin_ws Source space: /home/dp/catkin_ws/src Build space: /home/dp/catkin_ws/build Devel space: /home/dp/catkin_ws/devel Install space: /home/dp/catkin_ws/install #### #### Running command: "make cmake_check_build_system" in "/home/dp/catkin_ws/build" #### #### #### Running command: "make -j16 -l16" in "/home/dp/catkin_ws/build" #### [100%] Built target velocity_publisher
根据你提供的信息,`catkin_make`命令成功地构建了名为`velocity_publisher`的目标。在构建过程中,你可以看到 `[100%] Built target velocity_publisher`,这表示该目标已经成功构建。
现在你可以尝试再次运行`rosrun learning_topic velocity_publisher`命令,应该可以正常运行了。如果还有其他问题,请提供更多详细信息,我将尽力帮助你解决。
阅读全文