Add connection and teleop support for Booster T1#2842
Open
lichenbo wants to merge 1 commit into
Open
Conversation
Contributor
Greptile SummaryThis PR adds native Booster B1 locomotion and keyboard teleop support. The main changes are:
Confidence Score: 4/5The teleop path needs a fix before merging.
dimos/robot/booster/b1/cpp/main.cpp Important Files Changed
Flowchart%%{init: {'theme': 'neutral'}}%%
flowchart TD
A[KeyboardTeleop publishes cmd_vel] --> B[Native LCM cmd_vel handler]
B --> C{Walking mode enabled?}
C -- No --> D{vx > 0?}
D -- Yes --> E[Switch to walking]
D -- No --> F[Drop command]
C -- Yes --> G[Send clipped Move command]
G --> H[Watchdog sends zero after timeout]
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
A[KeyboardTeleop publishes cmd_vel] --> B[Native LCM cmd_vel handler]
B --> C{Walking mode enabled?}
C -- No --> D{vx > 0?}
D -- Yes --> E[Switch to walking]
D -- No --> F[Drop command]
C -- Yes --> G[Send clipped Move command]
G --> H[Watchdog sends zero after timeout]
Reviews (1): Last reviewed commit: "Add connection and teleop support for Bo..." | Re-trigger Greptile |
Codecov Report❌ Patch coverage is
@@ Coverage Diff @@
## main #2842 +/- ##
==========================================
- Coverage 72.21% 71.93% -0.29%
==========================================
Files 1001 1004 +3
Lines 89755 89836 +81
Branches 8196 8197 +1
==========================================
- Hits 64818 64623 -195
- Misses 22718 23014 +296
+ Partials 2219 2199 -20
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 23 files with indirect coverage changes 🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
dimOS does not currently provide a native locomotion connection or teleoperation blueprint for the Booster T1. This prevents Booster velocity commands from being sent through the standard dimOS
cmd_velstream.Closes DIM-1050
Solution
Add native Booster B1 locomotion and keyboard teleoperation support:
NativeModule.booster-b1-keyboard-teleopblueprint.The native C++ integration avoids requiring the Booster Python SDK.
How to Test
Run on a Booster B1 connected through the selected network interface:
Run the automated tests:
uv run pytest dimos/robot/booster/b1/test_connection.py -v
Hardware locomotion is not exercised by the automated tests.