首页 > 其他 > 详细

ROS

时间:2018-10-16 23:56:01      阅读:262      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!