Skip to content

Add mouse-interaction plugin hook to ManagerBasedRlEnv - #10

Merged
KraHsu merged 1 commit into
mainfrom
feat/mouse-interaction
May 14, 2026
Merged

KraHsu merged 1 commit into
mainfrom
feat/mouse-interaction

Conversation

@KraHsu

@KraHsu KraHsu commented May 14, 2026

Copy link
Copy Markdown
Owner

Summary

  • Expose SceneCfg.mouse_interaction (default False). When enabled together with scene.vis, ManagerBasedRlEnv attaches GeneLabMouseInteractionPlugin before scene.build() so the raycaster sees the fully constructed rigid solver — post-build registration deadlocks the sim/viewer loop in some Genesis builds.
  • Add genelab.sim.mouse_interaction.GeneLabMouseInteractionPlugin, a subclass of Genesis 0.4.6's MouseInteractionPlugin that 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 at num_envs=1.

Test plan

  • uv run ruff check
  • uv run ruff format --check
  • uv run pyright
  • uv run pytest
  • uv run mkdocs build --strict
  • Manual: drive play with scene.mouse_interaction=True (covered by the inverted-pendulum example PR that follows this one).

🤖 Generated with Claude Code

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`.
@KraHsu
KraHsu merged commit bf94d63 into main May 14, 2026
3 checks passed
@KraHsu KraHsu mentioned this pull request May 14, 2026
5 of 7 tasks
@KraHsu
KraHsu deleted the feat/mouse-interaction branch May 14, 2026 08:51
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant