【ROS-Stage】Stage机器人仿真实验(三)

参考资料: Modules

本文大概翻译了Stage提供的几种模型的介绍,有些模型只翻译了简介,机器人底座、执行器和激光传感器翻译的比较详细。在最后给出了ROS中Stage的消息类型。

执行器模型(actuator model)

ULM

执行器模型模仿了简单的执行器,可以在单个维度上移位,或者绕Z轴旋转。
(The actuator model simulates a simple actuator, where child objects can be displaced in a single dimension, or rotated about the Z axis.)

API: Stg::ModelActuator

World文件属性

总结和默认值

  # actuator properties
  type ""
  axis [x y z]

  min_position
  max_position
  max_speed
)

有“线性”和“旋转”两种类型。
(

  • type "linear" or "rotational"
    the style of actuator. Rotational actuators may only rotate about the z axis (i.e. 'yaw')
  • axis if a linear actuator the axis that the actuator will move along
    )

闪烁灯光模型(Blinkenlight model)

模拟闪烁的灯光。链接

Blobfinder model

blobfinder模型模拟了一种色块寻找视觉设备,如CMUCAM2或ACTS图像处理软件。 它可以跟踪模拟2D图像中的颜色区域,给出颜色“斑点”的位置和大小。 可以一次跟踪多种颜色; 它们被分成通道,例如 所有红色对象都被跟踪为通道1,通道2中的蓝色对象等。与每个通道关联的颜色是可配置的。链接

相机模型(Camera model)

相机的模型
链接:Camera model

Fiducial detector model

The fiducial model simulates a fiducial-detecting device.
链接: Fiducial detector model

fiducial
(
  # fiducial properties
  range_min 0.0
  range_max 8.0
  range_max_id 5.0
  fov 3.14159
  ignore_zloc 0

  # model properties
  size [ 0.1 0.1 0.1 ]
)

抓手模型(Gripper model)

模拟了一个简单的二指抓手。链接: Gripper model

机器人底盘模型(Position model)

UML

模拟机器人底盘,有两种模式:差速轮式(differential)和全向轮式(omnidirectional)。差速轮式可以前后移动和左右转向,全向轮式可以前后移动、左右移动和转向。

API: Stg::ModelPosition

world文件属性

position
    (
    # position properties
    drive "diff"

    velocity [ 0.0 0.0 0.0 0.0 ]

    localization "gps"
    localization_origin [ <defaults to model's start pose> ]

    # odometry error model parameters, 
    # only used if localization is set to "odom"
    odom_error [0.03 0.03 0.00 0.05]

    # only used if drive is set to "car"
    wheelbase 1.0

    # [ xmin xmax ymin ymax zmin zmax amin amax ]               
    velocity_bounds [-1 1 -1 1 -1 1 -90 90 ]                    
    acceleration_bounds [-1 1 -1 1 -1 1 -90 90]

    # model properties

    )

注意:从 Stage-1.6.5开始,odom属性被移除了。(Stage will generate a warning if odom is defined in your worldfile. See localization_origin instead.)

  • acceleration_bounds [ xmin xmax ymin ymax zmin zmax amin amax ]
    加速度取值范围。x,y,z 的单位是米每秒的平方, a 是角度每秒的平方。

  • drive "diff", "omni" or "car"
    diff 差速轮式(比如Pioneer);omni全向轮式(比如麦克纳姆轮底座);car 速度和转向角控制。

  • velocity
    定义模型的初始速度。
    注意:如果模型撞到了障碍物,则速度变成0.

  • localization "gps" or "odom"
    定位方式。
    “gps”定位模型的位置是绝对精准的。
    “odom”是一个简单的里程计模型,随着时间的推移,会产生漂移。里程计模型的参数在 odom_error 属性中设定。

  • localization_origin [x y z theta]
    在参考坐标系下设置定位的坐标原点。默认值是初始位置,因此机器人报告的它的位置都是相对于初始位置的。(Tip: If localization_origin is set to [0 0 0 0] and localization is "gps", the model will return its true global position. This is unrealistic, but useful if you want to abstract away the details of localization. Be prepared to justify the use of this mode in your research!)

  • odom_error [x y z theta]
    指定定位“odom”时使用的里程计误差模型的参数。 每个值x,y,z,theta是最大的积分误差的比例对于每个轴,如果此处指定的值为E,则在启动时选择实际比例,范围为-E / 2到+ E / 2。 请注意,由于舍入错误,将这些值设置为零并不能为您提供完美的本地化 - 因此您需要选择本地化“gps”。
    ( parameters for the odometry error model used when specifying localization "odom". Each value is the maximum proportion of error in intergrating x, y, and theta velocities to compute odometric position estimate. For each axis, if the the value specified here is E, the actual proportion is chosen at startup at random in the range -E/2 to +E/2. Note that due to rounding errors, setting these values to zero does NOT give you perfect localization - for that you need to choose localization "gps".)

  • velocity [ x:<float> y:<float> z:<float> heading:<float>
    速度范围 。x,y,z 的单位是米每秒, a 是度每秒。(wheelbase <float,meters> The wheelbase used for the car steering model. Only used if drive is set to "car". Defaults to 1.0m)

激光传感器模型(Ranger model)

UML

模型模拟一系列声纳或红外(IR)范围传感器。

API: Stg::ModelRanger

world文件属性

   ranger
   (
   # ranger-specific properties

   sensor (
   pose [ x y z a ]
   size [  x y z ]
   fov a
   range [min max]
   )

   # generic model properties with non-default values
   watts 2.0
   color_rgba [ 0 1 0 0.15 ]
   )

Range模型允许单独配置每个传感器的位姿、大小和视野参数(使用spose [index],ssize [index]和sview [index])。 但是,大多数用户将使用默认的大小和视野(使用ssize和sview),只指定各个传感器位姿。

  • pose[<transducer index>] [ x:<float> y:<float> theta:<float> ]
    传感器相对于本体的位姿。
  • ssize [float float]
    [x y]
    单位i是米. Has no effect on the data, but controls how the sensor looks in the Stage window.
  • size[<transducer index>] [float float]
    每个传感器的 ssize 设置.
  • sview [float float float]
    [range_min range_max fov]
    径深范围最小和最大设置(单位是米),视野范围单位是角度。(Currently fov has no effect on the sensor model, other than being shown in the confgiuration graphic for the ranger device.)

Wifi model

链接:Wifi model

ROS中Stage的消息类型(转)

stage_ros程序包订阅/发布话题具体情况

注:上述话题是单个机器人发布的话题;若存在多个机器人,则按命名空间的方式进行区分,例如robot_0/odom,robot_0/cmd_vel ,robot_0/base_scan,robot_1/odom ,robot_1/cmd_vel ,robot_1/base_scan等等。

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
  • 序言:七十年代末,一起剥皮案震惊了整个滨河市,随后出现的几起案子,更是在滨河造成了极大的恐慌,老刑警刘岩,带你破解...
    沈念sama阅读 200,176评论 5 469
  • 序言:滨河连续发生了三起死亡事件,死亡现场离奇诡异,居然都是意外死亡,警方通过查阅死者的电脑和手机,发现死者居然都...
    沈念sama阅读 84,190评论 2 377
  • 文/潘晓璐 我一进店门,熙熙楼的掌柜王于贵愁眉苦脸地迎上来,“玉大人,你说我怎么就摊上这事。” “怎么了?”我有些...
    开封第一讲书人阅读 147,232评论 0 332
  • 文/不坏的土叔 我叫张陵,是天一观的道长。 经常有香客问我,道长,这世上最难降的妖魔是什么? 我笑而不...
    开封第一讲书人阅读 53,953评论 1 272
  • 正文 为了忘掉前任,我火速办了婚礼,结果婚礼上,老公的妹妹穿的比我还像新娘。我一直安慰自己,他们只是感情好,可当我...
    茶点故事阅读 62,879评论 5 360
  • 文/花漫 我一把揭开白布。 她就那样静静地躺着,像睡着了一般。 火红的嫁衣衬着肌肤如雪。 梳的纹丝不乱的头发上,一...
    开封第一讲书人阅读 48,177评论 1 277
  • 那天,我揣着相机与录音,去河边找鬼。 笑死,一个胖子当着我的面吹牛,可吹牛的内容都是我干的。 我是一名探鬼主播,决...
    沈念sama阅读 37,626评论 3 390
  • 文/苍兰香墨 我猛地睁开眼,长吁一口气:“原来是场噩梦啊……” “哼!你这毒妇竟也来了?” 一声冷哼从身侧响起,我...
    开封第一讲书人阅读 36,295评论 0 254
  • 序言:老挝万荣一对情侣失踪,失踪者是张志新(化名)和其女友刘颖,没想到半个月后,有当地人在树林里发现了一具尸体,经...
    沈念sama阅读 40,436评论 1 294
  • 正文 独居荒郊野岭守林人离奇死亡,尸身上长有42处带血的脓包…… 初始之章·张勋 以下内容为张勋视角 年9月15日...
    茶点故事阅读 35,365评论 2 317
  • 正文 我和宋清朗相恋三年,在试婚纱的时候发现自己被绿了。 大学时的朋友给我发了我未婚夫和他白月光在一起吃饭的照片。...
    茶点故事阅读 37,414评论 1 329
  • 序言:一个原本活蹦乱跳的男人离奇死亡,死状恐怖,灵堂内的尸体忽然破棺而出,到底是诈尸还是另有隐情,我是刑警宁泽,带...
    沈念sama阅读 33,096评论 3 315
  • 正文 年R本政府宣布,位于F岛的核电站,受9级特大地震影响,放射性物质发生泄漏。R本人自食恶果不足惜,却给世界环境...
    茶点故事阅读 38,685评论 3 303
  • 文/蒙蒙 一、第九天 我趴在偏房一处隐蔽的房顶上张望。 院中可真热闹,春花似锦、人声如沸。这庄子的主人今日做“春日...
    开封第一讲书人阅读 29,771评论 0 19
  • 文/苍兰香墨 我抬头看了看天上的太阳。三九已至,却和暖如春,着一层夹袄步出监牢的瞬间,已是汗流浃背。 一阵脚步声响...
    开封第一讲书人阅读 30,987评论 1 255
  • 我被黑心中介骗来泰国打工, 没想到刚下飞机就差点儿被人妖公主榨干…… 1. 我叫王不留,地道东北人。 一个月前我还...
    沈念sama阅读 42,438评论 2 346
  • 正文 我出身青楼,却偏偏与公主长得像,于是被迫代替她去往敌国和亲。 传闻我的和亲对象是个残疾皇子,可洞房花烛夜当晚...
    茶点故事阅读 42,032评论 2 341

推荐阅读更多精彩内容