Skip to content

Add default parameters for self.masscart and self.masspole to the constructor in CartPoleEnv#3317

Open
roha913 wants to merge 1 commit intoopenai:masterfrom
roha913:patch-2
Open

Add default parameters for self.masscart and self.masspole to the constructor in CartPoleEnv#3317
roha913 wants to merge 1 commit intoopenai:masterfrom
roha913:patch-2

Conversation

@roha913
Copy link

@roha913 roha913 commented May 19, 2025

Add default parameters for self.masscart and self.masspole to the constructor in CartPoleEnv. The parameters are for the mass of the cart and mass in the pole, so people can change them if they want.

Type of change

  • New feature (non-breaking change which adds functionality)
  • This change requires a documentation update

Screenshots

image
image

Checklist:

  • I have run the pre-commit checks with pre-commit run --all-files (see CONTRIBUTING.md instructions to set it up)
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

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