kompass.ui_elements#

Browser UI elements for Kompass types (augment Sugarcoat UI elements)

Module Contents#

Classes#

MissionTask

The card of a mission: how far it has got, waypoint by waypoint.

API#

class kompass.ui_elements.MissionTask(name: str, client_type: str, fields)#

Bases: ros_sugar.ui_node.elements.Task

The card of a mission: how far it has got, waypoint by waypoint.

The card an action client gets shows its feedback as a log of messages. A mission’s feedback says which waypoint it is on and what it is doing there, which is worth a checklist of the journey instead.

update(*, status=None, feedback=None, duration=None, timestep=None)#

Keep the mission’s progress, and tell the log what moved on.

Feedback arrives several times a second and mostly says the same thing. What belongs in a log is what changed: a waypoint reached, the next one started, a wait begun, the mission over

cleanup()#

A new mission starts with a clean card

property card#

The journey, what can be done to it, the log, and where the next mission is put together