Raphael +
  • Stay hungry, Stay foolish.
  • albus.zly@gmail.com
    albus12138

    ROS 文件系统及包结构

    ROS 文件系统

    文件系统概念

    文件系统工具

    创建包

    cd ~/catkin_ws/src
    
    #catkin_create_pkg package_name depend1 depend2 depend3
    catkin_create_pkg tutorials roscpp rospy std_msgs

    通过上面这条指令可以自动创建一个包结构, 其中依赖不是必填内容

    创建自定义包

    <package format="2">
      <name>foo_core</name>
      <version>1.2.4</version>
      <description>
        This package provides foo capability.
      </description>
      <maintainer email="ivana@willowgarage.com">Ivana Bildbotz</maintainer>
      <license>BSD</license>
    
      <url>http://ros.org/wiki/foo_core</url>
      <author>Ivana Bildbotz</author>
    
      <buildtool_depend>catkin</buildtool_depend>
    
      <depend>roscpp</depend>
      <depend>std_msgs</depend>
    
      <build_depend>message_generation</build_depend>
    
      <exec_depend>message_runtime</exec_depend>
      <exec_depend>rospy</exec_depend>
    
      <test_depend>python-mock</test_depend>
    
      <doc_depend>doxygen</doc_depend>
    </package>
    	catkin_package(
    		INCLUDE_DIRS include
    		LIBRARIES ${PROJECT_NAME}
    		CATKIN_DEPENDS roscpp nodelet
    		DEPENDS eigen opencv)
    	
    - [更多内容](http://wiki.ros.org/catkin/CMakeLists.txt#Specifying_Build_Targets)
    

    构建包

    Blog

    Coding

    Bookmarks