These are chat archives for dronekit/dronekit-android

24th
Feb 2016
Randy Mackay
@rmackay9
Feb 24 2016 04:03
@ne0fhyk, I followed the instructions on the wiki pages you linked to but could not get the video to display in Beta Tower. I'm using an RPI2 as the source of the video and was quite easily able to get the video from the RPI2 appearing on an Ubuntu laptop.
I triple checked the IP address of the tablet (connected to the AP on the RPI2) and the port (I used 9000).
Do you have any other advice or is there a way to trouble shoot this?
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:08
@rmackay9 were you connected to a drone (or sitl) when trying to view the video?
Randy Mackay
@rmackay9
Feb 24 2016 04:33
no, i'm not.. is that required?
by the way, I can ping the tablet from the RPI2 so I know the network connection is there
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:34
yea, the video decoding is tied to a drone proxy instance
Randy Mackay
@rmackay9
Feb 24 2016 04:34
ok, so i need to also connect to the vehicle via udp for telemetry..
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:35
yea, it's setup so that if we support multiple drone concurrently in the future, each drone proxy instance can potentially handle the decoding for its video stream.
i.e there's a one-to-one relationship between a drone proxy instance and a video decoder instance.
Randy Mackay
@rmackay9
Feb 24 2016 04:36
ok, i don't see how they can be tied together though..
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:36
in this case, for testing, having Tower connected to sitl should suffice.
Randy Mackay
@rmackay9
Feb 24 2016 04:37
so i have to run sitl on the RPI2 as well..
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:37
no, you can run sitl on another machine as long as it's on the same network.
for the scenario we were solving (solo), and for most other scenario, the video information is tied to the vehicle.
Randy Mackay
@rmackay9
Feb 24 2016 04:40
ok
i'll see if I can use the dronekit-sitl..
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:41
i.e: for solo you must connect to the controller to enable the video stream
so the video decoding instance is tied to the drone instance so that the drone can provide the information required for successful decoding.
Randy Mackay
@rmackay9
Feb 24 2016 04:42
i guess eventually what's most likely is that this will be running on either a companion computer (which is what I'm doing now) or a linux flight controller (like NAVIO2).. so dronekit, running on this RPI2 can access the pixhawk running ardupilot..
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:43
either dronekit-sitl or sitl on linux should work. if you have a vehicle handy, that should work too.
Randy Mackay
@rmackay9
Feb 24 2016 04:43
so ideally I should make the pixhawk's telemetry stream available to Tower..
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:43
yea
Randy Mackay
@rmackay9
Feb 24 2016 04:44
but dronekit is connecting to the pixhawk using /dev/ttyUSB0.. so it's not a UDP thing..
Bill Bonney
@billbonney
Feb 24 2016 04:45
I don’t think that matters, it just an instance of DroneVehicle creates the VideoInstance that listens for the video stream
@ne0fhyk I think that’s what you mean
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:45
@billbonney yes :)
Bill Bonney
@billbonney
Feb 24 2016 04:47
I think video will always be out-of-band to telemetry, or at least a different socket
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 04:49
@rmackay9 maybe I should have clarified I was referring to dronekit-android running on the mobile device.
as @billbonney mentioned, dronekit-android creates a Drone instance (based on the received telemetry) which then initializes a VideoManager instance.
The VideoManager instance then does all the work of receiving the video stream out of band, and decoding it for the requesting client.
Randy Mackay
@rmackay9
Feb 24 2016 05:14
@ne0fhyk, it works, it's a miracle!
Fredia Huya-Kouadio
@ne0fhyk
Feb 24 2016 05:35
great :D
wiistriker
@wiistriker
Feb 24 2016 06:13
still this error
java.lang.NoClassDefFoundError: org.droidplanner.android.proxy.mission.MissionProxy$1
DroidPlanner/Tower#1690
Randy Mackay
@rmackay9
Feb 24 2016 11:35
With some help, some progress on the companion computer project today. Details and pic are at the bottom of this page here:http://diydrones.com/forum/topics/proposal-for-companion-system-architecture?groupUrl=companion_computers&groupId=705844%3AGroup%3A2180430&id=705844%3ATopic%3A2187719&page=13#comments
in short, it's an RPI2 which is both consuming the ardupilot/Pixhawk's telem data (using DroneKit-2.0) and forwarding it onto an arbitrary number of ground stations. Also the video from the RPI2 can be viewed in Tower (other GCSs to come). The missing piece is allow the RPI video to be split so it can be simultaneously consumed locally (again by DroneKit/OpenCV) and forwarded to the ground stations.
wiistriker
@wiistriker
Feb 24 2016 13:36
i also want to convert video for google cardboard
from RPI2