English | 中文
Games and examples built for RoboMaster EP with RoboMasterPy.
RoboMasterPy Playground requires Python 3.6 and above.
# optional, suggested
virtualenv venv
# Python 3.6.x
pip install -r requirements-py36.txt
# Python 3.7 and above
pip install -r requirements.txt
Live video stream is displayed on your screen.
$ python drive.py --help
Usage: drive.py [OPTIONS]
Options:
--ip TEXT (Optional) IP of Robomaster EP
--timeout FLOAT (Optional) Timeout for commands
--help Show this message and exit.
Key bindings:
W
, A
, S
, D
: forward, leftward, backward, rightward;space bar
: blaster fireup
, down
: gimbal pitch up, gimbal pitch downleft
, right
: chassis roll left, chassis roll right1
~5
: gearsYou need tweak GREEN_LOWER
and GREEN_UPPER
per your luminance to get good experience. The default values works okay under daylight shade.
$ python goalkeeper.py --help
Usage: goalkeeper.py [OPTIONS]
Options:
--ip TEXT (Optional) IP of Robomaster EP
--timeout FLOAT (Optional) Timeout for commands
--max-width FLOAT (Optional) Field width
--max-depth FLOAT (Optional) Field depth
--xy-speed FLOAT (Optional) Speed in x and y direction
--z-speed FLOAT (Optional) Speed in z direction(chassis roll)
--help Show this message and exit.
https://robomasterpy.nanmu.me/
Documentation is generously hosted by Read the Docs.
RoboMasterPy Playground is a fan work, and it has no concern with DJI.
DJI, RoboMaster are trademarks of SZ DJI Technology Co., Ltd.
RoboMasterPy Playground was incubated during a RoboMaster EP developing contest. The author would like to thank DJI for hardware and technical support.
RoboMasterPy Playground is released under MIT license.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。