Page 1 of 1


Posted: Sun Mar 10, 2019 12:05 am
by Amir_94
I'm trying to send setpoints to my crazyflie using external position data from Optitrtack using ROS. I was following this post: viewtopic.php?f=6&t=2884&p=16252&hilit=extpos#p16252
and was wondering if you have a sample code using extpose() command. I basically don't know how to configure my data streaming connection in a python script. Before I did it with VRPN_client_ros package using some launch file and I was able to get correct data from Optitrack. Now I'm just curious how I can do the same setup in a python script so I can use cflib and extpose() specifically to give my drone some trajectory.

Thank you all

Re: extpose()

Posted: Mon Mar 11, 2019 1:11 pm
by arnaud
I cannot find any simple example. I have been using extpos a couple of time, in one experiment I had a ledring detector implemented with a simple webcam ( and the position of the Crazyflie was sent to the client via ZMQ, in the client I had a custom tab that was receiving position from ZMQ and sending it to the Crazyflie using the extpos message: ...

Basically what you need to do is, connect a Crazyflie, setup the position collection using an Optitrack python lib (or sending the position via a socket like I did in my experiment), and then send the extpos message each time you get a position from Optitrack.

Re: extpose()

Posted: Tue Mar 12, 2019 2:49 am
by Amir_94
Thanks Arnaud. Appreciate your help!!