Open aarsht7 opened 1 year ago
https://github.com/dji-sdk/RoboMaster-SDK/blob/ff6646e115ab125af3207a4ed3df42cc76c795b2/src/multi_robomaster/tool.py#L175 please modify local_ip to be equal to your actual local IP address. For example 192.168.10.2
Thank you @hummelslei . I will give it a try and update you about it by tomorrow. 👍🏻
Hello @hummelslei , The solution did not worked for me. I am still getting the same error.
The solution recommended by our R&D is as follows. Please modify it according to the recommended method. Modify demo Modify library:
Hello @hummelslei This works BUT I had to make one more change in the code. I can make a pull request to this repo with all the changes I made to work it without any problem. NOTE : this changes will not affect already working codes. the changes will only trigger when it is required. I can also document for the website (in English) Once again Thanks Hummels 👍🏻
How to reproduce the issue:
robomaster.config.LOCAL_IP_STR = "192.168.10.2"
in the code, before creating the object of Drone() here. Do this for each drones you have.Things you might notice during the above procedure.
THE ERROR
At very first execution of this example from github, I got the following error
After having good view on the code downloaded from the pip install and the code on this github repo, I find its not the same. For starter, you can go to the PyPi robomaster download latest whl and check the line 106 in
multi_robomaster/tool.py
and same file multi_robomaster/tool.py line 103 on github. You notice the error producing linebroadcast = ipinfo['broadcast']
is not present on the github version.After some printing and debugging and chatting with the dev team of dji @dji-dev , I realise it was giving the error because of the multiple physical and virtual network cards (self, LAN, wifi, docker and few more) available on the system. After that I tried to iterate over only wifi using the wifi adapter name in this for loop. But I get the following Error
Here I am stuck and have no idea what to try next. Any help would be appreciated. Thanks.