Closed AminSeffo closed 5 months ago
The environment passed by initial_info["env"]
is already wrapped in an lsy_drone_racing.wrapper.DroneRacingObservationWrapper
, so the observations you get from the environment should be the same as for the DroneRacingWrapper
. Therefore, you should not wrap it again. I will add runtime checks to the wrappers to make sure nothing is wrapped multiple times.
Also, I think you don't need to pass the environment to PPO.load(...)
in case you just want to roll out the policy.
Hi @amacati ,
thanks for your help. I tried with PPO.load(...)
and it seems to work.
Hi Martin @amacati
When trying to run
python scripts/sim.py --controller examples/ppo_controller.py
on "felix-testing" branch, I get:I cant reproduce why FirmwareWrapper has no NUM_GATES attribute and I think it comes from:
https://github.com/FelixWaiblinger/lsy_drone_racing/blob/bf5c24a610ee813c44bfb2b135a2e170c7bfa2d7/lsy_drone_racing/wrapper.py#L82