• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

robo-playground: 与你的大疆机甲大师愉快玩耍,基于RoboMasterPy构建 ...

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称:

robo-playground

开源软件地址:

https://gitee.com/nanmu42/robo-playground

开源软件介绍:

RoboMasterPy Playground

English | 中文

Documentation Status

Games and examples built for RoboMaster EP with RoboMasterPy.

RoboMasterPy Goalkeeper

Press Start

RoboMasterPy Playground requires Python 3.6 and above.

# optional, suggestedvirtualenv venv# Python 3.6.xpip install -r requirements-py36.txt# Python 3.7 and abovepip install -r requirements.txt

Drive your robomaster using keyboard

Live video stream is displayed on your screen.

$ python drive.py --helpUsage: 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 fire
  • up, down: gimbal pitch up, gimbal pitch down
  • left, right: chassis roll left, chassis roll right
  • 1~5: gears

Make your robomaster a goalkeeper

You 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 --helpUsage: 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.

RoboMasterPy User Guide

https://robomasterpy.nanmu.me/

Documentation is generously hosted by Read the Docs.

Health and Safety Notice

  • Your Robomaster may hurt people or pet, break stuffs or itself;
  • Make sure your RoboMaster has enough room to move; make sure the ground is clear;
  • Start slowly, avoid using high speed for debugging;
  • Use cushion;
  • Stay safe and have fun!

Paperwork

RoboMasterPy Playground is a fan work, and it has no concern with DJI.

DJI, RoboMaster are trademarks of SZ DJI Technology Co., Ltd.

Acknowledgement

RoboMasterPy Playground was incubated during a RoboMaster EP developing contest. The author would like to thank DJI for hardware and technical support.

License

RoboMasterPy Playground is released under MIT license.


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap