This action will force synchronization from 楠木/RoboMasterPy, which will overwrite any changes that you have made since you forked the repository, and can not be recovered!!!
Synchronous operation will process in the background and will refresh the page when finishing processing. Please be patient.
English | 中文
RoboMasterPy is a RoboMaster Python SDK and framework:
The SDK(client) is straightforward to use:
>>> import robomasterpy as rm # IP of RoboMaster is detected under router mode >>> cmd = rm.Commander() # check RoboMaster's API version >>> cmd.version() 'version 00.00.00.60' >>> cmd.get_robot_mode() 'chassis_lead' # ensure your Robomaster has enough room to move >>> cmd.chassis_move(x=-1, z=30) 'ok' # activate video streaming, # which can be handled by the framework. >>> cmd.stream(rm.SWITCH_ON) 'ok' # activate gimbal attitude push at 5Hz, # which can be handled by the framework. >>> cmd.gimbal_push_on(attitude_freq=5) 'ok' # Watch out! >>> cmd.blaster_fire() 'ok'
The framework lets you create complicated application easier, e.g.:
RoboMasterPy requires Python 3.6 and above.
If you are using Python 3.6.x, you need to install
dataclasses, which is already included in Python 3.7 and better:
pip install dataclasses
Install OpenCV of your flavor, suggestion::
# if you are using conda conda install -c conda-forge opencv # if you are using pip only pip install opencv-contrib-python
pip install robomasterpy
Documentation is generously hosted by Read the Docs.
RoboMasterPy is a fan work, and it has no concern with DJI.
DJI, RoboMaster are trademarks of SZ DJI Technology Co., Ltd.
RoboMasterPy was incubated during a RoboMaster EP developing contest. The author would like to thank DJI for hardware and technical support.
Copyright (c) 2020 LI Zhennan