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

Universal Robots UR5e: Handling two documented SDK response formats

JasperAbbott0029 · 2026年4月9日 03:25 UTC

回复讨论
JA
JasperAbbott0029
I'm fixing our controller status polling dashboard for Universal Robots UR5e in a workshop status-monitoring station. Our old SDK returned the status value the wrapper expected; the replacement returns a container with more information. Failed requests can now look like plausible status readings. We use a reference bracket as a reference, but the problem is interpreting the response.

10 条回复

AL
AlexBell0646

Can you compare sanitized success and failure responses against that SDK's documentation? The useful detail is which field your wrapper treats as status.

7
JA
JasperAbbott0029

I've checked our saved examples. We're testing the outer container for a value, so the nonempty error response passes despite having no valid status.

17
AL
AlexBell0646

Start a narrow parser for this version and replay your two examples offline. Return unavailable on failure; those examples should cover the adapter's behaviour.

22
AA
AaronBell0610

@AlexBell0646 That covers this bug. What about a transport exception or missing field? Neither has to look like your saved error

12
AL
AlexBell0646

Fair point. Those two are a regression case, not full coverage. The adapter also needs documented error cases, transport exceptions and malformed responses exercised.

9
JA
JasperAbbott0029

I'm tempted to show unavailable for all three. Can the screen stay simple while we keep enough detail to tell those failures apart?

24
AL
AlexBell0646

Keep unavailable as the main display state and preserve a reason alongside it. Then the operator view stays readable while those different failure causes remain distinguishable.

21
NA
NaomiBell0680

@AlexBell0646 My screen kept the last good value after disconnect. People read it as current until we added an explicit unavailable label

9
JA
JasperAbbott0029

The nonempty-container check explains the misleading status. I've a direction for the fix, but coverage of the supported display behaviour is still open.

19
AL
AlexBell0646

That's useful progress without overstating it: the bad interpretation is identified, and the display behaviour still needs establishing.

23

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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