gym-pybullet-drones
gym-pybullet-drones copied to clipboard
Problems while training using SAC, DDPG and TD3
I have this problem when I use TD3, SAC or DDPG, how can I fix it? The scene is FlyThruGateAviary.
\myDrones\venv\lib\site-packages\stable_baselines3\common\policies.py:366: RuntimeWarning: invalid value encountered in divide
return 2.0 * ((action - low) / (high - low)) - 1.0
\myDrones2\gym_pybullet_drones\control\DSLPIDControl.py:195: UserWarning: Gimbal lock detected. Setting third angle to zero since it is not possible to uniquely determine all angles.
target_euler = (Rotation.from_matrix(target_rotation)).as_euler('XYZ', degrees=False)
Traceback (most recent call last):
File "\myDrones2\testlearn.py", line 53, in quat.
@zhengtiantian
what you posted is an error in scipy.spatial.transform thrown by an invalid quaternion but I am not sure how you got there.
You seem to be running testlearn.py which is something you adapted from the original code?
@zhengtiantian
what you posted is an error in
scipy.spatial.transformthrown by an invalid quaternion but I am not sure how you got there. You seem to be runningtestlearn.pywhich is something you adapted from the original code?
Yes, I changed env to FlyThruGateAviary
@zhengtiantian
I'd love to help and get to the bottom of this but this looks like a value error in scipy: to understand why it appears you need to at least share (1) some info about your system (os, python interpreter, related packages versions, etc.), (2) what you tired that worked (installation, basic scripts), (3) what you changed that started raising the error (so that I can replicate it). Ideally with terminal line instructions, actual code, and terminal output.