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

Bodyrates and cumulative thrust as input for vec_env.step #201

Open
somsomers opened this issue Feb 7, 2024 · 0 comments
Open

Bodyrates and cumulative thrust as input for vec_env.step #201

somsomers opened this issue Feb 7, 2024 · 0 comments

Comments

@somsomers
Copy link

Hello.

Could you please clarify how to use Flightmare with bodyrates+cumulative thrust instead of single motos thrusts?
I've created cmd_.omega matrix, disabled cmd_.thusts initialization so it runs runFlightCtl
const Vector<4> motor_thrusts_des = cmd_.isSingleRotorThrusts() ? cmd_.thrusts : runFlightCtl(sim_dt, state_.w, cmd_);

But the drone goes crazy even if I pass stable values each step, equal bodyrates and constant cumulative thrust(value range is like the one from "control_command" ROS topic, for example 0.01, 0.01, 0.01 and 9.1).

What am I doing wrong?

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

No branches or pull requests

1 participant