hex-util-msg 0.1.0a3__tar.gz → 0.1.0a4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {hex_util_msg-0.1.0a3/hex_util_msg.egg-info → hex_util_msg-0.1.0a4}/PKG-INFO +8 -2
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/README.md +7 -1
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/dataclass/__init__.py +8 -0
- hex_util_msg-0.1.0a4/hex_util_msg/dataclass/dataclass_teleop.py +114 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_envelope/HexFbsMsgPayload.py +4 -0
- hex_util_msg-0.1.0a4/hex_util_msg/fbs/msg_teleop/HexFbsTeleopJoystickState.py +168 -0
- hex_util_msg-0.1.0a4/hex_util_msg/fbs/msg_teleop/HexFbsTeleopJoystickStateStamped.py +48 -0
- hex_util_msg-0.1.0a4/hex_util_msg/fbs/msg_teleop/HexFbsTeleopKeyboardState.py +232 -0
- hex_util_msg-0.1.0a4/hex_util_msg/fbs/msg_teleop/HexFbsTeleopKeyboardStateStamped.py +48 -0
- hex_util_msg-0.1.0a4/hex_util_msg/fbs/msg_teleop/__init__.py +19 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/trans/__init__.py +16 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/trans/hex_msg_trans.py +34 -0
- hex_util_msg-0.1.0a4/hex_util_msg/trans/trans_teleop.py +378 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4/hex_util_msg.egg-info}/PKG-INFO +8 -2
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg.egg-info/SOURCES.txt +4 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/pyproject.toml +1 -1
- hex_util_msg-0.1.0a4/tests/test_msg_teleop.py +275 -0
- hex_util_msg-0.1.0a3/hex_util_msg/dataclass/dataclass_teleop.py +0 -48
- hex_util_msg-0.1.0a3/hex_util_msg/fbs/msg_teleop/__init__.py +0 -11
- hex_util_msg-0.1.0a3/hex_util_msg/trans/trans_teleop.py +0 -156
- hex_util_msg-0.1.0a3/tests/test_msg_teleop.py +0 -125
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/LICENSE +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/MANIFEST.in +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/__init__.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/dataclass/dataclass_base.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/dataclass/dataclass_robo.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseHeader.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseJntFull.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseJntState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseOdometry.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBasePose.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseQuaternion.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseTime.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseTwist.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/HexFbsBaseVector3.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_base/__init__.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_envelope/HexFbsMsgEnvelope.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_envelope/__init__.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboArmCtrl.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboArmCtrlMode.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboArmCtrlStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboArmState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboArmStateStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboChsCtrl.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboChsCtrlMode.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboChsCtrlStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboChsState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboChsStateStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboGripCtrl.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboGripCtrlMode.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboGripCtrlStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboGripState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboGripStateStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboLiftCtrl.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboLiftCtrlMode.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboLiftCtrlStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboLiftState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboLiftStateStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboManipCtrl.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboManipCtrlStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboManipState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/HexFbsRoboManipStateStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_robo/__init__.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_teleop/HexFbsTeleopHandleCtrl.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_teleop/HexFbsTeleopHandleCtrlStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_teleop/HexFbsTeleopHandleState.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_teleop/HexFbsTeleopHandleStateStamped.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/trans/trans_base.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/trans/trans_robo.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg.egg-info/dependency_links.txt +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg.egg-info/requires.txt +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg.egg-info/top_level.txt +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/setup.cfg +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/tests/test_hex_msg_trans.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/tests/test_hex_util_msg_imports.py +0 -0
- {hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/tests/test_msg_robo.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hex_util_msg
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.0a4
|
|
4
4
|
Summary: HEXFELLOW Util Message
|
|
5
5
|
Author-email: Dong Zhaorui <dzr159@gmail.com>
|
|
6
6
|
Maintainer-email: jecjune <zejun.chen@hexfellow.com>, Dong Zhaorui <dzr159@gmail.com>
|
|
@@ -59,7 +59,7 @@ The library consists of three layers:
|
|
|
59
59
|
|
|
60
60
|
| Layer | Subpackage | Purpose |
|
|
61
61
|
|-------|-----------|---------|
|
|
62
|
-
| **Dataclass** | `hex_util_msg.dataclass` | Type-safe Python `@dataclass` objects for all
|
|
62
|
+
| **Dataclass** | `hex_util_msg.dataclass` | Type-safe Python `@dataclass` objects for all 32 message types (base geometry, robot arm/chassis/grip/lift/manip, teleoperation handle/joystick/keyboard) — classes use `HexDc*` naming |
|
|
63
63
|
| **Converters** | `hex_util_msg.trans` | Bidirectional `dc2fbs` / `fbs2dc` functions plus the `HexMsgTrans` high-level envelope-based dispatcher — FBS classes use `HexFbs*` naming |
|
|
64
64
|
| **FlatBuffers** | `hex_util_msg.fbs` | Auto-generated FlatBuffers Python bindings for 4 namespaces (`msg_base`, `msg_robo`, `msg_teleop`, `msg_envelope`) |
|
|
65
65
|
|
|
@@ -73,6 +73,8 @@ The library consists of three layers:
|
|
|
73
73
|
| **Lift** | Vertical lift | `Ctrl` / `State` (each with `Stamped` variant) |
|
|
74
74
|
| **Manip** | Composite arm+grip | `Ctrl` / `State` (each with `Stamped` variant) |
|
|
75
75
|
| **Teleop** | Teleoperation handle | `HandleCtrl` / `HandleState` (each with `Stamped` variant) |
|
|
76
|
+
| **Joystick** | Teleoperation joystick | `JoystickState` / `JoystickStateStamped` |
|
|
77
|
+
| **Keyboard** | Teleoperation keyboard | `KeyboardState` / `KeyboardStateStamped` |
|
|
76
78
|
| **Base** | Geometry & time | `Vector3`, `Quaternion`, `Pose`, `Twist`, `Time`, `Header`, `Odometry`, `JntState`, `JntFull` |
|
|
77
79
|
|
|
78
80
|
## What problem it solves
|
|
@@ -119,6 +121,10 @@ hex_util_msg/
|
|
|
119
121
|
│ ├── robo_lift_*.fbs # 4 files
|
|
120
122
|
│ ├── robo_manip_*.fbs # 4 files
|
|
121
123
|
│ └── teleop_handle_*.fbs # 4 files
|
|
124
|
+
│ ├── teleop_joystick_state.fbs
|
|
125
|
+
│ ├── teleop_joystick_state_stamped.fbs
|
|
126
|
+
│ ├── teleop_keyboard_state.fbs
|
|
127
|
+
│ └── teleop_keyboard_state_stamped.fbs
|
|
122
128
|
├── docs/
|
|
123
129
|
│ └── api.md # Full API reference
|
|
124
130
|
├── tests/ # pytest test suite
|
|
@@ -29,7 +29,7 @@ The library consists of three layers:
|
|
|
29
29
|
|
|
30
30
|
| Layer | Subpackage | Purpose |
|
|
31
31
|
|-------|-----------|---------|
|
|
32
|
-
| **Dataclass** | `hex_util_msg.dataclass` | Type-safe Python `@dataclass` objects for all
|
|
32
|
+
| **Dataclass** | `hex_util_msg.dataclass` | Type-safe Python `@dataclass` objects for all 32 message types (base geometry, robot arm/chassis/grip/lift/manip, teleoperation handle/joystick/keyboard) — classes use `HexDc*` naming |
|
|
33
33
|
| **Converters** | `hex_util_msg.trans` | Bidirectional `dc2fbs` / `fbs2dc` functions plus the `HexMsgTrans` high-level envelope-based dispatcher — FBS classes use `HexFbs*` naming |
|
|
34
34
|
| **FlatBuffers** | `hex_util_msg.fbs` | Auto-generated FlatBuffers Python bindings for 4 namespaces (`msg_base`, `msg_robo`, `msg_teleop`, `msg_envelope`) |
|
|
35
35
|
|
|
@@ -43,6 +43,8 @@ The library consists of three layers:
|
|
|
43
43
|
| **Lift** | Vertical lift | `Ctrl` / `State` (each with `Stamped` variant) |
|
|
44
44
|
| **Manip** | Composite arm+grip | `Ctrl` / `State` (each with `Stamped` variant) |
|
|
45
45
|
| **Teleop** | Teleoperation handle | `HandleCtrl` / `HandleState` (each with `Stamped` variant) |
|
|
46
|
+
| **Joystick** | Teleoperation joystick | `JoystickState` / `JoystickStateStamped` |
|
|
47
|
+
| **Keyboard** | Teleoperation keyboard | `KeyboardState` / `KeyboardStateStamped` |
|
|
46
48
|
| **Base** | Geometry & time | `Vector3`, `Quaternion`, `Pose`, `Twist`, `Time`, `Header`, `Odometry`, `JntState`, `JntFull` |
|
|
47
49
|
|
|
48
50
|
## What problem it solves
|
|
@@ -89,6 +91,10 @@ hex_util_msg/
|
|
|
89
91
|
│ ├── robo_lift_*.fbs # 4 files
|
|
90
92
|
│ ├── robo_manip_*.fbs # 4 files
|
|
91
93
|
│ └── teleop_handle_*.fbs # 4 files
|
|
94
|
+
│ ├── teleop_joystick_state.fbs
|
|
95
|
+
│ ├── teleop_joystick_state_stamped.fbs
|
|
96
|
+
│ ├── teleop_keyboard_state.fbs
|
|
97
|
+
│ └── teleop_keyboard_state_stamped.fbs
|
|
92
98
|
├── docs/
|
|
93
99
|
│ └── api.md # Full API reference
|
|
94
100
|
├── tests/ # pytest test suite
|
|
@@ -48,6 +48,10 @@ from .dataclass_teleop import (
|
|
|
48
48
|
HexDcTeleopHandleCtrlStamped,
|
|
49
49
|
HexDcTeleopHandleState,
|
|
50
50
|
HexDcTeleopHandleStateStamped,
|
|
51
|
+
HexDcTeleopJoystickState,
|
|
52
|
+
HexDcTeleopJoystickStateStamped,
|
|
53
|
+
HexDcTeleopKeyboardState,
|
|
54
|
+
HexDcTeleopKeyboardStateStamped,
|
|
51
55
|
)
|
|
52
56
|
|
|
53
57
|
__all__ = [
|
|
@@ -95,4 +99,8 @@ __all__ = [
|
|
|
95
99
|
"HexDcTeleopHandleCtrlStamped",
|
|
96
100
|
"HexDcTeleopHandleState",
|
|
97
101
|
"HexDcTeleopHandleStateStamped",
|
|
102
|
+
"HexDcTeleopJoystickState",
|
|
103
|
+
"HexDcTeleopJoystickStateStamped",
|
|
104
|
+
"HexDcTeleopKeyboardState",
|
|
105
|
+
"HexDcTeleopKeyboardStateStamped",
|
|
98
106
|
]
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
# -*- coding:utf-8 -*-
|
|
3
|
+
################################################################
|
|
4
|
+
# Copyright 2026 Dong Zhaorui. All rights reserved.
|
|
5
|
+
# Author: Dong Zhaorui 847235539@qq.com
|
|
6
|
+
# Date : 2026-06-11
|
|
7
|
+
################################################################
|
|
8
|
+
|
|
9
|
+
from dataclasses import dataclass, field
|
|
10
|
+
|
|
11
|
+
import numpy as np
|
|
12
|
+
|
|
13
|
+
from .dataclass_base import HexDcBaseHeader
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@dataclass
|
|
17
|
+
class HexDcTeleopHandleCtrl:
|
|
18
|
+
led_red: np.ndarray = field(
|
|
19
|
+
default_factory=lambda: np.array([], dtype=np.uint8))
|
|
20
|
+
led_green: np.ndarray = field(
|
|
21
|
+
default_factory=lambda: np.array([], dtype=np.uint8))
|
|
22
|
+
led_blue: np.ndarray = field(
|
|
23
|
+
default_factory=lambda: np.array([], dtype=np.uint8))
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
@dataclass
|
|
27
|
+
class HexDcTeleopHandleState:
|
|
28
|
+
trigger: float = 0.0
|
|
29
|
+
axis_x: float = 0.0
|
|
30
|
+
axis_y: float = 0.0
|
|
31
|
+
btn_w: bool = False
|
|
32
|
+
btn_x: bool = False
|
|
33
|
+
btn_y: bool = False
|
|
34
|
+
btn_z: bool = False
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
@dataclass
|
|
38
|
+
class HexDcTeleopHandleCtrlStamped:
|
|
39
|
+
header: HexDcBaseHeader = field(default_factory=HexDcBaseHeader)
|
|
40
|
+
handle_ctrl: HexDcTeleopHandleCtrl = field(
|
|
41
|
+
default_factory=HexDcTeleopHandleCtrl)
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
@dataclass
|
|
45
|
+
class HexDcTeleopHandleStateStamped:
|
|
46
|
+
header: HexDcBaseHeader = field(default_factory=HexDcBaseHeader)
|
|
47
|
+
handle_state: HexDcTeleopHandleState = field(
|
|
48
|
+
default_factory=HexDcTeleopHandleState)
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
@dataclass
|
|
52
|
+
class HexDcTeleopJoystickState:
|
|
53
|
+
btn_x: bool = False
|
|
54
|
+
btn_y: bool = False
|
|
55
|
+
btn_a: bool = False
|
|
56
|
+
btn_b: bool = False
|
|
57
|
+
btn_lb: bool = False
|
|
58
|
+
btn_rb: bool = False
|
|
59
|
+
btn_lt: bool = False
|
|
60
|
+
btn_rt: bool = False
|
|
61
|
+
btn_lthumb: bool = False
|
|
62
|
+
btn_rthumb: bool = False
|
|
63
|
+
axis_lx: float = 0.0
|
|
64
|
+
axis_ly: float = 0.0
|
|
65
|
+
axis_rx: float = 0.0
|
|
66
|
+
axis_ry: float = 0.0
|
|
67
|
+
axis_lt: float = 0.0
|
|
68
|
+
axis_rt: float = 0.0
|
|
69
|
+
hat_x: float = 0.0
|
|
70
|
+
hat_y: float = 0.0
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
@dataclass
|
|
74
|
+
class HexDcTeleopJoystickStateStamped:
|
|
75
|
+
header: HexDcBaseHeader = field(default_factory=HexDcBaseHeader)
|
|
76
|
+
joystick_state: HexDcTeleopJoystickState = field(
|
|
77
|
+
default_factory=HexDcTeleopJoystickState)
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
@dataclass
|
|
81
|
+
class HexDcTeleopKeyboardState:
|
|
82
|
+
key_a: bool = False
|
|
83
|
+
key_b: bool = False
|
|
84
|
+
key_c: bool = False
|
|
85
|
+
key_d: bool = False
|
|
86
|
+
key_e: bool = False
|
|
87
|
+
key_f: bool = False
|
|
88
|
+
key_g: bool = False
|
|
89
|
+
key_h: bool = False
|
|
90
|
+
key_i: bool = False
|
|
91
|
+
key_j: bool = False
|
|
92
|
+
key_k: bool = False
|
|
93
|
+
key_l: bool = False
|
|
94
|
+
key_m: bool = False
|
|
95
|
+
key_n: bool = False
|
|
96
|
+
key_o: bool = False
|
|
97
|
+
key_p: bool = False
|
|
98
|
+
key_q: bool = False
|
|
99
|
+
key_r: bool = False
|
|
100
|
+
key_s: bool = False
|
|
101
|
+
key_t: bool = False
|
|
102
|
+
key_u: bool = False
|
|
103
|
+
key_v: bool = False
|
|
104
|
+
key_w: bool = False
|
|
105
|
+
key_x: bool = False
|
|
106
|
+
key_y: bool = False
|
|
107
|
+
key_z: bool = False
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
@dataclass
|
|
111
|
+
class HexDcTeleopKeyboardStateStamped:
|
|
112
|
+
header: HexDcBaseHeader = field(default_factory=HexDcBaseHeader)
|
|
113
|
+
keyboard_state: HexDcTeleopKeyboardState = field(
|
|
114
|
+
default_factory=HexDcTeleopKeyboardState)
|
{hex_util_msg-0.1.0a3 → hex_util_msg-0.1.0a4}/hex_util_msg/fbs/msg_envelope/HexFbsMsgPayload.py
RENAMED
|
@@ -32,4 +32,8 @@ class HexFbsMsgPayload(object):
|
|
|
32
32
|
msg_teleop_HexFbsTeleopHandleState = 26
|
|
33
33
|
msg_teleop_HexFbsTeleopHandleCtrlStamped = 27
|
|
34
34
|
msg_teleop_HexFbsTeleopHandleStateStamped = 28
|
|
35
|
+
msg_teleop_HexFbsTeleopJoystickState = 29
|
|
36
|
+
msg_teleop_HexFbsTeleopJoystickStateStamped = 30
|
|
37
|
+
msg_teleop_HexFbsTeleopKeyboardState = 31
|
|
38
|
+
msg_teleop_HexFbsTeleopKeyboardStateStamped = 32
|
|
35
39
|
|
|
@@ -0,0 +1,168 @@
|
|
|
1
|
+
# automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
# namespace: msg_teleop
|
|
4
|
+
|
|
5
|
+
import flatbuffers
|
|
6
|
+
from flatbuffers.compat import import_numpy
|
|
7
|
+
np = import_numpy()
|
|
8
|
+
|
|
9
|
+
class HexFbsTeleopJoystickState(object):
|
|
10
|
+
__slots__ = ['_tab']
|
|
11
|
+
|
|
12
|
+
@classmethod
|
|
13
|
+
def GetRootAsHexFbsTeleopJoystickState(cls, buf, offset):
|
|
14
|
+
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
15
|
+
x = HexFbsTeleopJoystickState()
|
|
16
|
+
x.Init(buf, n + offset)
|
|
17
|
+
return x
|
|
18
|
+
|
|
19
|
+
# HexFbsTeleopJoystickState
|
|
20
|
+
def Init(self, buf, pos):
|
|
21
|
+
self._tab = flatbuffers.table.Table(buf, pos)
|
|
22
|
+
|
|
23
|
+
# HexFbsTeleopJoystickState
|
|
24
|
+
def BtnX(self):
|
|
25
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
26
|
+
if o != 0:
|
|
27
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
28
|
+
return False
|
|
29
|
+
|
|
30
|
+
# HexFbsTeleopJoystickState
|
|
31
|
+
def BtnY(self):
|
|
32
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
33
|
+
if o != 0:
|
|
34
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
35
|
+
return False
|
|
36
|
+
|
|
37
|
+
# HexFbsTeleopJoystickState
|
|
38
|
+
def BtnA(self):
|
|
39
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
40
|
+
if o != 0:
|
|
41
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
42
|
+
return False
|
|
43
|
+
|
|
44
|
+
# HexFbsTeleopJoystickState
|
|
45
|
+
def BtnB(self):
|
|
46
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
47
|
+
if o != 0:
|
|
48
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
49
|
+
return False
|
|
50
|
+
|
|
51
|
+
# HexFbsTeleopJoystickState
|
|
52
|
+
def BtnLb(self):
|
|
53
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
54
|
+
if o != 0:
|
|
55
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
56
|
+
return False
|
|
57
|
+
|
|
58
|
+
# HexFbsTeleopJoystickState
|
|
59
|
+
def BtnRb(self):
|
|
60
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
61
|
+
if o != 0:
|
|
62
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
63
|
+
return False
|
|
64
|
+
|
|
65
|
+
# HexFbsTeleopJoystickState
|
|
66
|
+
def BtnLt(self):
|
|
67
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
68
|
+
if o != 0:
|
|
69
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
70
|
+
return False
|
|
71
|
+
|
|
72
|
+
# HexFbsTeleopJoystickState
|
|
73
|
+
def BtnRt(self):
|
|
74
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
|
|
75
|
+
if o != 0:
|
|
76
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
77
|
+
return False
|
|
78
|
+
|
|
79
|
+
# HexFbsTeleopJoystickState
|
|
80
|
+
def BtnLthumb(self):
|
|
81
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
82
|
+
if o != 0:
|
|
83
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
84
|
+
return False
|
|
85
|
+
|
|
86
|
+
# HexFbsTeleopJoystickState
|
|
87
|
+
def BtnRthumb(self):
|
|
88
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
|
|
89
|
+
if o != 0:
|
|
90
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
# HexFbsTeleopJoystickState
|
|
94
|
+
def AxisLx(self):
|
|
95
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(24))
|
|
96
|
+
if o != 0:
|
|
97
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
98
|
+
return 0.0
|
|
99
|
+
|
|
100
|
+
# HexFbsTeleopJoystickState
|
|
101
|
+
def AxisLy(self):
|
|
102
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(26))
|
|
103
|
+
if o != 0:
|
|
104
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
105
|
+
return 0.0
|
|
106
|
+
|
|
107
|
+
# HexFbsTeleopJoystickState
|
|
108
|
+
def AxisRx(self):
|
|
109
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(28))
|
|
110
|
+
if o != 0:
|
|
111
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
112
|
+
return 0.0
|
|
113
|
+
|
|
114
|
+
# HexFbsTeleopJoystickState
|
|
115
|
+
def AxisRy(self):
|
|
116
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
|
|
117
|
+
if o != 0:
|
|
118
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
119
|
+
return 0.0
|
|
120
|
+
|
|
121
|
+
# HexFbsTeleopJoystickState
|
|
122
|
+
def AxisLt(self):
|
|
123
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(32))
|
|
124
|
+
if o != 0:
|
|
125
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
126
|
+
return 0.0
|
|
127
|
+
|
|
128
|
+
# HexFbsTeleopJoystickState
|
|
129
|
+
def AxisRt(self):
|
|
130
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(34))
|
|
131
|
+
if o != 0:
|
|
132
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
133
|
+
return 0.0
|
|
134
|
+
|
|
135
|
+
# HexFbsTeleopJoystickState
|
|
136
|
+
def HatX(self):
|
|
137
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(36))
|
|
138
|
+
if o != 0:
|
|
139
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
140
|
+
return 0.0
|
|
141
|
+
|
|
142
|
+
# HexFbsTeleopJoystickState
|
|
143
|
+
def HatY(self):
|
|
144
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(38))
|
|
145
|
+
if o != 0:
|
|
146
|
+
return self._tab.Get(flatbuffers.number_types.Float64Flags, o + self._tab.Pos)
|
|
147
|
+
return 0.0
|
|
148
|
+
|
|
149
|
+
def HexFbsTeleopJoystickStateStart(builder): builder.StartObject(18)
|
|
150
|
+
def HexFbsTeleopJoystickStateAddBtnX(builder, btnX): builder.PrependBoolSlot(0, btnX, 0)
|
|
151
|
+
def HexFbsTeleopJoystickStateAddBtnY(builder, btnY): builder.PrependBoolSlot(1, btnY, 0)
|
|
152
|
+
def HexFbsTeleopJoystickStateAddBtnA(builder, btnA): builder.PrependBoolSlot(2, btnA, 0)
|
|
153
|
+
def HexFbsTeleopJoystickStateAddBtnB(builder, btnB): builder.PrependBoolSlot(3, btnB, 0)
|
|
154
|
+
def HexFbsTeleopJoystickStateAddBtnLb(builder, btnLb): builder.PrependBoolSlot(4, btnLb, 0)
|
|
155
|
+
def HexFbsTeleopJoystickStateAddBtnRb(builder, btnRb): builder.PrependBoolSlot(5, btnRb, 0)
|
|
156
|
+
def HexFbsTeleopJoystickStateAddBtnLt(builder, btnLt): builder.PrependBoolSlot(6, btnLt, 0)
|
|
157
|
+
def HexFbsTeleopJoystickStateAddBtnRt(builder, btnRt): builder.PrependBoolSlot(7, btnRt, 0)
|
|
158
|
+
def HexFbsTeleopJoystickStateAddBtnLthumb(builder, btnLthumb): builder.PrependBoolSlot(8, btnLthumb, 0)
|
|
159
|
+
def HexFbsTeleopJoystickStateAddBtnRthumb(builder, btnRthumb): builder.PrependBoolSlot(9, btnRthumb, 0)
|
|
160
|
+
def HexFbsTeleopJoystickStateAddAxisLx(builder, axisLx): builder.PrependFloat64Slot(10, axisLx, 0.0)
|
|
161
|
+
def HexFbsTeleopJoystickStateAddAxisLy(builder, axisLy): builder.PrependFloat64Slot(11, axisLy, 0.0)
|
|
162
|
+
def HexFbsTeleopJoystickStateAddAxisRx(builder, axisRx): builder.PrependFloat64Slot(12, axisRx, 0.0)
|
|
163
|
+
def HexFbsTeleopJoystickStateAddAxisRy(builder, axisRy): builder.PrependFloat64Slot(13, axisRy, 0.0)
|
|
164
|
+
def HexFbsTeleopJoystickStateAddAxisLt(builder, axisLt): builder.PrependFloat64Slot(14, axisLt, 0.0)
|
|
165
|
+
def HexFbsTeleopJoystickStateAddAxisRt(builder, axisRt): builder.PrependFloat64Slot(15, axisRt, 0.0)
|
|
166
|
+
def HexFbsTeleopJoystickStateAddHatX(builder, hatX): builder.PrependFloat64Slot(16, hatX, 0.0)
|
|
167
|
+
def HexFbsTeleopJoystickStateAddHatY(builder, hatY): builder.PrependFloat64Slot(17, hatY, 0.0)
|
|
168
|
+
def HexFbsTeleopJoystickStateEnd(builder): return builder.EndObject()
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
# automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
# namespace: msg_teleop
|
|
4
|
+
|
|
5
|
+
import flatbuffers
|
|
6
|
+
from flatbuffers.compat import import_numpy
|
|
7
|
+
np = import_numpy()
|
|
8
|
+
|
|
9
|
+
class HexFbsTeleopJoystickStateStamped(object):
|
|
10
|
+
__slots__ = ['_tab']
|
|
11
|
+
|
|
12
|
+
@classmethod
|
|
13
|
+
def GetRootAsHexFbsTeleopJoystickStateStamped(cls, buf, offset):
|
|
14
|
+
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
15
|
+
x = HexFbsTeleopJoystickStateStamped()
|
|
16
|
+
x.Init(buf, n + offset)
|
|
17
|
+
return x
|
|
18
|
+
|
|
19
|
+
# HexFbsTeleopJoystickStateStamped
|
|
20
|
+
def Init(self, buf, pos):
|
|
21
|
+
self._tab = flatbuffers.table.Table(buf, pos)
|
|
22
|
+
|
|
23
|
+
# HexFbsTeleopJoystickStateStamped
|
|
24
|
+
def Header(self):
|
|
25
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
26
|
+
if o != 0:
|
|
27
|
+
x = self._tab.Indirect(o + self._tab.Pos)
|
|
28
|
+
from msg_base.HexFbsBaseHeader import HexFbsBaseHeader
|
|
29
|
+
obj = HexFbsBaseHeader()
|
|
30
|
+
obj.Init(self._tab.Bytes, x)
|
|
31
|
+
return obj
|
|
32
|
+
return None
|
|
33
|
+
|
|
34
|
+
# HexFbsTeleopJoystickStateStamped
|
|
35
|
+
def JoystickState(self):
|
|
36
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
37
|
+
if o != 0:
|
|
38
|
+
x = self._tab.Indirect(o + self._tab.Pos)
|
|
39
|
+
from msg_teleop.HexFbsTeleopJoystickState import HexFbsTeleopJoystickState
|
|
40
|
+
obj = HexFbsTeleopJoystickState()
|
|
41
|
+
obj.Init(self._tab.Bytes, x)
|
|
42
|
+
return obj
|
|
43
|
+
return None
|
|
44
|
+
|
|
45
|
+
def HexFbsTeleopJoystickStateStampedStart(builder): builder.StartObject(2)
|
|
46
|
+
def HexFbsTeleopJoystickStateStampedAddHeader(builder, header): builder.PrependUOffsetTRelativeSlot(0, flatbuffers.number_types.UOffsetTFlags.py_type(header), 0)
|
|
47
|
+
def HexFbsTeleopJoystickStateStampedAddJoystickState(builder, joystickState): builder.PrependUOffsetTRelativeSlot(1, flatbuffers.number_types.UOffsetTFlags.py_type(joystickState), 0)
|
|
48
|
+
def HexFbsTeleopJoystickStateStampedEnd(builder): return builder.EndObject()
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# automatically generated by the FlatBuffers compiler, do not modify
|
|
2
|
+
|
|
3
|
+
# namespace: msg_teleop
|
|
4
|
+
|
|
5
|
+
import flatbuffers
|
|
6
|
+
from flatbuffers.compat import import_numpy
|
|
7
|
+
np = import_numpy()
|
|
8
|
+
|
|
9
|
+
class HexFbsTeleopKeyboardState(object):
|
|
10
|
+
__slots__ = ['_tab']
|
|
11
|
+
|
|
12
|
+
@classmethod
|
|
13
|
+
def GetRootAsHexFbsTeleopKeyboardState(cls, buf, offset):
|
|
14
|
+
n = flatbuffers.encode.Get(flatbuffers.packer.uoffset, buf, offset)
|
|
15
|
+
x = HexFbsTeleopKeyboardState()
|
|
16
|
+
x.Init(buf, n + offset)
|
|
17
|
+
return x
|
|
18
|
+
|
|
19
|
+
# HexFbsTeleopKeyboardState
|
|
20
|
+
def Init(self, buf, pos):
|
|
21
|
+
self._tab = flatbuffers.table.Table(buf, pos)
|
|
22
|
+
|
|
23
|
+
# HexFbsTeleopKeyboardState
|
|
24
|
+
def KeyA(self):
|
|
25
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(4))
|
|
26
|
+
if o != 0:
|
|
27
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
28
|
+
return False
|
|
29
|
+
|
|
30
|
+
# HexFbsTeleopKeyboardState
|
|
31
|
+
def KeyB(self):
|
|
32
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(6))
|
|
33
|
+
if o != 0:
|
|
34
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
35
|
+
return False
|
|
36
|
+
|
|
37
|
+
# HexFbsTeleopKeyboardState
|
|
38
|
+
def KeyC(self):
|
|
39
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(8))
|
|
40
|
+
if o != 0:
|
|
41
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
42
|
+
return False
|
|
43
|
+
|
|
44
|
+
# HexFbsTeleopKeyboardState
|
|
45
|
+
def KeyD(self):
|
|
46
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(10))
|
|
47
|
+
if o != 0:
|
|
48
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
49
|
+
return False
|
|
50
|
+
|
|
51
|
+
# HexFbsTeleopKeyboardState
|
|
52
|
+
def KeyE(self):
|
|
53
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(12))
|
|
54
|
+
if o != 0:
|
|
55
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
56
|
+
return False
|
|
57
|
+
|
|
58
|
+
# HexFbsTeleopKeyboardState
|
|
59
|
+
def KeyF(self):
|
|
60
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(14))
|
|
61
|
+
if o != 0:
|
|
62
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
63
|
+
return False
|
|
64
|
+
|
|
65
|
+
# HexFbsTeleopKeyboardState
|
|
66
|
+
def KeyG(self):
|
|
67
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(16))
|
|
68
|
+
if o != 0:
|
|
69
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
70
|
+
return False
|
|
71
|
+
|
|
72
|
+
# HexFbsTeleopKeyboardState
|
|
73
|
+
def KeyH(self):
|
|
74
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(18))
|
|
75
|
+
if o != 0:
|
|
76
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
77
|
+
return False
|
|
78
|
+
|
|
79
|
+
# HexFbsTeleopKeyboardState
|
|
80
|
+
def KeyI(self):
|
|
81
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(20))
|
|
82
|
+
if o != 0:
|
|
83
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
84
|
+
return False
|
|
85
|
+
|
|
86
|
+
# HexFbsTeleopKeyboardState
|
|
87
|
+
def KeyJ(self):
|
|
88
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(22))
|
|
89
|
+
if o != 0:
|
|
90
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
91
|
+
return False
|
|
92
|
+
|
|
93
|
+
# HexFbsTeleopKeyboardState
|
|
94
|
+
def KeyK(self):
|
|
95
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(24))
|
|
96
|
+
if o != 0:
|
|
97
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
98
|
+
return False
|
|
99
|
+
|
|
100
|
+
# HexFbsTeleopKeyboardState
|
|
101
|
+
def KeyL(self):
|
|
102
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(26))
|
|
103
|
+
if o != 0:
|
|
104
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
105
|
+
return False
|
|
106
|
+
|
|
107
|
+
# HexFbsTeleopKeyboardState
|
|
108
|
+
def KeyM(self):
|
|
109
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(28))
|
|
110
|
+
if o != 0:
|
|
111
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
112
|
+
return False
|
|
113
|
+
|
|
114
|
+
# HexFbsTeleopKeyboardState
|
|
115
|
+
def KeyN(self):
|
|
116
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(30))
|
|
117
|
+
if o != 0:
|
|
118
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
119
|
+
return False
|
|
120
|
+
|
|
121
|
+
# HexFbsTeleopKeyboardState
|
|
122
|
+
def KeyO(self):
|
|
123
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(32))
|
|
124
|
+
if o != 0:
|
|
125
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
126
|
+
return False
|
|
127
|
+
|
|
128
|
+
# HexFbsTeleopKeyboardState
|
|
129
|
+
def KeyP(self):
|
|
130
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(34))
|
|
131
|
+
if o != 0:
|
|
132
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
133
|
+
return False
|
|
134
|
+
|
|
135
|
+
# HexFbsTeleopKeyboardState
|
|
136
|
+
def KeyQ(self):
|
|
137
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(36))
|
|
138
|
+
if o != 0:
|
|
139
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
140
|
+
return False
|
|
141
|
+
|
|
142
|
+
# HexFbsTeleopKeyboardState
|
|
143
|
+
def KeyR(self):
|
|
144
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(38))
|
|
145
|
+
if o != 0:
|
|
146
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
147
|
+
return False
|
|
148
|
+
|
|
149
|
+
# HexFbsTeleopKeyboardState
|
|
150
|
+
def KeyS(self):
|
|
151
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(40))
|
|
152
|
+
if o != 0:
|
|
153
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
154
|
+
return False
|
|
155
|
+
|
|
156
|
+
# HexFbsTeleopKeyboardState
|
|
157
|
+
def KeyT(self):
|
|
158
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(42))
|
|
159
|
+
if o != 0:
|
|
160
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
161
|
+
return False
|
|
162
|
+
|
|
163
|
+
# HexFbsTeleopKeyboardState
|
|
164
|
+
def KeyU(self):
|
|
165
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(44))
|
|
166
|
+
if o != 0:
|
|
167
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
168
|
+
return False
|
|
169
|
+
|
|
170
|
+
# HexFbsTeleopKeyboardState
|
|
171
|
+
def KeyV(self):
|
|
172
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(46))
|
|
173
|
+
if o != 0:
|
|
174
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
175
|
+
return False
|
|
176
|
+
|
|
177
|
+
# HexFbsTeleopKeyboardState
|
|
178
|
+
def KeyW(self):
|
|
179
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(48))
|
|
180
|
+
if o != 0:
|
|
181
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
182
|
+
return False
|
|
183
|
+
|
|
184
|
+
# HexFbsTeleopKeyboardState
|
|
185
|
+
def KeyX(self):
|
|
186
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(50))
|
|
187
|
+
if o != 0:
|
|
188
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
189
|
+
return False
|
|
190
|
+
|
|
191
|
+
# HexFbsTeleopKeyboardState
|
|
192
|
+
def KeyY(self):
|
|
193
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(52))
|
|
194
|
+
if o != 0:
|
|
195
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
196
|
+
return False
|
|
197
|
+
|
|
198
|
+
# HexFbsTeleopKeyboardState
|
|
199
|
+
def KeyZ(self):
|
|
200
|
+
o = flatbuffers.number_types.UOffsetTFlags.py_type(self._tab.Offset(54))
|
|
201
|
+
if o != 0:
|
|
202
|
+
return bool(self._tab.Get(flatbuffers.number_types.BoolFlags, o + self._tab.Pos))
|
|
203
|
+
return False
|
|
204
|
+
|
|
205
|
+
def HexFbsTeleopKeyboardStateStart(builder): builder.StartObject(26)
|
|
206
|
+
def HexFbsTeleopKeyboardStateAddKeyA(builder, keyA): builder.PrependBoolSlot(0, keyA, 0)
|
|
207
|
+
def HexFbsTeleopKeyboardStateAddKeyB(builder, keyB): builder.PrependBoolSlot(1, keyB, 0)
|
|
208
|
+
def HexFbsTeleopKeyboardStateAddKeyC(builder, keyC): builder.PrependBoolSlot(2, keyC, 0)
|
|
209
|
+
def HexFbsTeleopKeyboardStateAddKeyD(builder, keyD): builder.PrependBoolSlot(3, keyD, 0)
|
|
210
|
+
def HexFbsTeleopKeyboardStateAddKeyE(builder, keyE): builder.PrependBoolSlot(4, keyE, 0)
|
|
211
|
+
def HexFbsTeleopKeyboardStateAddKeyF(builder, keyF): builder.PrependBoolSlot(5, keyF, 0)
|
|
212
|
+
def HexFbsTeleopKeyboardStateAddKeyG(builder, keyG): builder.PrependBoolSlot(6, keyG, 0)
|
|
213
|
+
def HexFbsTeleopKeyboardStateAddKeyH(builder, keyH): builder.PrependBoolSlot(7, keyH, 0)
|
|
214
|
+
def HexFbsTeleopKeyboardStateAddKeyI(builder, keyI): builder.PrependBoolSlot(8, keyI, 0)
|
|
215
|
+
def HexFbsTeleopKeyboardStateAddKeyJ(builder, keyJ): builder.PrependBoolSlot(9, keyJ, 0)
|
|
216
|
+
def HexFbsTeleopKeyboardStateAddKeyK(builder, keyK): builder.PrependBoolSlot(10, keyK, 0)
|
|
217
|
+
def HexFbsTeleopKeyboardStateAddKeyL(builder, keyL): builder.PrependBoolSlot(11, keyL, 0)
|
|
218
|
+
def HexFbsTeleopKeyboardStateAddKeyM(builder, keyM): builder.PrependBoolSlot(12, keyM, 0)
|
|
219
|
+
def HexFbsTeleopKeyboardStateAddKeyN(builder, keyN): builder.PrependBoolSlot(13, keyN, 0)
|
|
220
|
+
def HexFbsTeleopKeyboardStateAddKeyO(builder, keyO): builder.PrependBoolSlot(14, keyO, 0)
|
|
221
|
+
def HexFbsTeleopKeyboardStateAddKeyP(builder, keyP): builder.PrependBoolSlot(15, keyP, 0)
|
|
222
|
+
def HexFbsTeleopKeyboardStateAddKeyQ(builder, keyQ): builder.PrependBoolSlot(16, keyQ, 0)
|
|
223
|
+
def HexFbsTeleopKeyboardStateAddKeyR(builder, keyR): builder.PrependBoolSlot(17, keyR, 0)
|
|
224
|
+
def HexFbsTeleopKeyboardStateAddKeyS(builder, keyS): builder.PrependBoolSlot(18, keyS, 0)
|
|
225
|
+
def HexFbsTeleopKeyboardStateAddKeyT(builder, keyT): builder.PrependBoolSlot(19, keyT, 0)
|
|
226
|
+
def HexFbsTeleopKeyboardStateAddKeyU(builder, keyU): builder.PrependBoolSlot(20, keyU, 0)
|
|
227
|
+
def HexFbsTeleopKeyboardStateAddKeyV(builder, keyV): builder.PrependBoolSlot(21, keyV, 0)
|
|
228
|
+
def HexFbsTeleopKeyboardStateAddKeyW(builder, keyW): builder.PrependBoolSlot(22, keyW, 0)
|
|
229
|
+
def HexFbsTeleopKeyboardStateAddKeyX(builder, keyX): builder.PrependBoolSlot(23, keyX, 0)
|
|
230
|
+
def HexFbsTeleopKeyboardStateAddKeyY(builder, keyY): builder.PrependBoolSlot(24, keyY, 0)
|
|
231
|
+
def HexFbsTeleopKeyboardStateAddKeyZ(builder, keyZ): builder.PrependBoolSlot(25, keyZ, 0)
|
|
232
|
+
def HexFbsTeleopKeyboardStateEnd(builder): return builder.EndObject()
|