Parrot Anafi SDK

Hello,

Are you going to make available the SDK for Anafi too?
Thank you

Best Regards
Auriga Team

2 Likes

Hi!

Yes a brand new sdk will be available. I have no release date about it but be assured that we are working hard on it to have it ready as soon as possible.
In short, this new sdk will be a lot easier to use.
Stay tuned for more information :slight_smile:

3 Likes

Are you going to be changing the underlying byte level commands? Hoping not too much so that my XML parser still works :slight_smile:

Hi,

The underlying protocol remains the same :wink: We will just expose a more ā€œhigh levelā€ SDK for mobile applications (i.e. the commands in the xml wonā€™t map one to one to the SDK API). Any dev made for bebop should be usable for Anafi with only a few commands tweaks (Iā€™ll probably do an update to my own python-based projects as an example :wink: )

Oh, and the video is RTSP now, like for the Mambo FPV !

Regards,
Nicolas.

2 Likes

Ok cool. If I can get one (wonā€™t be right away), I can hopefully support it in pyparrot then :slight_smile:

Iā€™m pretty sure that Anafi will be supported by our simulator at some point (we already have it internally :smiley: , but it might require some cleanup & optimisation for the public release), for easy testing without an actual hardware.

Interesting. Iā€™ve never tried testing my python hooks into the simulator. I just fly! But that is a good idea.

2 Likes

@Djavan Anychance of the anafi being PX4 compatible?

Any update on the SDK release date?

1 Like

Hi,

I just pushed an update of bybop with a really crude Anafi & SkyController 3 support, to show that the protocol is still the same.

Itā€™s not really usable for now because some of the commands that Anafi uses are not yet published in the github arsdk-xml repository. Most of the flight commands are similar between Anafi & Bebop, but most of the other commands (camera / recording / wifi ā€¦) are different.

Regards,
Nicolas.

awesome. When will the SDK xml commands get updated?

Thank you for the update!

Sorry to be a pest but hows it going?

I really want to test the Anafi out with my companies controller!

Iā€™ve been playing with this on the native side and am curious to know how the SC3 is being managed. By looking over the bybop source it looks like it is relying on a traditional IP connection.

Does it support mux and pomp as well? Iā€™ve noticed some problems in libpompā€™s pomp_msg_read method (segfaults) and was curious what some of the differences are between it and the SC2.

Another area where I have some questions is around video and the anafi. For simplicity, letā€™s assume the client is connected directly to the Anafi. Is its rstp implementation consistent with the mamboā€™s from a networkconfiguration perspective? I half expected the below to just work:

    networkConfiguration->hasVideo = 1;
    networkConfiguration->streamType = ARDISCOVERY_STREAM_STARTSTOP_RTSP;
    networkConfiguration->rtspAddress = strdup("rtsp://192.168.42.1/live");

Hi.

SC3 works exactly like a SC2 did : It supports either a libmux connection over USB (like FreeFlight does), or a ā€˜standardā€™ connection over IP. The only (but major for some people) difference is that you can get the USB-Net connection directly from the USB-C connector, without having to find a compliant USB-Ethernet adapter :wink:

Getting the Anafi video with libARController with the configuration you posted might work, but this wonā€™t be the ā€œofficialā€ way to connect to an Anafi through the SDK:
We actually rewrote the entire video pipeline for the Anafi, and this new implementation will be released alongside the new SDK.

Talking about the SDK ā€¦ I canā€™t provide any release date yet, simply because we donā€™t have a release planning done yet (this takes a lot of time, and most of our devs are busy with the post-launch firmware & app updates). Be assured that we will post news here when we will know more!

Nicolas.

bummer ā€¦ seeing if I can fix this:

I/librtsp: connecting to URL 'rtsp://192.168.42.1:554/live'
I/librtsp: client connected
E/librtsp: RTSP status 500: Internal Server Error
E/librtsp: failed to parse response header
E/librtsp: failed to get reply
I/librtsp: client disconnected

Hereā€™s the full conversation:

OPTIONS rtsp://192.168.42.1/live RTSP/1.0
Cseq: 1
User-Agent: librtsp_client

RTSP/1.0 200 OK
Cseq: 1
Date: Fri, 24 Aug 2018 23:44:20 GMT
Public: DESCRIBE,SETUP,PLAY,PAUSE,TEARDOWN,GET_PARAMETER
Server: Parrot Streaming Server
Content-Length: 0

ā€¦

DESCRIBE rtsp://192.168.42.1/live RTSP/1.0
Cseq: 2
User-Agent: librtsp_client
Accept: application/sdp

RTSP/1.0 200 OK
Cseq: 2
Date: Fri, 24 Aug 2018 23:45:10 GMT
Content-Type: application/sdp
Server: Parrot Streaming Server
Content-Length: 222
Content-Base: rtsp://192.168.42.1/live
v=0
o=- 7749363893351949254 1 IN IP4 192.168.42.1
s=live
i=ANAFI-E007208
c=IN IP4 0.0.0.0
t=0 0
a=tool:1.0.1
a=recvonly
a=type:broadcast
a=control:*
m=video 0 RTP/AVP 96
a=control:front
a=rtpmap:96 H264/90000

ā€¦

SETUP rtsp://192.168.42.1/livefront RTSP/1.0
Cseq: 3
User-Agent: librtsp_client
Transport: RTP/AVP;unicast;client_port=55004-55005

RTSP/1.0 500 Internal Server Error
Cseq: 3
Date: Fri, 24 Aug 2018 23:48:07 GMT
Server: Parrot Streaming Server
Content-Length: 0

okā€¦ making progress Iā€™ve got the stream going nowā€¦ was missing an all too critical /

      networkConfiguration->hasVideo = 1;
      networkConfiguration->streamType = ARDISCOVERY_STREAM_STARTSTOP_RTSP;
      networkConfiguration->rtspAddress = strdup("rtsp://192.168.42.1/live/");

The video stream state events from libARController are not firing, but progress!

1 Like

any news about the release date of Anafi SDK?

What are you using to make this connection? Are you using the current Bebop2 SDK(3)?