|
From: | Ben Laurie |
Subject: | Re: [Paparazzi-devel] ardrone2 success |
Date: | Sat, 23 Nov 2013 17:37:54 +0000 |
On 22 November 2013 16:19, Ben Laurie <address@hidden> wrote:
On 21 November 2013 12:32, Christophe De Wagter <address@hidden> wrote:
I have that with ffplay but not with gst-launch. Which version of ubuntu are you on?Hmm. I can't seem to get gst-launch to work ... it says "no decoder to handle media type 'application/sdp'"Solved: you have to install the "bad" gstreamer plugins.This is now working!Thanks!-ChristopheOn Tue, Nov 19, 2013 at 11:56 PM, Ben Laurie <address@hidden> wrote:On 18 November 2013 15:52, Christophe De Wagter <address@hidden> wrote:
Yes you can stream video from the ardrone while flying with paparazzi. For this you so you do not even need to compile anything and only need the subproject https://github.com/tudelft/ardrone2_gstreamer/ (which is included in ardrone2_vision)
How?1) install gstreamer with codecs on unbuntu: make install should achieve this (or sudo apt-get install gstreamer0.10-ffmpeg)2) get all gstreamer files on the drone: make drone (or manually untar arm_light.tgz and mount and start dsp images: see ardrone.py script for details: reboot drone if starting dsp mp4 images fails)3) start the grabbing + (computer vision plugin) + encoding + streaming on the drone using gstreamer: e.g. gst-launch v4l2src device=/dev/video1 ! videorate ! 'video/x-raw-yuv,framerate=15/1' ! videoscale ! video/x-raw-yuv, width=320, height=240 ! dspmp4venc ! rtpmp4vpay config-interval=2 ! udpsink host=192.168.1.255 (or your IP) port=5000should now broadcast camera 1 with mpeg4 encoding to broadcast ip on port 50004) start a video client in ubuntu:e.g.: gst-launch-0.10 -vvv playbin uri=file:///home/YOURNAME_AND_SUBFOLDER/ardrone2_vision/ardrone2_gstreamer/sdp/x86_config-mp4.sdpor see https://github.com/tudelft/ardrone2_gstreamer/blob/master/sdp/Makefile for optionsHmm. This kinda works, but I get lots of errors both as text and in the video - it shows some of the video at the top, but the rest is fuzz.
-ChristopheOn Mon, Nov 18, 2013 at 4:17 PM, Ben Laurie <address@hidden> wrote:Cool, thanks, will try later. Sorry to nag, but ... can I use this to stream video? If so, how?On 18 November 2013 14:19, Christophe De Wagter <address@hidden> wrote:
sorry, some commits were unpushed
-ChristopheOn Sun, Nov 17, 2013 at 7:22 PM, Ben Laurie <address@hidden> wrote:On 6 November 2013 13:24, Freek van Tienen <address@hidden> wrote:
Yes we are looking into using the DSP. We are currently also busy working on an ardrone2 vision platform, where for example it is possible to make a module for landing on a mark.We alrready had vide streaming and some basic vision algorithms working, but not in a very nice way. So we are refactoring it, and make it more easy to use.
So is it possible to use it now to do streaming? If so ... how?Also, it doesn't even build right now, e.g.:CC brightspotdetector_code.oIn file included from brightspotdetector_code.c:15:0:../../gst_plugin_framework/paparazzi.h: In function 'paparazzi_message_server_start':../../gst_plugin_framework/paparazzi.h:24:6: error: 'tcp_port' undeclared (first use in this function)../../gst_plugin_framework/paparazzi.h:24:6: note: each undeclared identifier is reported only once for each function it appears in../../gst_plugin_framework/paparazzi.h: In function 'TCP_thread':../../gst_plugin_framework/paparazzi.h:40:48: error: 'tcp_port' undeclared (first use in this function)../../gst_plugin_framework/paparazzi.h: In function 'paparazzi_message_send':../../gst_plugin_framework/paparazzi.h:71:6: error: 'tcp_port' undeclared (first use in this function)brightspotdetector_code.c: In function 'my_plugin_run':brightspotdetector_code.c:44:20: error: 'counter' undeclared (first use in this function)make[1]: *** [brightspotdetector_code.o] Error 1make[1]: Leaving directory `/home/ben/git-work/paparazzi/sw/ext/ardrone2_vision/pprz_gst_plugins/BrightSpotDetector'make: *** [all] Error 2And the install appears to not have been coded (from ardrone2.py):# Install the vision frameworkdef ardrone2_install_vision():print 'TODO'It's still work in progress, and currently doesn't work out of the box but here is the github repository. https://github.com/tudelft/ardrone2_vision
2013/11/5 Ben Laurie <address@hidden>On 5 November 2013 14:32, Freek van Tienen <address@hidden> wrote:Cool. I'll give it a try when I next get a chance.
> Nice! Good to hear!
>
> I'm currently working on the sonar for the ardrone2:
> https://github.com/fvantienen/paparazzi/compare/paparazzi:master...master
> I've tested it for heights under 4m, but couldn't test it outside yet
> because of the weather. But it should work, and estimates the height under
> 4m much better. Then we can even make it land on sonar height.
I think I read somewhere that the ardrone2 has a DSP - have you looked
into using that yet?
Because I've been flying mine from my fields, I've had to use a
platform to launch it from (the grass is too long to do it from the
ground). As it happens, the platform I'm using is a bright yellow
stool. I was wondering if it would be possible to use the camera to
land on it :-) (Just idle speculation really).
On a related note, is it possible to record the video during a
paparazzi flight? And/or view it live?
>
>
>
>
> 2013/11/5 Ben Laurie <address@hidden>
>>
>> Finally got a chance to test the fixed GPS. Despite quite high winds
>> (forecast says 40 km/h) it all went well, and even landed correctly.
>>
>> Interestingly, the USB stick u-blox GPS, which was horribly inaccurate
>> out-of-the-box, worked perfectly once ucenter was able to correctly
>> configure it.
>>
>> _______________________________________________
>> Paparazzi-devel mailing list
>> address@hidden
>> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
>
>
> _______________________________________________
> Paparazzi-devel mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
>
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
_______________________________________________
Paparazzi-devel mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/paparazzi-devel
[Prev in Thread] | Current Thread | [Next in Thread] |