{"id":15018766,"url":"https://github.com/nanmu42/robomasterpy","last_synced_at":"2025-10-08T09:13:32.710Z","repository":{"id":37658755,"uuid":"266289395","full_name":"nanmu42/robomasterpy","owner":"nanmu42","description":"DJI RoboMaster Python SDK and programing framework | 大疆机甲大师的Python SDK和编程框架","archived":false,"fork":false,"pushed_at":"2023-03-23T04:22:58.000Z","size":111,"stargazers_count":92,"open_issues_count":2,"forks_count":12,"subscribers_count":7,"default_branch":"master","last_synced_at":"2025-09-01T10:25:07.377Z","etag":null,"topics":["client","dji","dji-robomaster","dji-sdk","framework","library","python3","robomaster","robomaster-ep","robomaster-python-sdk","robomaster-sdk","robot-framework","robotics","sdk"],"latest_commit_sha":null,"homepage":"https://robomasterpy.nanmu.me","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nanmu42.png","metadata":{"files":{"readme":"README.Chinese.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-23T07:52:35.000Z","updated_at":"2025-06-14T14:00:35.000Z","dependencies_parsed_at":"2022-07-26T14:00:07.875Z","dependency_job_id":null,"html_url":"https://github.com/nanmu42/robomasterpy","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/nanmu42/robomasterpy","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Frobomasterpy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Frobomasterpy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Frobomasterpy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Frobomasterpy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nanmu42","download_url":"https://codeload.github.com/nanmu42/robomasterpy/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nanmu42%2Frobomasterpy/sbom","scorecard":{"id":673956,"data":{"date":"2025-08-11","repo":{"name":"github.com/nanmu42/robomasterpy","commit":"080febfcb13eec0a79b57f2a468b77c5825bb83c"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.3,"checks":[{"name":"Code-Review","score":2,"reason":"Found 1/5 approved changesets -- score normalized to 2","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":-1,"reason":"internal error: error during branchesHandler.setup: internal error: githubv4.Query: Resource not accessible by integration","details":null,"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 27 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"27 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2024-230 / GHSA-248v-346w-9cwc","Warn: Project is vulnerable to: PYSEC-2023-135 / GHSA-xqr8-7jwr-rhp7","Warn: Project is vulnerable to: GHSA-3ww4-gg4f-jr7f","Warn: Project is vulnerable to: GHSA-5cpq-8wj7-hf2v","Warn: Project is vulnerable to: GHSA-9v9h-cgj8-h64p","Warn: Project is vulnerable to: PYSEC-2023-254 / GHSA-jfhm-5ghh-2f97","Warn: Project is vulnerable to: GHSA-jm77-qphf-c4w8","Warn: Project is vulnerable to: GHSA-v8gr-m533-ghj9","Warn: Project is vulnerable to: GHSA-w7pp-m8wf-vj6r","Warn: Project is vulnerable to: GHSA-x4qr-2fvf-3mr5","Warn: Project is vulnerable to: PYSEC-2024-60 / GHSA-jjg7-2v4v-x38h","Warn: Project is vulnerable to: GHSA-cpwx-vrp4-4pq7","Warn: Project is vulnerable to: GHSA-h5c8-rqwp-cp95","Warn: Project is vulnerable to: GHSA-h75v-3vvj-5mfj","Warn: Project is vulnerable to: GHSA-q2x7-8rv6-6q7h","Warn: Project is vulnerable to: GHSA-cxjf-x6jp-p7mc","Warn: Project is vulnerable to: PYSEC-2023-181","Warn: Project is vulnerable to: PYSEC-2023-117 / GHSA-mrwq-x4v8-fh7p","Warn: Project is vulnerable to: GHSA-9hjg-9r4m-mvj7","Warn: Project is vulnerable to: GHSA-9wx4-h78v-vm56","Warn: Project is vulnerable to: PYSEC-2023-74 / GHSA-j8r2-6x86-q33q","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p","Warn: Project is vulnerable to: GHSA-34jh-p97f-mpxf","Warn: Project is vulnerable to: PYSEC-2023-212 / GHSA-g4mx-q9vg-27p4","Warn: Project is vulnerable to: GHSA-pq67-6m6q-mj2v","Warn: Project is vulnerable to: PYSEC-2023-192 / GHSA-v845-jxx5-vc9f","Warn: Project is vulnerable to: GHSA-jfmj-5v4g-7637"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-21T20:59:09.106Z","repository_id":37658755,"created_at":"2025-08-21T20:59:09.106Z","updated_at":"2025-08-21T20:59:09.106Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278918135,"owners_count":26068412,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["client","dji","dji-robomaster","dji-sdk","framework","library","python3","robomaster","robomaster-ep","robomaster-python-sdk","robomaster-sdk","robot-framework","robotics","sdk"],"created_at":"2024-09-24T19:52:25.713Z","updated_at":"2025-10-08T09:13:32.671Z","avatar_url":"https://github.com/nanmu42.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RoboMasterPy\n\n[English](https://github.com/nanmu42/robomasterpy/blob/master/README.md) | **中文**\n\n[![文档编译状态](https://readthedocs.org/projects/robomasterpy/badge/?version=latest)](https://robomasterpy.nanmu.me/zh_CN/latest/)\n[![](https://img.shields.io/pypi/l/robomasterpy.svg)](https://pypi.org/project/robomasterpy/)\n[![](https://img.shields.io/pypi/wheel/robomasterpy.svg)](https://pypi.org/project/robomasterpy/)\n[![](https://img.shields.io/pypi/pyversions/robomasterpy.svg)](https://pypi.org/project/robomasterpy/)\n\n**RoboMasterPy** 是大疆机甲大师的Python SDK和编程框架：\n\n* Python SDK：遥测和控制机甲大师；\n* 编程框架：提供和规范控制流和数据流，解决视频流拉取解析、事件和推送拉取解析等常见需求，解耦控制循环、日志打印、安全退出等模板代码，降低心智负担和劳动强度，让开发者可以专注于业务逻辑的实现。\n\nSDK（客户端）的使用方式比较直观：\n\n```python\n\u003e\u003e\u003e import robomasterpy as rm\n\n# 路由器模式下，可自动获取机甲大师的IP\n\u003e\u003e\u003e cmd = rm.Commander()\n\n# 查询机甲大师的固件的API版本\n\u003e\u003e\u003e cmd.version()\n'version 00.00.00.60'\n\n\u003e\u003e\u003e cmd.get_robot_mode()\n'chassis_lead'\n\n# 执行前请确保你的机甲大师有足够的行动空间\n\u003e\u003e\u003e cmd.chassis_move(x=-1, z=30)\n'ok'\n\n# 开启视频推流，\n# 视频流可以使用RoboMasterPy编程框架进行获取和处理。\n\u003e\u003e\u003e cmd.stream(rm.SWITCH_ON)\n'ok'\n\n# 开启云台姿态推送，设定频率为5Hz，\n# 推送可以使用RoboMasterPy编程框架进行获取和处理。\n\u003e\u003e\u003e cmd.gimbal_push_on(attitude_freq=5)\n'ok'\n\n# 当心飞弹！\n\u003e\u003e\u003e cmd.blaster_fire()\n'ok'\n```\n\n框架让你能够更容易地创建复杂应用，例如：\n\n* [使用键盘控制你的机甲大师](https://github.com/nanmu42/robo-playground/blob/master/README.Chinese.md#%E4%BD%BF%E7%94%A8%E9%94%AE%E7%9B%98%E6%8E%A7%E5%88%B6%E4%BD%A0%E7%9A%84%E6%9C%BA%E7%94%B2%E5%A4%A7%E5%B8%88ep)；\n* [让你的机甲大师变身为守门员](https://github.com/nanmu42/robo-playground/blob/master/README.Chinese.md#%E8%AE%A9%E4%BD%A0%E7%9A%84%E6%9C%BA%E7%94%B2%E5%A4%A7%E5%B8%88ep%E5%8F%98%E8%BA%AB%E4%B8%BA%E5%AE%88%E9%97%A8%E5%91%98)。\n* [更多示例](https://github.com/nanmu42/robo-playground)\n\n![RoboMasterPy 守门员](https://user-images.githubusercontent.com/8143068/82755582-186d5700-9e07-11ea-9c08-1ff1d82e7a7e.jpg)\n\n## 安装\n\nRoboMasterPy 需要Python 3.6或更高版本。\n\n### 安装依赖\n\n如果你正使用Python 3.6.x，你需要额外安装`dataclasses`（已预置在Python 3.7及以上版本）：\n\n```bash\npip install dataclasses\n```\n\n安装你熟悉的OpenCV发行版，推荐：\n\n```bash\n# 如果你偏爱conda环境\nconda install -c conda-forge opencv\n\n# 如果你只使用pip\npip install opencv-contrib-python\n```\n\n### 安装RoboMasterPy\n\n```bash\npip install robomasterpy\n```\n\n大功告成！\n\n## 用户指南\n\nhttps://robomasterpy.nanmu.me/zh_CN/latest/\n\n文档提供中英双语。\n\nRead the Docs 慷慨地提供了文档托管服务。\n\n## 健康和安全警示\n\n* 你的机甲大师可能会伤到人或者宠物，打破东西或者弄坏自己；\n* 确保机甲大师有足够的行动空间，确保地面平整且没有障碍；\n* 慢慢来，避免在调试代码时使用高速档位；\n* 使用缓冲垫；\n* 注意安全，玩的愉快！\n\n## 法务\n\nRoboMasterPy 是一个爱好者作品，和DJI没有关系。\n\n大疆、大疆创新、DJI、 RoboMaster是深圳市大疆创新科技有限公司的商标。\n\n## 致谢\n\nRoboMasterPy是在机甲大师EP开发者比赛中孵化的，作者对DJI提供的硬件和技术支持表示感谢。\n\n## 许可\n\nRoboMasterPy 基于MIT许可发布，\n您只需要保留署名和版权信息（LICENSE）即可自由使用本软件。","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanmu42%2Frobomasterpy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnanmu42%2Frobomasterpy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnanmu42%2Frobomasterpy/lists"}