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

-1 to 1 action space meaning #208

Open
zcase opened this issue Apr 26, 2024 · 1 comment
Open

-1 to 1 action space meaning #208

zcase opened this issue Apr 26, 2024 · 1 comment
Labels
question Further information is requested

Comments

@zcase
Copy link

zcase commented Apr 26, 2024

@JacopoPan when doing the action space from -1 to 1 while training and RL model, does this mean that the drone is in 3D mode and that the values between -1 to 0 mean that the rotors are spinning in reverse for their position and 0 to 1 mean they are spinning in the normal rotation for its position? Does that question make sense? if not let me know and I'll restate.

@JacopoPan JacopoPan added the question Further information is requested label Apr 26, 2024
@JacopoPan
Copy link
Member

The thrust on the motors is always positive: the negative values are below the thrust necessary to hover (1/4 the gravity on the drone), the positive values are above, see this line:

rpm[k,:] = np.array(self.HOVER_RPM * (1+0.05*target))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants