fix: use sim camera intrinsics in viewer#1516
Merged
paul-nechifor merged 2 commits intodevfrom Mar 11, 2026
Merged
Conversation
Contributor
Greptile SummaryThis PR fixes a bug in simulation mode where the Rerun camera viewer rendered the image in the top-left corner due to mismatched camera intrinsics. The fix sets
Confidence Score: 3/5
Important Files Changed
Sequence DiagramsequenceDiagram
participant Init as GO2Connection.__init__
participant Conn as make_connection()
participant Mujoco as MujocoConnection
participant Thread as publish_camera_info thread
Init->>Conn: make_connection(ip, cfg)
Conn-->>Init: MujocoConnection (when simulation=True)
Init->>Mujoco: read camera_info_static
Mujoco-->>Init: CameraInfo (FOV-based intrinsics)
Init->>Init: self.camera_info_static = MujocoConnection.camera_info_static
Note over Init: For hardware mode, class default (_camera_info_static()) is kept
Init->>Thread: start daemon thread
loop every 1s
Thread->>Thread: publish(self.camera_info_static)
end
Last reviewed commit: d18eaba |
paul-nechifor
approved these changes
Mar 11, 2026
Contributor
|
amazing i was putting this off lol |
spomichter
added a commit
that referenced
this pull request
Mar 11, 2026
…nts (#1525) * feat: add Rerun split layout (Camera | 3D) to Go2 and G1 base blueprints Adds a horizontal split view (camera feed 1/3, 3D world 2/3) to the Rerun viewer for Go2 basic and G1 primitive blueprints, matching the existing drone blueprint pattern. All downstream blueprints inherit the layout automatically. * fix(g1): use MuJoCo computed camera intrinsics instead of hardcoded Go2 values Same fix as PR #1516 for Go2. G1 sim was using hardcoded 1280x720 Go2 real-camera intrinsics while MuJoCo renders at 320x240, causing the projected camera image to appear tiny in Rerun.
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
In simulation mode (Mujoco) the Rerun camera view rendered the image in the top-left corner instead of correctly. The
publish_camera_infoloop always fell back to the hardcoded Go2 camera intrinsics via_camera_info_static(), ignoring Mujoco's computed intrinsicsSolution
When running in sim,
self.camera_info_staticis set from the Mujoco connection's computed intrinsics.publish_camera_infonow simply publishesself.camera_info_staticdirectlyBreaking Changes
None
How to Test
dimos --simulation run unitree-go2Contributor License Agreement
Before&After

