Skip to content

Compact collisions - #16

Merged
zkingston merged 2 commits into
masterfrom
compact-collisions
Nov 23, 2026
Merged

zkingston merged 2 commits into
masterfrom
compact-collisions

Conversation

@ShrutheeshIR

Copy link
Copy Markdown
Contributor
  • The default codegen unrolls every self-collision and environment-collision check into straight-line code, which increases compile times significantly.
  • Make them constexpr tables

@ShrutheeshIR
ShrutheeshIR added this pull request to stack #18 November 7, 2026 19:55
ShrutheeshIR and others added 2 commits November 23, 2026 10:07
Recipe flag `compact_collisions` (C++ template): emit the self- and environment-collision
checks as constant index tables walked by a loop, instead of unrolling every check into
straight-line code. The generated header is much smaller and compiles faster, with the same
collision results.

Recipe flag `skip_static_environment_collisions`: do not check links that no mobile joint
connects to the world against the environment; self-collision checks are unaffected.

RobotInfo::json adds `environment_links`, the `compact_*` tables and `sphere_env_skip`. With
neither flag set the generated code is unchanged.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zkingston
zkingston merged commit f3042a8 into master Nov 23, 2026
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.

2 participants