烈火如歌-ROS入门使用

Tutorials

Filesystem tools(文件系统工具)
Example:

$ rospack find roscpp

would return:

YOUR_INSTALL_PATH/share/roscpp
roscd  #切换目录,只能切换到那些路径已经包含在ROS_PACKAGE_PATH环境变量中的软件包
rosls  #直接按软件包的名称而不是绝对路径执行ls命令

建立ROS程序包

Creating a catkin Package

#You should have created this in the Creating a Workspace Tutorial
$ cd ~/catkin_ws/src
$ catkin_create_pkg beginner_tutorials std_msgs rospy roscpp
# This is an example, do not try to run this
# catkin_create_pkg <package_name> [depend1] [depend2] [depend3]

Building the packages in the catkin workspace:

$ cd ~/catkin_ws
$ catkin_make
$ . ~/catkin_ws/devel/setup.bash   #.可以替换为source命令

roscore is the first thing you should run when using ROS.

Open up a new terminal, useing rosnode (显示当前运行的ROS节点信息)
rosnode list 指令列出活跃的节点

$ rosnode info /rosout    #rosnode info 命令返回的是关于一个特定节点的信息

                
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值