【B-Human】 之SimRobot

主要将模拟器的使用: 提一些常用的命令, 完整详细的看文档.

新手入门必会3个调试指令(决策层调试命令):
直接列出四个命令,  内容详情及用法参考B-Human文档.
xo ,  xis ,  xos 


提高效率的操作(参考文档):
使用" Tab "键补全:
SimRobot的console pad 下可以像linux一样的使用Tab键补全. 这是非常方便的.  Tab键一次就选择下一个, 若想返回上一个, 使用Shift+Tab.   该操作可以大大提高你的效率.
使用" ? " 匹配字串,显示所含选项:
使用? 可以显示出该命令包含的所有选项. 如 xis ?    若不想显示全部, 只是想匹配前几个字母为aaa的, 则 使用 xis ? aaa 即可.
决策层调试指令" xo ":
在上面提到过. 若想在SimRobot中测试某一个option, 直接使用 xo <option>.  显示output symbols: xis <symbol>  显示input symbols: xos <symbol> 
使用" get " 显示出representation及module等的所有详细信息:
当你使用例如: get representation:MotionRequest, 敲下回车后, 就会出现诸如:
set representation:MotionRequest motion = stand; specialActionRequest = {specialAction = playDead; mirror = false;}; walkRequest = { mode = targetMode; speed = { rotation = 0; translation = {x = 0; y = 0;}; }; target = { rotation = 0; translation = {x = 0; y = 0;}; }; pedantic = false; dribbling = false; dribbleTarget = { target = {x = 0; y = 0;}; dribbleSpeed = {x = 0; y = 0;}; ballPosition = { rotation = 0; translation = {x = 0; y = 0;}; }; left = false; }; kickType = none; kickBallPosition = {x = 0; y = 0;}; kickTarget = {x = 0; y = 0;}; }; bikeRequest = {bMotionType = none; mirror = false; dynamical = false; ballSpecial = false; dynPoints = [];};
然后修改其中的参数, 就可以实时调整参数, 是不是很方便呢?

添加多个机器人并设置为不同队伍:
大家直接打开Scene文件夹下的.ros2文件,  对照着该文件里的语法格式增加减少机器人即可. 属于Robots这一类的是己方的. 若使用的是extra这一类的, 则为对手方的机器人.但是该compound体内的机器人不会有任何反应.

若想测试多个机器人, 则将多个机器人放在一个compound中. 
robot1 ~ robot4编号的机器人为同一个队伍, robot5 ~ robot8的机器人为同一个队伍. 

  • 1
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 4
    评论
The MRSim (Multi-Robot Simulator) is an extension of the Autonomous mobile robotics toolbox SIMROBOT (SIMulated ROBOTs) created for MatLab 5 in 2001. MRSim allows the user to simulate the behavior of multiple mobile robots in virtual environments. When compared to its predecessor SIMROBOT, MRSim presents two key contributions: 1) It is fitted to the new MatLab versions - Previously, users were unable to work with SIMROBOT functions since most of them were incompatible with the new MatLab versions. MatLab significantly evolved over the last 10 years, making SIMROBOT obsolete. In this extension, all features of SIMROBOT were updated and improved based on the new MatLab functions; 2)It is also fitted to suit multi-robot applications - although SIMROBOT was endowed with various interesting features for mobile robotics, it presented several limitations for multi-robot applications. Therefore, MRSim was created primarily to allow users to develop multi-robot applications, which would benefit working with some specific requirements such as multi-hop communication. Moreover, most of the functionalities in MRSim have an integrated help (which can be accessed just by typing help function) that allows to easily understand the dynamics of how to create and run simulations. In sum, just like SIMROBOT, each robot in MRSim can be equipped with several virtual sensors and can be driven by its own control algorithm. The toolbox includes two independent applications. The first one is the EDITOR (simedit), which allows the user to create and modify the virtual environment,to edit the control algorithms of robots, to load and save simulation, and others. The second application, SIMULATOR (simview), can be run directly from the EDITOR or separately from MatLab Command Window and serves as a simulation viewer. A MatLab help file is being currently created and will be add in the future.
评论 4
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值