Port shared types to solver/datagen/types.py #1
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Move shared data types from
data/synthetic/pebble-game.pyintosolver/datagen/types.py.Classes to port
JointTypeenum (L42-63) — CAD joint types with DOF-removal countsRigidBodydataclass (L72-81) — body with position, orientation, local anchorsJointdataclass (L85-99) — joint connecting two bodies with type, anchors, axis, pitchPebbleStatedataclass (L103-122) — pebble game internal state trackingConstraintAnalysisdataclass (L911-930) — combined analysis resultsRequirements
__all__export listnumpy,enum,dataclasses,typingNotes
PebbleStateis internal to the pebble game but including it here avoids circular imports.ConstraintAnalysisis the public-facing result type used by both the pebble game analysis and training data generation.