{"id":18553888,"url":"https://github.com/libi/robomaster-go","last_synced_at":"2026-01-12T02:54:55.587Z","repository":{"id":57751467,"uuid":"266266364","full_name":"libi/robomaster-go","owner":"libi","description":"RoboMaster EP SDK (Golang) ","archived":false,"fork":false,"pushed_at":"2020-05-23T05:02:28.000Z","size":4,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T11:12:38.823Z","etag":null,"topics":["ep","go","robomaster","sdk"],"latest_commit_sha":null,"homepage":null,"language":"Go","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/libi.png","metadata":{"files":{"readme":"readme.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-23T05:01:59.000Z","updated_at":"2020-07-04T07:44:19.000Z","dependencies_parsed_at":"2022-08-26T08:31:44.930Z","dependency_job_id":null,"html_url":"https://github.com/libi/robomaster-go","commit_stats":null,"previous_names":["libichai/robomaster-go"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libi%2Frobomaster-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libi%2Frobomaster-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libi%2Frobomaster-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/libi%2Frobomaster-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/libi","download_url":"https://codeload.github.com/libi/robomaster-go/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254331194,"owners_count":22053129,"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","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":["ep","go","robomaster","sdk"],"created_at":"2024-11-06T21:18:45.007Z","updated_at":"2026-01-12T02:54:55.559Z","avatar_url":"https://github.com/libi.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"RoboMaster EP SDK (Golang) \n---\n\n### 简介\nrobomasterEP SDK Golang版，可实现通过Go操控EP。初始化过程可选传入机器人IP,SDK会自动扫描局域网内存在的机器人进行连接。\n可直接调用RunCmd函数发送指令并返回指令执行结果。\n\n音视频流推送事件等连接在初始化时会根据配置自动建立连接，开发者根据需要直接使用响应的连接句柄即可。\n \n### 使用说明\n\n#### 初始化\n\n\n````go\nroboMasterConn, err := NewRoboMasterConn(\u0026Option{EnableVideo: true})\n````\n\n#### 配置\n\n```go\ntype Option struct {\n\tIP          string   //EP的IP地址 如果不传则会自动扫描\n\tEnableVideo bool     // 是否开启视频流\n\tEnableAudio bool     // 是否开启音频流\n\tScanTimeout time.Duration  //未传入IP时，扫描局域网IP的超时时间\n\tCtrlTimeOut time.Duration  //控制指令超时时间\n}\n```\n\n#### 属性\n\n\n\n#### 调用控制指令\n```go\n// arg 控制指令\n// return 响应结果 / 错误信息\n// 该方法为同步方法\nret,err := roboMasterConn.RunCmd(\"robot battery ?\")\n```\n\n#### 接收视频流举例\n\n```go\nfor{\n    buff := make([]byte,1024)\n    n,err := roboMasterConn.VideoConn.Read(buff)\n    fmt.Println(\"rec video stream\",buff[0:n],err)\n}\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibi%2Frobomaster-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibi%2Frobomaster-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibi%2Frobomaster-go/lists"}