Problem with the simulation of dji matrice 100 with ros - ros

I'm trying to use ROS with dji matrice 100, i followed the tutorial on the website and i connected the drone and got the correct parameters. The problem is that i cannot run simulation and give commands because the signal of the gps is low. I'm working in a small office with a notebook and a pc desktop connected to the drone, is there a way to bypass the gps and run the simulation, or the only solution is to move in a place where gps signal is high?
Another question is how can i put my program (wrote in python using ros) on the drone?

Another question is how can i put my program (wrote in python using
ros) on the drone?
I assume you're referring to controlling the drone with your ROS program without a simulator?
You need to connect the drone to a PC using the UART port on the M100. My setup involves a USB to serial Cable which is connected to a JETSON TX1. If you're using ROS, edit the details of the sdk.launch here. Your PC needs to be small enough to fit on the drone. A raspberry pi will do the trick. For more details, take a look at the hardware setup guide at this link. I think the M100 + PC/Linux machine should work well for you. Good luck.

Perhaps you can run and download the mobile (Android or iOS) SDK simulation example app to start the simulator from there and then run the commands you want from the onboard sdk/ onboard sdk for testing. I am not sure if this would work, since it is unclear if
you need to run the simulator from onboard as opposed to mobile
or if you need to run both two simultations
dji may not allow running two simulators at the same time.
2.) would be a DJI issue and I haven't testing 2 simulations at once. My guess if you can't run 2, but it could be worth giving a try. 1.) depends more on what you are trying to accomplish. But I could be missing something and don't have experience trying multiple simulations if that is what you need.

Hi,did you open the DJI Assistant 2?You can connect your drone to the PC,then open the simulator of the DJI Assistant 2.In the simulator,you can set the latitude and longitude.After starting simulating,the GPS signal will be high at all times.

Related

Bluetooth iOS Windows

I recently developed an application for a client, an app iOS, Android and windows, the mobile app acts as a controller and launches certain events on the windows application. The Windows application also shares data at random (not known to the mobile app) moments. The communication was done by TCP. And works great.
The client now wants it for bluetooth. Between Android and Windows, it's not been a problem and has been done, and works well. But iOS is sadly not the same story... The use of Bluetooth low energy seems to complicate things.
I've hunted high and low on google to find anything on communication between a .net application and a Swift application, to no avail. This surprises me that no one talks of a bluetooth communication between Windows and iOS.
My question is, very simply. Is it possible? I know very little about bluetooth and I've tried researching devices and all I find is a BeeWi device that's in our office, not my computer (I maybe need to launch something on computer first? The devices are paired)
My computer has a Bluetooth 4.0 dongle and the BLE emulator is present in the Device manager.
If this isn' possible, tell me know and put me out of my misery, otherwise give me hope!
Any additional advice is warmly welcome - Thank you all !
Beau Carrel
Windows has support for being a BLE client. Just Google it and you'll find many examples, such as https://developer.microsoft.com/en-us/windows/iot/Samples/BLEGatt2.
You need to set up iOS to be an advertising peripheral.

Sony SDK on computer

I would like to use the sony SDK to display image from my SONY alpha 5000 on my computer.
I notice that the supplied SDK is to develop and Android application. Is there a computer version SDK to be able to connect to the camera with the WIFI and control it?
Well, I'm also a newbie on the Sony remote camera API SDK. And I started with the same questions as you. Actually the API SDK can be understand as an instruction set that can be used in fairly any platform. This being said, one option is to workarround the programming language that you manage (Python, C, VB....) and send the instruction through a network service (Myself, I have been trying with network sockets on C#). There are some examples on the web, which are ready to go as Locana and Camera RC, both of which I have found very useful. If you want to make your app yourself, you can check a bit the code for C I posted on this comment (Please do not start with liveview... If you do, and get to do it, let me know). I hope it can be of any help.

Telnet iPhone Application that connect through iPhone USB port

I am looking for a weekend project to do and I was wondering if this was possible. I have these radios that are programmed using Telnet (to set the frequencies, output power, etc.) and I normally do this with my computer in the terminal. The radios have an RS-232 connector on them and I use a USB converter to connect to my computer. Having a small, portable device to program them with instead of a big, clunky laptop would be great, so what I am hoping is possible is to be able to create a telnet connection with my iPhone. Is it possible to create a Telnet application for my iPhones that can connect to these radios through the USB/lightning port on the iPhone? I know normally when people write Telnet applications for the iPhone, they are using over the air connections like WiFi/3G/4G to connect to the internet, but this radio is not connected to the internet but its own private network of other radios. If it is possible to connect the iPhone to the RS-232 port and accomplish the Telnet connection (also without frying my iPhone with too much current) that would be fantastic. Also, if it is possible, how would I access the lightning port? Thanks!
EDIT: Another possible connection is the iPhones lightning port to an RJ-45 connection. That would work as well. Is this possible? Thanks!
As far as I know, you can always study the specification of the lightning connector, you can find it here : http://en.wikipedia.org/wiki/Lightning_(connector). You can try to play with the SDK, trying to send commands from the iPhone and receiving information through the cable. The problem of that, and I was working in several medical applications with the 30 pin connector and the lightning as well, is you have to spend a lot of time to deal with the specification. The most important part is to understand how the connector works and what can you send and receive through the cable. If not, you would have to build your own connector, which is interesting and can help to learn a lot, but it´s not an easy thing. In a project I was working, we had to build several cables to adapt the signals to connect with the device, in my case an iPad1 and recently an iPad 4 although it works with the iPhone as well. As you know, or you should, you will have to learn about MFI.
You can find some information regarding that point here : Create an iPad app that can send/receive data via the USB cable?, but bear in mind everything goes through MFI, so it has its pros and cons....most of them cons. You can find several information here : https://developer.apple.com/programs/mfi/
good luck :)

USB connection trouble

I am currently running a robotic's project using an Hokuyo (URG-04LX-UG01 - http://www.hokuyo-aut.jp/02sensor/07scanner/urg_04lx_ug01.html). This one is plugged to my computer using USB. Although it creates the port "/dev/ttyACM0" when I plug it, I can't connect to it using the associated library (serial connection error). Until here, nothing's strange, bugs or misprogramming happens but here is my problem :
When I plug the hokuyo to an USB HUB, which is also plugged to my computer, I can connect to it and everything works perfectly.
My laptop is a samsung 900x3c running Linux Mint 15.
Do you know what an USB HUB changes in the USB communication ?
Is there a link with my laptop ? (I used to face the same problem using an ARM-Based embedded computer)
Is it possible to fix the issue without using any hardware solution ?
If it's not, is there anything more compact than an USB HUB which could fix it ?
Thanks !
Is your USB-HUB powered from external power adapter? URG-04LX-UG01 seems to consume 2,5W/5V=0,5A. This is limit for USB. Laptop USB ports are not so powerful and if device consumes a little bit more than max, then they just cut the power.
Update
The device is USB 2.0 Full Speed. I've seen USB controller, that had problems with USB 1.0 or USB 2.0 devices. Hub presents itself as USB 2.0 High Speed and handles USB 2.0 Full Speed transparently for the Laptops USB controller. Do you have another Laptop/PC to check this?
I'm kind of late on my feedback for that issue, but better late then never so :
I've been able to determine that the whole issue came from my USB cable. Somehow there was an electrical issue in that cable and the computer-or the hokuyo- was not able to properly communicate through it. I think that the USB HUB was somehow able to correct theses electrical issues.
Anyway, problem solved !

Why do I have to reinstall Kinect SDK everytime I restart PC

I'm currently work with Kinect for Windows SDK version 1 under Win7, VS2010, C#.NET.
Demos in Microsoft Kinect for Windows SDK Sample Browser can't run properly after Kinect is connected to my PC.
Kinect Explorer(in C#) says Kinect is not ready (which is different from Please insert a Kinect... if Kinect is not connected).
Shapes Game(in C#) says Oops... Something's wrong with Kinect
Skeletal Viewer(in C++) can run, but only depth image run properly. Color image has a frame rate less than 1! And skeleton view show nothing but a black background.
Here's what I have tried:
The above thing will not happen(which means everything goes all right) if SDK is reinstalled and PC is not restarted. So... I have to reinstall Kinect SDK everytime I restart my PC!!!
I checked the Resource Manager after Kinect USB is plugged to my PC. The strange thing is that if the PC is not restarted after reinstalling SDK, there're 4 devices concerning Kinect: Audio, Speech, NUI and Security. But after restart PC, the Security Device won't be shown after Kinect is connected to PC.
I've tried with 2 different Kinect(one at a time) and have the same situation.
Using different USB slots make no difference.
I don't know what's wrong with my PC or how to do next. The only thing I know is that I don't want to reinstall Kinect SDK everytime I restart my PC! So would anybody offer some solution? Thanks very much!
I came across this problem just now, and finally solve it. I accidentally killed the process names "KinectManagementService" in the task manager, and then I could not connect the Kinect any more. Have a glance at the task manager whether the process is there.
Open Windows Service, and start the service "Kinect Management". That's it!

Resources