What problem does it solve?
This Skill helps you connect PHX rigid-body physics scenes to Simulink so you can exchange control inputs and simulation outputs without manually managing the underlying simulation engine.
Core Features & Use Cases
- Property-Driven Ports: Bind Simulink signals to readable and settable properties of named PHX objects, including positions, orientations, velocities, forces, energy, springs, and joints.
- Co-Simulation Configuration: Configure the PHX scene source, sample time, substeps, viewer, camera, rendered-image output, and port references for closed-loop models.
- Validation and Debugging: Validate object names and property references, avoid unsupported method ports, prevent algebraic loops, and diagnose kinematic-body timing and substep issues.
- Event-Based Actions: Use the PHX Action block for runtime spawning, removal, reparenting, force application, and other occasional imperative operations.
- Use Case: Build a fixed-step Simulink controller that tilts a PHX plate, reads the positions of simulated balls, and feeds the controller output back through a Memory block.
Quick Start
Use the phx-simulink skill to configure a PHX physical simulation block with a scene source, named-object input and output references, a fixed-step sample time, and a safe feedback-loop design.