context
Context
dataclass
#
Server context class recording variables using in multiple namespaces.
Attributes:
Name | Type | Description |
---|---|---|
robot_id |
int | None
|
Robot ID |
planner_sid |
str | None
|
Planner sid |
copilot_sid |
str | None
|
Copilot sid |
detector_sid |
str | None
|
Detector sid |
robotcam_sid |
str | None
|
Robotcam sid |
beacon_sid |
str | None
|
Beacon server sid |
monitor_sid |
str | None
|
Monitor sid |
tool_menus |
dict[str, ShellMenu]
|
all registered tool menus |
current_tool_menu |
str | None
|
name of the currently selected tool menu |
shell_menu |
ShellMenu | None
|
last received shell menu |
virtual |
Whether robot is virtual or not |
Source code in cogip/tools/server/context.py
8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
|