Skip to content

Conversation

@xinpw8
Copy link
Contributor

@xinpw8 xinpw8 commented Jan 9, 2026

Commit 941198f ("Contextualize cartpole") moved physics parameters from #define constants to struct fields but did not update cartpole.c to initialize them; local compilation gets nans when run.

Added designated initializers for the physics parameters to remedy.

Commit 941198f ("Contextualize cartpole") moved physics parameters from
#define constants to struct fields for Python configurability, but did
not update cartpole.c to initialize them. This broke the standalone demo
with division-by-zero / NaN errors.

Initialize physics parameters using designated initializers, consistent
with other ocean environments like pong.c.
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