精华内容
下载资源
问答
  • Catkin_make

    2019-09-13 20:09:11
    只编译某个包 catkin_make -DCATKIN_WHITELIST_PACKAGES="package1;package2" 恢复编译所有 catkin_make -DCATKIN_WHITELIST_PACKAGES=""

    只编译某个包

    catkin_make -DCATKIN_WHITELIST_PACKAGES="package1;package2"
    

    恢复编译所有

    catkin_make -DCATKIN_WHITELIST_PACKAGES=""
    

    找不到程序包路径

    打开终端脚本~/.bashrc文件:

    sudo gedit ~/.bashrc
    

    在文件末尾添加

    export ROS_PACKAGE_PATH=${ROS_PACKAGE_PATH}:/你的工作空间路径/src
    #export ROS_PACKAGE_PATH=~/catkin_ws/src:$ROS_PACKAGE_PATH
    
    展开全文
  • catkin_make

    千次阅读 2019-06-11 16:03:38
    一、编译指定包 1、catkin_make -DCATKIN_WHITELIST_PACKAGES="package1;package2" 2、恢复编译所有包 catkin_make -DCATKIN_WHITELIST_PACKAGES="
    一、编译指定包
    1、catkin_make -DCATKIN_WHITELIST_PACKAGES="package1;package2"

    2、恢复编译所有包

    catkin_make -DCATKIN_WHITELIST_PACKAGES=""

    展开全文
  • catkin_make error

    2020-12-29 20:50:45
    , and then catkin_make produced an error below. Not sure how to work around it. Any idea? <pre><code> -- ~~ traversing 4 packages in topological order: ... CMake Error at /opt/ros/melodic/share/catkin...
  • and print a message at the end of each <code>catkin_make</code> invocation to this effect: <pre><code> We recommend that you use the `catkin build` command instead of `catkin_make`. ...
  • <div><p>catkin_make accepts -d options to pass to cmake. It seems catkin_make_isolated does not: <pre><code> $ src/catkin/bin/catkin_make_isolated -DFOO=3 catkin_make_isolated: error: unrecognized...
  • zth@SugoAsurada:~/catkin_ws$ catkin_make Base path: /home/zth/catkin_ws Source space: /home/zth/catkin_ws/src Build space: /home/zth/catkin_ws/build Devel space: /home/zth/catkin_ws/devel Install ...

    错误如下:

    zth@SugoAsurada:~/catkin_ws$ catkin_make
    Base path: /home/zth/catkin_ws
    Source space: /home/zth/catkin_ws/src
    Build space: /home/zth/catkin_ws/build
    Devel space: /home/zth/catkin_ws/devel
    Install space: /home/zth/catkin_ws/install
    ####
    #### Running command: "cmake /home/zth/catkin_ws/src -DCATKIN_DEVEL_PREFIX=/home/zth/catkin_ws/devel -DCMAKE_INSTALL_PREFIX=/home/zth/catkin_ws/install -G Unix Makefiles" in "/home/zth/catkin_ws/build"
    ####
    -- Using CATKIN_DEVEL_PREFIX: /home/zth/catkin_ws/devel
    -- Using CMAKE_PREFIX_PATH: /opt/ros/melodic
    -- This workspace overlays: /opt/ros/melodic
    -- Found PythonInterp: /usr/bin/python3 (found suitable version "3.6.9", minimum required is "2") 
    -- Using PYTHON_EXECUTABLE: /usr/bin/python3
    -- Using Debian Python package layout
    -- Using empy: /usr/bin/empy
    -- Using CATKIN_ENABLE_TESTING: ON
    -- Call enable_testing()
    -- Using CATKIN_TEST_RESULTS_DIR: /home/zth/catkin_ws/build/test_results
    -- Found gtest sources under '/usr/src/googletest': gtests will be built
    -- Found gmock sources under '/usr/src/googletest': gmock will be built
    -- Found PythonInterp: /usr/bin/python3 (found version "3.6.9") 
    -- Using Python nosetests: /usr/bin/nosetests
    ImportError: "from catkin_pkg.package import parse_package" failed: No module named 'catkin_pkg'
    Make sure that you have installed "catkin_pkg", it is up to date and on the PYTHONPATH.
    CMake Error at /opt/ros/melodic/share/catkin/cmake/safe_execute_process.cmake:11 (message):
      execute_process(/usr/bin/python3
      "/opt/ros/melodic/share/catkin/cmake/parse_package_xml.py"
      "/opt/ros/melodic/share/catkin/cmake/../package.xml"
      "/home/zth/catkin_ws/build/catkin/catkin_generated/version/package.cmake")
      returned error code 1
    Call Stack (most recent call first):
      /opt/ros/melodic/share/catkin/cmake/catkin_package_xml.cmake:74 (safe_execute_process)
      /opt/ros/melodic/share/catkin/cmake/all.cmake:168 (_catkin_package_xml)
      /opt/ros/melodic/share/catkin/cmake/catkinConfig.cmake:20 (include)
      CMakeLists.txt:58 (find_package)
    
    
    -- Configuring incomplete, errors occurred!
    See also "/home/zth/catkin_ws/build/CMakeFiles/CMakeOutput.log".
    See also "/home/zth/catkin_ws/build/CMakeFiles/CMakeError.log".
    Invoking "cmake" failed
    

    解决方案

    第一步:安装catkin_pkg

    pip install --user catkin_pkg
    
    pip install --user rosdep rosinstall_generator wstool rosinstall six vcstools
    
    pip install --user pydot
    

    第二步:配置环境变量

    sudo gedit ~/.bashrc
    
    • 打开文件,在文件末尾添加
    export PYTHONPATH=$PYTHONPATH:/usr/lib/python2.7/dist-packages
    
    • 关闭文件
    • 终端运行
    source ~/.bashrc
    

    参考博客

    [1] https://blog.csdn.net/qq_41212530/article/details/86602770
    [2] https://blog.csdn.net/WASEFADG/article/details/104177394?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-3.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-3.control

    展开全文
  • catkin_make命令

    2020-06-25 18:13:09
    catkin_make是在catkin工作区中构建代码的便捷工具。catkin_make遵循catkin工作区的标准布局,如REP-128中所述。 用法 假设您的catkin工作区位于〜/ catkin_ws中,则应始终在catkin工作区的根目录中调用catkin_...

    catkin_make是在catkin工作区中构建代码的便捷工具。 catkin_make遵循catkin工作区的标准布局,如REP-128中所述

     

    用法

    假设您的catkin工作区位于〜/ catkin_ws中,则应始终在catkin工作区的根目录中调用catkin_make:

    • $ cd〜/ catkin_ws
      $ catkin_make

    上面的命令将构建〜/ catkin_ws / src中的所有软件包。手动执行此操作的等效命令为:

    • $ cd〜/ catkin_ws
      $ cd src
      $ catkin_init_workspace
      $ cd ..
      $ mkdir构建
      $ cd构建
      $ cmake ../src -DCMAKE_INSTALL_PREFIX = .. / install -DCATKIN_DEVEL_PREFIX = .. / devel
      $使

    如果要在工作空间中构建特定的程序包,请在工作空间的根目录中调用以下命令:

    • $ catkin_make -DCATKIN_WHITELIST_PACKAGES =“ package1; package2”

    如果要还原为生成所有软件包,请执行以下操作:

    • $ catkin_make -DCATKIN_WHITELIST_PACKAGES =“”

    运行catkin_make之后,您应该在catkin工作区的根目录中注意到两个新文件夹:build和devel文件夹。在build文件夹中将调用cmake和make,在devel文件夹中将包含所有生成的文件和目标,以及setup。* sh文件,以便您可以像安装它一样使用它。

    您可以将通常传递给make和cmake的任何参数传递给catkin_make。例如,您可以像这样调用安装目标:

    • $ cd〜/ catkin_ws
      $ catkin_make安装

    这等效于像这样调用make:

    • $ cd〜/ catkin_ws / build
      #如果尚未调用cmake
      $ cmake ../src -DCMAKE_INSTALL_PREFIX = .. / install -DCATKIN_DEVEL_PREFIX = .. / devel
      $使
      $进行安装

    现在,在工作区的根目录中应该有第三个文件夹:install。这是Catkin工作区中所有软件包的符合FHS的安装。它包含可以获取的setup。* sh文件,使您可以利用自己构建的软件包。

    您可以通过将-DCMAKE_INSTALL_PREFIX = ...传递给catkin_make来更改软件包的安装位置:

    • $ cd〜/ catkin_ws
      $ catkin_make -DCMAKE_INSTALL_PREFIX = / opt / ros / <发行版> install

    重要说明:当安装到/ opt / ros / <distro>(其中<distro>指的是您拥有的ROS版本,例如,靛蓝,动力学...)时,您可能会遇到权限问题。通常,作为普通用户,您没有写/ opt的权限,因此您需要超级用户特权。有三种解决方法:

    • 为根目录安装ROS(至少是最小安装)(不建议!)

    • 通过更改为root来安装软件包

    • 将软件包安装到具有所需权限(读取和写入)的位置

    不建议使用第一个选项,因为在进行开发时,ROS通常不需要超级用户特权。人们通常也避免以超级用户身份工作(出于安全原因)。因此,在正常情况下,我们只有上面列表中的第二个和第三个选项。对于不习惯处理多个工作区的新ROS用户,第三个选项可能会带来一些问题,这些用户需要组合多个setup.bash文件。这就是为什么第二种选择似乎是最直接的方法。您要做的就是更改当前用户(标记为<user>,该用户表示没有超级用户权限,并且是您通常用于开发ROS软件的用户):

    • $ sudo su
      <user>的$ [sudo]密码:

    现在,你有超级用户权限,所有你需要做的就是源的setup.bash位于您的非超级用户的柳絮工作空间或一个位于/opt/ros/<distro>/setup.bash:

    • $ source / home / <用户> / <user_catkin_workspace> /devel/setup.bash
      
      要么
      
      $ source /opt/ros/<distro>/setup.bash

    这将使catkin_make对超级用户可见。您不需要任何其他操作,因为catkin_make安装的工作原理是将文件从源位置简单地复制到要安装ROS软件包的位置。最后一步是使用上面的参数调用catkin_make。安装应继续进行,不会出现任何其他问题。请注意,这适用于所有需要将软件包安装到通常没有读写权限的位置的情况。

     

    参考资料

    1.http://stevenshi.me/2017/05/26/ros-primary-tutorial-4/

    2.https://blog.csdn.net/zyh821351004/article/details/50388429

    展开全文
  • catkin_make_isolated </foo_msgs></code></pre> <p>This build should fail, as project foo does not declare find_package(foo_msgs), but it does not fail, making isolated builds useless to detect ...
  • I build the msckf_vio package with catkin_make, the VIO result being very poor. However , if I build the package with it(catkin_make --pkg msckf_vio --cmake-args -DCMAKE_BUILD_TYPE=Release...
  • catkin_make failed

    2020-12-28 21:04:14
    <div><p>Hi , i cloned hector_slam to my workspace but when i do catkin_make it gives these errors and it fails. Distro : melodic tf2 package is already installed <pre><code> [ 97%] Linking CXX ...
  • catkin build 和 catkin_make

    千次阅读 2019-01-22 15:53:21
    Migrating from catkin_make Important Distinctions between catkin_make and catkin build https://catkin-tools.readthedocs.io/en/latest/migration.html    
  • catkin_make, cmake, catkin build区别

    千次阅读 2019-10-30 19:29:55
    文章目录1 catkin的历史1.1 Legacy Catkin Workflow1.2 Isolated Catkin Workflow1.3 Parallel Isolated Catkin Workflow and catkin build2 cmake和catkin_make区别3 catkin_make和catkin build3.1 catkin_make 和 ...
  • <div><p>It seems that <code>catkin_make</code> always expects <code>cmake_minimum_required(VERSION 2.8.3)</code> for metapackages. <p>It checks that the metapackage CMakeLists.txt conforms exactly to ...
  • catkin_make相关操作

    千次阅读 2020-01-13 11:54:32
    catkin_make -DCATKIN_WHITELIST_PACKAGES=“package1;package2” 但是我之后想编译所有包的时候用 catkin_make指令 但是这个时候还是只能编译我之前的指定包。 通过输入 catkin_make -DCATKIN_WHITELIST_PACKAGES=...
  • catkin_make roslint_robot_localization' and most of 'catkin_lint -W2' <p>The only complaint left from 'catkin_lint -W2' is about - robot_localization: notice: target name '...
  • Error: Build space <code>/home/wkyoun/catkin_ws/build</code> exists but appears to have previously been created by the <code>catkin_make</code> or <code>catkin_make_isolated</code> tool. Please choose...
  • Adapt catkin_make?

    2020-12-09 06:28:18
    d rather we switch to catkin_make for the time being (don't know how feasible that is though, ?). <p>It's absolutely feasible and in fact I thought I offered to do so somewhere (I just can&#...
  • catkin_make出现 No module named 'catkin_pkg'

    千次阅读 2020-01-22 19:28:00
    从错误输出中: Make sure that you have installed "catkin_pkg", it is up to date and on ...catkin_pkg不在我的PYTHONPATH中(可能是由于其他程序安装),所以我添加了它并且再次运行catkin_make,这次成功。 ...
  • <div><p>Hello, I got a little problem with catkin_make. I use ubuntu 14.04 , ROS:indigo , gcc version 4.8.4 When running 'catkin_make -DCMAKE_BUILD_TYPE=Release',I encounter a problem: ...
  • Issue with catkin_make

    2020-12-08 19:52:22
    <div><p><code>catkin_make</code> gives the following result: <pre><code>` [100%] Building CXX object dso_ros/CMakeFiles/dso_live.dir/src/main.o Linking CXX executable /home/seonghunlee/ros/dso_...
  • catkin_make 与 catkin build指令记录 catkin build作为catkin_make的接班者,https://catkin-tools.readthedocs.io/en/latest/history.html(catkin_make-> catkin_make_isolated->catkinbuild),看到有很多...
  • catkin_make和cmake

    2019-03-18 22:00:31
    catkin_make是ROS下面的一种编译方式,基于cmake,但是又不同于cmake。cmake只能编译指定的package,但是不同package之间的关系没办法链接,而且cmake只能编译C++。而catkin_make不仅仅可以编译C++还支持python,在...
  • The specified base path “/home/ubuntu/catkin_ws” contains a CMakeLists.txt but “catkin_make” must be invoked in the root of workspace….. 出现这种情况的原因是catkin_init_workspacce的时候...
  • catkin workspace tutorial</a> does not work if you are using catkin_make_isolated instead of catkin_make. <p>No setup.bash (etc.) files are produced in devel_isolated that can be used as the setup-...

空空如也

空空如也

1 2 3 4 5 ... 20
收藏数 3,217
精华内容 1,286
关键字:

catkin_make