码迷,mamicode.com
首页 > 其他好文 > 详细

ROS

时间:2018-10-17 00:18:24      阅读:160      评论:0      收藏:0      [点我收藏+]

标签:nbsp   cpp   功能   uil   关系   std   div   href   gen   

Creating a catkin Package

# catkin_create_pkg <package_name> [depend1] [depend2] [depend3]
$ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp

Building a catkin workspace and sourcing the setup file

$ cd ~/catkin_ws
$ catkin_make

#To add the workspace to your ROS environment you need to source the generated setup file
$ . ~/catkin_ws/devel/setup.bash

First-order dependencies

$ rospack depends1 beginner_tutorials   
#查看功能包‘beginner_tutorials’的一阶依赖关系

#一个功能包的依赖关系都存储在‘package.xml’文件中
$ roscd beginner_tutorials   #进到功能包目录下
$ cat package.xml                #打开且编写文件package.xml

Indirect dependencies

$ rospack depends1 rospy     #很多情况下,依赖项也有自己的依赖项,查看‘rospy‘的依赖项     

$ rospack depends beginner_tutorials    #可以递归地确定所有的依赖性

Using catkin_make to build a catkin workspace

 

ROS

标签:nbsp   cpp   功能   uil   关系   std   div   href   gen   

原文地址:https://www.cnblogs.com/yuan-G/p/9800887.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!