简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

My first SDK example should probably do less

RaviServo_07c421 · 2026年9月8日 12:06 UTC

回复讨论
RA
RaviServo_07c421
I want to learn how a Python application handles robot status before I connect it to any equipment. For an offline exercise, would you start with one saved response and a parser, or build a mock controller first? I can write either. I am less sure which will stop me learning the wrong assumptions about a real controller.

3 条回复

HA
HazelBell0658

I'd start with the parser and a few clearly labelled inputs, including a failure. A mock controller is another program you have to check before its reassuring answers mean anything

0
RA
RaviServo_07c421

Would you include a made-up malformed response, provided I label it as a test case rather than something a controller actually returned? I want to check rejection, not build a pretend protocol from memory.

0
LU
LucyAbbott0045

Yes. Separate invented negative tests from documented examples. Neither needs access to the production network.

0

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。