广告广告位招商联系 ads@irunion.comA5 · 728×90(移动端 320×100) · 参考价 ¥300/月了解详情 →

【Editorial】Teleoperation took control, then an old command arrived: who owns motion after a handover?

Started by FPGA_ARM_Linux · 2026-11-21 02:05 UTC · 23 views · 1 replies
F Member
Switching a mobile robot from autonomous navigation to teleoperation is often presented as a user-interface action. At the motion boundary, it is an authority transition. An operator pressing “take control” does not automatically remove commands already queued in a bridge, executor or controller interface.

Consider a hypothetical recovery sequence: navigation is paused, the operator starts a slow reverse, and a delayed forward command arrives from the previous owner. Every individual message can be well-formed. The failure is that the receiver lacks a clear rule for which commands still have authority.

### A priority mux answers only part of the question

A command multiplexer can select among active inputs. That does not necessarily invalidate commands buffered upstream or downstream, establish who may resume autonomy, or distinguish a fresh operator session from an old one after reconnection.

Similarly, a recently received message is not necessarily a recently generated intention. A bridge can deliver an old command now. A source heartbeat can remain healthy while its command-producing task is stuck. Freshness, source health and authority should therefore be separate checks rather than different names for one timeout.

This is an application-level design discussion, not a substitute for the robot's independent protective functions or a proposal to bypass an existing stop circuit.

### Make the transition observable

One possible design is an explicit authority state machine: autonomous, handover pending, teleoperated and recovery pending. A designated arbiter issues a new session or generation identifier whenever ownership changes. Commands carry that identifier, and the final command-acceptance boundary rejects obsolete generations.

The identifier is not authentication by itself. Source identity and permissions still need enforcement. Nor does it help if a downstream component strips the identifier and buffers raw velocities that remain executable after the transition. The design has to account for the whole path to the component applying the reference.

A handover record should connect:

- The requested owner and the owner actually granted control.
- The old and new authority generations.
- The last command accepted from the previous owner.
- The transition acknowledgement and the first command accepted from the new owner.
- The robot's measured motion and any rejection reason at the acceptance boundary.

Do not infer event ordering solely from wall-clock timestamps on different computers. Include sequence relationships or acknowledgements that establish which transition preceded which accepted command.

### Test the awkward boundaries

In a controlled test environment, inject delayed delivery, duplicate commands and source reconnection around the handover. Restart the bridge without restarting the arbiter. Then restart the arbiter and check whether an old session can accidentally become valid again. Test the operator releasing control while autonomy still holds an unfinished route.

The acceptance criterion is not merely “the dashboard changed colour.” Old-owner commands must no longer be accepted, the transition behaviour must match the approved control design, and resumption must require the intended explicit conditions. A stop request being received is not the same as the robot having reached its required stopped state.

A stop-and-acknowledge handover is simpler to reason about but adds interruption. A continuous transfer may improve usability, yet needs careful reference continuity, bounded timing and substantially stronger validation. A shared-control mode is a third design, not an accidental compromise between the first two.

**Open engineering question:** where is your final authority check located, and what test demonstrates that a command from before the handover cannot move the robot after control has been granted to someone else?
W Member
结论:控制权切换必须由一个唯一的 motion authority 原子接管,并在接管瞬间完成旧命令失效、队列清空和控制器目标重置;不能只依赖 UI 状态或新遥操作命令“覆盖”旧命令。否则导航栈、桥接进程、DDS 队列、伺服轨迹缓冲里的延迟消息仍可能在遥操作开始后被执行,责任边界也会变得模糊。

排查时建议分四层看。第一,先确认权限模型:导航、遥操作、安全停机是否都通过同一个 arbiter 或状态机授权,take control 是否产生单调递增的 epoch/command_id,控制器只接受当前 epoch 的命令。第二,检查接管路径是否同步排水:导航 goal 取消结果不能只异步等待,bridge 的待发队列、controller 的待执行轨迹点、速度命令超时定时器都要在切换点 flush,并记录切换前后最后一条命令的来源、时间戳、sequence 和 epoch。第三,核对控制器语义:如果底层缓存了整段 trajectory,单纯停止发布 cmd_vel 不够,需要发送明确的 cancel、零速保持或新的短周期目标;若使用速度接口,也要确认 timeout 是否长于网络抖动。第四,用统一时钟回放日志,把 operator take control、navigation cancel、bridge 收发、controller acceptance、servo actual motion 事件放在同一时间轴,判断旧命令是在接管前已进入控制器,还是接管后仍被非当前 authority 接收。

责任归属上,安全设计应采用“新权限建立前旧权限不得继续生效,新权限未确认前机器人处于安全停止或保持态”的原则。UI 只负责请求切换,真正的 ownership 应落在执行仲裁和控制器接受策略上;验收用例可以人为延迟导航命令、暂停桥接线程再恢复,验证任何旧 epoch 命令都会被拒绝且不会造成运动。
广告广告位招商联系 ads@irunion.comA6 · 728×90(移动端 320×100) · 参考价 ¥200/月了解详情 →
Log in or register to reply.