dji-sdk / RoboMaster-SDK

DJI RoboMaster Python SDK and Sample Code for RoboMaster EP.
Apache License 2.0
311 stars 142 forks source link

Does it support Mac #16

Open dead-lee opened 4 years ago

dead-lee commented 4 years ago

I don't have PC or Linux desktop, can I use Mac for that. I hope we have VS Code plug in for Robomaster code build in future.

brunoga commented 4 years ago

Not part of the project but I can say with confidence that the answer is yes. The communication with the robot is just standard network protocols. You can run all the examples in the SDK from a MacOS computer without problems (you just need plain Python 3 installed).

acche commented 3 years ago

When install robomaster via macOS terminal, it prompt an error :

ERROR: Could not find a version that satisfies the requirement robomaster (from versions: none) ERROR: No matching distribution found for robomaster

I am using python 3.7.

How to solved it ?

SpaceX-Vision commented 3 years ago

When install robomaster via macOS terminal, it prompt an error :

ERROR: Could not find a version that satisfies the requirement robomaster (from versions: none) ERROR: No matching distribution found for robomaster

I am using python 3.7.

How to solved it ?

  1. 首先使用 conda 创建 3.7 虚拟环境 conda create --name dji python=3.7
  2. 进入虚拟环境 conda activate dji
  3. 安装 RoboMaster SDK pip install robomaster
wisechengyi commented 1 year ago

I ran into the same issue pip install robomaster on mac. Looking further into pypi and I don't see any mac python wheels published https://pypi.org/project/robomaster/0.1.1.68/#files, so likely this isn't supported.

Put up https://github.com/dji-sdk/RoboMaster-SDK/pull/92

SpaceX-Vision commented 1 year ago

大疆对pypi的发布有一些混乱,您是 M1/M2 芯片还是英特尔芯片的Mac?架构不同安装方式不同,我已经解决此问题

wisechengyi commented 1 year ago

@SpaceX-Vision 我用的是M1。请问如何操作?是要提供别的pip index还是直接引入这个repo里的代码?

SpaceX-Vision commented 1 year ago

安装x86架构的Anaconda,创建一个虚拟环境,安装python3.7,然后就可以pip install robomaster了

wisechengyi commented 1 year ago

安装x86架构的Anaconda,创建一个虚拟环境,安装python3.7,然后就可以pip install robomaster了

谢谢。请问可以更新这个方面的文档么?https://github.com/dji-sdk/RoboMaster-SDK/blob/master/docs/source/python_sdk/installs.rst#%E5%AE%89%E8%A3%85-sdk-%E5%88%B0-macos-x%E5%B9%B3%E5%8F%B0

或者我也可以发一个PR。

SpaceX-Vision commented 1 year ago

非常抱歉,因为疫情,我已经从南京的大疆教育离职了,换了行业,没继续玩RoboMaster了,可能我说的会有些错误

wisechengyi commented 1 year ago

试了下,你的方法的确还是可以的。不过另外一个问题看上去会导致玩不下去了。比较可惜。看来要退货了。

https://github.com/dji-sdk/RoboMaster-SDK/issues/10