-
Notifications
You must be signed in to change notification settings - Fork 316
Dimos Unity Simulator #1539
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
jeff-hykin
wants to merge
46
commits into
dev
Choose a base branch
from
jeff/feat/untiy_sim
base: dev
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,402
−7
Open
Dimos Unity Simulator #1539
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
d4040f2
better native module debugging
jeff-hykin c581f9c
add unity sim, part 1
jeff-hykin e135fa2
clean up
jeff-hykin c3cf3e6
cleaning
jeff-hykin d511bf9
improve binary downloading (google drive)
jeff-hykin d335685
feat(unity-sim): use LFS for sim binary, remove Google Drive download
jeff-hykin 23e81f5
Module config tweaks (#1510)
Dreamsorcerer 8ff7377
chore(comments): remove section markers (#1546)
paul-nechifor c89ee5b
fix(imports): remove dunder init (#1545)
paul-nechifor 1ec4227
fix(deps): skip pyrealsense2 on macOS (#1556)
jeff-hykin b3177fd
Feat/memory2 (#1536)
leshy e6267e1
docs(readme): add Trendshift trending badge (#1563)
spomichter 9486a90
fix(ci): limit tests to 60 minutes max (#1557)
paul-nechifor 3a5f000
fix(old-scripts): remove (#1561)
paul-nechifor ab081c1
docs: add Spec issue template (#1574)
spomichter e95e0d7
feat(patrol): add patrolling module (#1488)
paul-nechifor 3afde01
fix: rename teleop blueprints, remove VisualizingTeleopModule (#1602)
ruthwikdasyam c6f1842
feat(test): add leaderboard (#1580)
paul-nechifor bdd06d4
fix(florence): fix text failure (#1582)
paul-nechifor b9cca6c
event based sub callback collector for tests (#1605)
leshy cb648f5
refactor: split control blueprints + added env variables (#1601)
ruthwikdasyam cdac06e
- (#1610)
jeff-hykin c8a7b7d
fix(cli): fix `dimos --help` (both bad imports and speed) (#1571)
jeff-hykin dc331b7
chore(blueprints): remove aliases (#1606)
paul-nechifor 53a2fce
Merge branch 'main' into dev
spomichter 1924b61
Feature: go2 webrtc TwistBase adapter for control coordinator (#1362)
mustafab0 349fc0b
merge: resolve all_blueprints.py conflict with dev
jeff-hykin c24c51c
data: add sim assets for xArm6 and Piper (#1642)
ruthwikdasyam bb16ea2
fix(unity-sim): use RerunBridgeModule.blueprint() after rerun_bridge …
jeff-hykin 885b729
fix: update all_blueprints.py to include unity-bridge-module
jeff-hykin fe46e82
Merge remote-tracking branch 'origin/dev' into jeff/feat/untiy_sim
jeff-hykin 49c5142
merge: pull latest dev
jeff-hykin 0fe29f0
fix: remove @dataclass from UnityBridgeConfig (Pydantic compat), clea…
jeff-hykin 7e69093
MuJoCo sim support for Manipulation (#1639)
ruthwikdasyam 645cb0d
fix: address greptile review comments
jeff-hykin 5d461c6
fix: address all paul-review issues on unity simulator
jeff-hykin fc65956
Merge remote-tracking branch 'origin/dev' into jeff/feat/untiy_sim
jeff-hykin d12407a
Merge remote-tracking branch 'origin/dev' into jeff/feat/untiy_sim
jeff-hykin 002a419
fix: resolve merge conflicts + address Paul's review comments
jeff-hykin 182cf28
refactor: remove unnecessary __getstate__/__setstate__ from UnityBrid…
jeff-hykin 9b609bd
fix(unity): launch Unity in thread to avoid blocking start()
jeff-hykin 47d99da
fix(unity): pipe Unity stderr to logger instead of discarding
jeff-hykin 9f0f7b9
fix(unity): clear _unity_ready on disconnect
jeff-hykin 258b0cc
test: remove pickle test (follows __getstate__/__setstate__ removal)
jeff-hykin 66e1819
fix(unity): thread safety for _unity_process and stderr drain
jeff-hykin d6bf9fb
fix(lfs): repack unity_sim_x86 tarball with correct directory name
jeff-hykin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
Git LFS file not shown
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
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
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| # Copyright 2026 Dimensional Inc. | ||
| # | ||
| # Licensed under the Apache License, Version 2.0 (the "License"); | ||
| # you may not use this file except in compliance with the License. | ||
| # You may obtain a copy of the License at | ||
| # | ||
| # http://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # Unless required by applicable law or agreed to in writing, software | ||
| # distributed under the License is distributed on an "AS IS" BASIS, | ||
| # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
| # See the License for the specific language governing permissions and | ||
| # limitations under the License. | ||
|
|
||
| """Standalone Unity sim blueprint — interactive test of the Unity bridge. | ||
|
|
||
| Launches the Unity simulator, displays lidar + camera in Rerun, and accepts | ||
| keyboard teleop via TUI. No navigation stack — just raw sim data. | ||
|
|
||
| Usage: | ||
| dimos run unity-sim | ||
| """ | ||
|
|
||
| from __future__ import annotations | ||
|
|
||
| from typing import Any | ||
|
|
||
| from dimos.core.blueprints import autoconnect | ||
| from dimos.protocol.pubsub.impl.lcmpubsub import LCM | ||
| from dimos.simulation.unity.module import UnityBridgeModule | ||
| from dimos.visualization.rerun.bridge import RerunBridgeModule, _resolve_viewer_mode | ||
|
|
||
|
|
||
| def _rerun_blueprint() -> Any: | ||
| import rerun.blueprint as rrb | ||
|
|
||
| return rrb.Blueprint( | ||
| rrb.Vertical( | ||
| rrb.Spatial3DView(origin="world", name="3D"), | ||
| rrb.Spatial2DView(origin="world/color_image", name="Camera"), | ||
| row_shares=[2, 1], | ||
| ), | ||
| ) | ||
|
|
||
|
|
||
| rerun_config = { | ||
| "blueprint": _rerun_blueprint, | ||
| "pubsubs": [LCM()], | ||
| "visual_override": { | ||
| "world/camera_info": UnityBridgeModule.rerun_suppress_camera_info, | ||
| }, | ||
| "static": { | ||
| "world/color_image": UnityBridgeModule.rerun_static_pinhole, | ||
| }, | ||
| } | ||
|
|
||
|
|
||
| unity_sim = autoconnect( | ||
| UnityBridgeModule.blueprint(), | ||
| RerunBridgeModule.blueprint(viewer_mode=_resolve_viewer_mode(), **rerun_config), | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes to native modules here cause I'm testing the unity sim with the livox native modules and got VERY undescriptive error messages