Repository navigation
Add mouse-interaction plugin hook to ManagerBasedRlEnv - #10
Merged
Merged
Conversation
Expose `SceneCfg.mouse_interaction` (default False) and, when enabled together with `scene.vis`, attach `GeneLabMouseInteractionPlugin` before `scene.build()` so the raycaster sees the fully constructed rigid solver. The subclass squeezes the leading length-1 batch dim from Genesis' new batched link APIs so the upstream spring-force math keeps working at `num_envs=1`.
5 of 7 tasks
KraHsu
added a commit
that referenced
this pull request
May 15, 2026
Add mouse-interaction plugin hook to ManagerBasedRlEnv
KraHsu
added a commit
that referenced
this pull request
Jun 5, 2026
Add mouse-interaction plugin hook to ManagerBasedRlEnv
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.
Summary
SceneCfg.mouse_interaction(defaultFalse). When enabled together withscene.vis,ManagerBasedRlEnvattachesGeneLabMouseInteractionPluginbeforescene.build()so the raycaster sees the fully constructed rigid solver — post-build registration deadlocks the sim/viewer loop in some Genesis builds.genelab.sim.mouse_interaction.GeneLabMouseInteractionPlugin, a subclass of Genesis 0.4.6'sMouseInteractionPluginthat squeezes the leading length-1 batch dim from the new batched link APIs (get_pos/get_quat/get_vel/get_ang) so the upstream spring-force math keeps working atnum_envs=1.Test plan
uv run ruff checkuv run ruff format --checkuv run pyrightuv run pytestuv run mkdocs build --strictplaywithscene.mouse_interaction=True(covered by the inverted-pendulum example PR that follows this one).🤖 Generated with Claude Code