Hover example not working
Closed this issue · 1 comments
dtch1997 commented
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
dtch1997 commented
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