简单介绍Player的configure文件

1、对实物机器人的Configure  .cfg文件

通过Player控制机器人的时候首先应该要做的就是要告诉Player机器人上到底有什么硬件资源需要进行控制。

configure (.cfg)文件就是用来通知Player的:它的内容决定了Player的控制对象。

就好比这样一个函数:y=f(x)

这里的y是Player ,属于软件;x是需要控制的硬件;用来反映它们之间关系的映射f,就是configure文件。

Configure的语法结构基于Player的三个核心概念,即接口,驱动,和设备

There are 3 key concepts in Player[1]:

  • interface : A specification of how to interact with a certain class of robotic sensor, actuator, or algorithm. The interface defines the syntax and semantics of all messages that can be exchanged with entities in the same class.

  • driver : A piece of software (usually written in C++) that talks to a robotic sensor, actuator, or algorithm, and translates its inputs and outputs to conform to one or more interfaces. The driver's job is hide the specifics of any given entity by making it appear to be the same as any other entity in its class.

  • device : A driver bound to an interface, and given a fully-qualified address. All messaging in Player occurs among devices, via interfaces. The drivers, while doing most of the work, are never accessed directly.

用一句话概括它们之间的关系:driver把得到的数据映射到绑定在其上的相应的device interface。

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 1
    评论
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值