Page 1 of 1

How to generate trajectory

Posted: Tue Oct 22, 2019 2:34 pm
by HC766
Hi guys, I'm working on crazyflie autonomous flying recently, I tried to use ... con.launch and ... to fly a figure 8 which .csv file is already created.

I would like to generate a new trajectory by myself using But I am not very clear about the procedure to generate trajectory using this tool. Should I first to generate a .csv file about the waypoitns? If so, how can I build .csv file? Please help me.

Thanks a lot!

Re: How to generate trajectory

Posted: Thu Dec 19, 2019 10:09 am
by kimberly

So the projects you are trying to work with is not something we developed in-house but is created by one of our active community members Wolfgang Whoenig. If you want to work with the ros package for the crazyflie and crazyswarm, please get started on the documentation here:

If you do not need to use ROS and crazyswarm, there are also ways to get it to fly autonomously with our python library. If you are interested, please let us know what kind of positioning you are using, what you want to achieve and we can try to push you in the right direction.

Re: How to generate trajectory

Posted: Fri Feb 21, 2020 2:37 pm
by HC766
Hi, sorry for the lately reply. I am using vicon motion capture system to position cf now. I would like to design the trajectory for cf like this:

x = sin(t), y = cos(2t), z = 5. After trajectory designed, I would like to send the trajectory to cf onboard controller(like mellinger controller) and then tracking the trajectory and compare the accuracy of each dimension.

Do you have any advice for this? Thanks!

Re: How to generate trajectory

Posted: Sun Feb 23, 2020 4:44 am
by whoenig
You can follow the example at ... tion-pairs to generate your trajectory (csv-file). This file can be uploaded to the CF before the flight.