I am familiar with the python waypoint following script, and it works! I was wondering is there a similar example in ROS? I want to do it through ROS because I have to record flight data through bag.
Thanks!

I have related question. If instead of position, I want to give CF roll or pitch reference (for a few seconds, and then return it to zero), while in hover, how do I do this? As soon as CF receives the roll or pitch reference, position controller responsible for remaining CF at hover will kick in and (I guess) something weird will happen.

A quadrotor with upward pointing rotors cannot pitch while staying at the same position by design (because all force vectors point upwards only). You can, however, just control attitude and not position; this is what's essentially happening when you fly manually using a joystick.

A quadrotor with upward pointing rotors cannot pitch while staying at the same position by design (because all force vectors point upwards only). You can, however, just control attitude and not position; this is what's essentially happening when you fly manually using a joystick.

Thank you Whoenig for your patience and hard work!, I'll give it a try on Monday.
Regarding pitch/roll, yes, I am familiar with the quadrotor dynamics, but I guess I wasn't clear. I want quad to hover at the initial position and just keep it at the constant altitude. Then I want to send pitch/roll angle references and I expect it to change the position, that's not an issue. I just don't know which launch file and topic should I use to accomplish this. Basically, I want to move quad using pitch/roll references instead of postion reference x/y. In the same way we do it with joystick inputs in dwm_loc_ekf_hover.launch, but instead of using joystick i want to publish angle reference. I am stuck with this problem, and I hope I have made myself clear enough.