用于编写机器人任务脚本的 XML Dialect
在我的下一个项目中,我将必须实施自动化解决方案来测试硬件设备。基本上,测试涉及工业机械臂拾取要测试的设备,将其保持在某个指定位置,然后使用一系列其他设备(例如电机和传感器)来测试要测试的产品的多个区域。
因此,我的测试自动化解决方案需要与多个控制器进行通信,要么发出驱动命令,要么从传感器获取信息。
我想到的第一个想法是用自定义 XML 语言定义每个控制器的步骤顺序。在这种语言中,我需要定义诸如“MOVE”、“IF”、“WAIT”、“SIGNAL”等原语。这些原语将用于定义每个控制器的操作脚本。每个控制器异步运行,但最终会同步,因此需要“等待”和“信号”之类的东西。
我在 google 上进行了基本搜索,唯一能找到的是非常旧的东西(我不需要遵守工业标准,这是一个小冒险)或为其他东西设计的 XML 方言。
问题是 - 您知道我可以使用什么 XML 标准来代替创建自己的标准吗?
编辑:我目前正在研究 NASA 的一种计划执行语言,看起来很有前途。名称为 PLEXIL。如果有人知道任何相关信息,请贡献自己的力量。
In my next project I will have to implement an automation solution to test a hardware device. basically, the test involves an industrial robotic arm picking a device to be tested, holding it at some specified position and then using a series of other devices like motors and sensors to exercise several areas of the product to be tested.
So my test automation solution will need to communicate with several controllers, either issuing actuation commands or getting information from sensors.
The first idea that comes to mind is to define the sequence of steps for each controller in a custom XML language. In this language I'd need to define primitives such as "MOVE", "IF", "WAIT", "SIGNAL" and etc. These primitives would be used to define the operation script for each controller. Each controller runs asynchronous but eventually gets synchronized, so that's the need for things like "WAIT" and "SIGNAL".
I did a basic search on google and the only thing I was able to find was really old stuff (I don't need to comply to industrial standards, it's a small venture) or XML dialects that were designed for something else.
Question is - do you know of any XML standard that I could use instead of creating my own?
EDIT: I'm currently investigating a plan execution language by NASA that looks promising. Name is PLEXIL. If anybody knows anything about it, please feel to contribute.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否复习过PARSL?它是一种基于 XML 的机器人脚本语言,包含传感器、循环和条件行为。
Have you reviewed PARSL? It's an XML based robotic scripting language which incorporates sensors, looping, and conditional behavior.
可以修改 XML 以创建您的“自己的标准”。您可以使用 DTD(文档类型定义)文件来定义事物。通过这种方式,您可以创建自己的 XML 外观。
DTD 是一个架构,其中包含您想要对 XML 文件施加的结构和约束。请查看维基百科上的此处了解更多信息。
希望这有帮助!
XML can be amended to create your 'own standard'. You can define things using a DTD (Document Type Definition) file. In this manner you can create your own way the XML has to look like.
The DTD is a schema that contains the structure and constraints you want to put on your XML file. Have a look here on wikipedia for more info.
Hope this is helpful!