Robotics System Toolbox笔记(1)

1、ROS基本概念

ROS全称为Robot Operating System,是一种采用分布式架构的元操作系统,它本身并不是通常意义上的操作系统,可以简单的将它理解为是在多个物理计算机中运行的众多ROS节点形成的一个ROS网络。


ROS的基本概念


ROS网络


由机器人系统的不同部分组成,网络可以在数个机器上分布。


ROS主节点


定位ROS网络中的不同部分,由主节点URI(Uniform Resource Identifier,统一资源定位符)定位,该URI指定主节点运行的机器主机名或IP地址。


ROS节点


包含相关联的ROS功能的实体,一个ROS网络可以包含许多ROS节点。


发布者


发送消息到指定的主题


订阅者


接收订阅的主题对应的消息

2、Robotics System Toolbox基本命令

(1). rosinit


rosinit


初始化ROS,默认在Matlab中创建ROS主节点并启动全局节点与主节点相连。

(2). rosnode


rosnode


rosnode list

nodelist = rosnode(‘list‘)


列出在ROS网络注册的所有节点


rosnode info nodename

nodeinfo = rosnode(‘info‘,nodename)


返回一个结构体,该结构体包含指定节点nodename的名称、URI、发布者、订阅者、服务。


rosnode(‘ping‘,nodename)


与指定节点nodename进行通信测试并显示响应时间

(3). rostopic


rostopic


rostopic list

topiclist = rostopic(‘list‘)


从ROS主机返回ROS主题列表


rostopic echo topicname

msg = rostopic(‘echo‘,topicname)


从ROS主机返回有关指定主题 topicname的消息


rostopic info topicname

topicinfo = rostopic(‘info‘,topicname)


返回指点主题topicname的消息类型、发布者、订阅者


rostopic type topicname

msgtype = rostopic(‘type‘,topicname)


返回指定主题的消息类型

(4). rosservice


rosservice


rosservice list

svclist = rosservice(‘list‘)


返回ROS网络中的活动服务器的服务名称列表


rosservice info svcname

svcinfo = rosservice(‘info‘,svcname)


返回指定服务svcname的信息


rosservice type svcname

svctype = rosservice(‘type‘,svcname)


返回服务类型


rosservice uri svcname

svcuri = rosservice(‘uri‘,svcname)


返回服务的URI

时间: 2024-07-28 14:20:16

Robotics System Toolbox笔记(1)的相关文章

Robotics System Toolbox(四)

What I do is derived from my pursuit of dreams. 1. Simultaneous Localization and Mapping(http://blog.exbot.net/archives/2515)     It must be achieved three tasks that is Localization.mapping and navigation before reaching  Intelligence. 2. The essent

Google File System读书笔记

GFS是google分布式存储的基石,其他存储系统,比如Google的bigtable.megastore.percolator均直接或者间接的构建在GFS上. 系统架构 GFS Master维护了系统的元数据,包括文件及chunk命名空间.文件到chunk的映射关系.chunk的位置信息:复制整个系统的全局控制,master定期会与CS通过心跳的方式交换信息 GFS ChunkServer(CS,数据块服务器)64MB的chunk块,由master在创建时分配一个64位全局唯一的chunk句柄

嵌入式(Embedded System)笔记 —— Cortex-M3 Introduction and Basics(下)

随着课内的学习,我想把每节课所学记录下来,以作查阅.以饲读者.由于我所上的是英文班课程,因此我将把关键术语的英文给出,甚至有些内容直接使用英文. 本次所介绍内容仍是关于Cortex-M3的基础内容,相对上一篇来说,介绍的内容更加具体和细致了. --------------------------------------------------------------------------------------------------------------------------------

嵌入式(Embedded System)笔记 —— Cortex-M3 Introduction and Basics(上)

随着课内的学习,我想把每节课所学记录下来,以作查阅.以饲读者.由于我所上的是英文班课程,因此我将把关键术语的英文给出,甚至有些内容直接使用英文. 本次所介绍内容是关于Cortex-M3的基础内容. ------------------------------------------------------------------------------------------------------------------------------------------------ 1.什么是嵌

PRM路径规划算法

路径规划作为机器人完成各种任务的基础,一直是研究的热点.研究人员提出了许多规划方法:如人工势场法.单元分解法.随机路标图(PRM)法.快速搜索树(RRT)法等.传统的人工势场.单元分解法需要对空间中的障碍物进行精确建模,当环境中的障碍物较为复杂时,将导致规划算法计算量较大.基于随机采样技术的PRM法可以有效解决高维空间和复杂约束中的路径规划问题. PRM是一种基于图搜索的方法,它将连续空间转换成离散空间,再利用A*等搜索算法在路线图上寻找路径,以提高搜索效率.这种方法能用相对少的随机采样点来找到

Review summary(二)

The high level of English is a standard for a top student. 1. Life is not successful, success is temporary; life is successful, not successful is temporary." 2. The wind blows as usual. Flowers bloom as usual. The sun rises from the east as before. B

Review summary(三)

The high level of English is a standard for a top student. 1. The secret of flowers is to present spring with a fragrant posture, to display her born beauty at the cost of living during each life cycle. 2. Don't confuse my personality with my attitud

matlab分布式平台

一.Matlab R2014b安装教程 1,下载Matlab R2014b ISO格式安装包 2,以winrar格式解压缩ISO文件,出现下图所示的文件列表 3,进入Matlab2014b crack.rar中jar文件,将其中的ValidatedFikImpl.class和InstallerBuilderImpl.class文件复制替换到 上述解压缩文件夹内的路径 \java\jar\install.jar压缩文件的\com\mathworks\install\目录下: 直接向Winrar所打

Image Retrieval Using Customized Bag of Features

This example shows how to create a Content Based Image Retrieval (CBIR) system using a customized bag-of-features workflow. Introduction Content Based Image Retrieval (CBIR) systems are used to find images that are visually similar to a query image.