mcx-lab/rl-baselines3-zoo

Hover example not working

Closed this issue · 1 comments

To reproduce:

python hover_robot.py --record

# output
pybullet build time: Oct 21 2021 16:47:03
usage: hover_robot.py [-h] [-i INPUT_FOLDER]
hover_robot.py: error: unrecognized arguments: --record

This was due to importing Plotter from scripts/plot_stats.py which had its own argument parser.
Fixed by enclosing that script in a if __name__ == "__main__" block