Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] KF and KM values displayed as 0 in BaseAviary.__init__() output - Solution Included #238

Open
Ajilforoushan opened this issue Sep 2, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@Ajilforoushan
Copy link

When initializing the CtrlAviary environment, the values for kf and km are displayed as 0 in the terminal output, despite being correctly parsed from the URDF file.

Solution:

Modify the print statement in BaseAviary.init() to use a scientific notation format ({:e}) for kf and km:

Use scientific notation ({:e}) in the print statement to correctly display the values:

Modify the print statement in BaseAviary.init() to use scientific notation for kf and km:

print("[INFO] ... kf {:e}, km {:e}, ...".format(self.KF, self.KM, ...))

Exact Location of the Code:

In class BaseAviary(gym.Env), within the initialization method:

Load the drone properties from the .urdf file

...
self.DW_COEFF_3 = self._parseURDFParameters()
print("[INFO] BaseAviary.init() loaded parameters from the drone's .urdf:\n[INFO] ...

@JacopoPan JacopoPan added the enhancement New feature or request label Oct 10, 2024
@JacopoPan
Copy link
Member

hello @Ajilforoushan

thank you for pointing this out, please feel free to open a PR for this fix and I will test/merge it asap

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants