Page 1 of 1

Unable to locate Crazyflie properly with LPS

Posted: Fri Feb 10, 2017 2:28 pm
by Urinprobe
Hi there,

I'm currently working on setting up a lab for my thesis. While not having much experience with this kind of stuff, the topic is just fascinating.

I have set up all 6 nodes and can can see them in rviz, yet the displayed location of the drone is just utterly wrong.

What steps can I take to debug the problem?

Regards,

Simon

Re: Unable to locate Crazyflie properly with LPS

Posted: Sun Feb 12, 2017 6:52 am
by tariqse
I'm having the same problem as well

Re: Unable to locate Crazyflie properly with LPS

Posted: Mon Feb 13, 2017 11:45 am
by arnaud
Hi,

First I would look at the ranges from the Crazyflie to the anchor. You can do that using rqtplot: Start the hover launchfile, launch rqt_plot, display /crazyflie/ranging/ranges[0] to [5]. This will show you the distance measurement to all the anchor and will allow you to verify that the ranges are correct and the anchor mapping is right: getting closer to anchor address 1 should make /crazyflie/ranging/ranges[0] smaller.

/Arnaud

Re: Unable to locate Crazyflie properly with LPS

Posted: Mon Feb 13, 2017 11:55 am
by Urinprobe
Running rqt_plot returns the following messages in the terminal:

TopicCompleter.update_topics(): could not get message class for topic type "crazyflie_driver/GenericLogData" on topic "/crazyflie/log_ranges"
TopicCompleter.update_topics(): could not get message class for topic type "bitcraze_lps_estimator/RangeArray" on topic "/crazyflie/ranging"
TopicCompleter.update_topics(): could not get message class for topic type "crazyflie_driver/GenericLogData" on topic "/crazyflie/log_kfpos"
TopicCompleter.update_topics(): could not get message class for topic type "crazyflie_driver/GenericLogData" on topic "/crazyflie/log_kfqt"

How do I see the ranges in the window that opens?

Simon

Re: Unable to locate Crazyflie properly with LPS

Posted: Mon Feb 13, 2017 12:19 pm
by arnaud
This looks like you did not source the "devel/setup.bash" workspace file in the console you are launching rqt_plot (https://wiki.bitcraze.io/doc:lps:index#ros)

Re: Unable to locate Crazyflie properly with LPS

Posted: Mon Feb 13, 2017 1:12 pm
by Urinprobe
That did the trick!

Turns out only 2 of the anchors were actually returning non-zero values. Reflashing the firmware and reconfiguring the nodes solved that and I can now properly locate my crazyflie. Thank you!

Re: Unable to locate Crazyflie properly with LPS

Posted: Tue Feb 14, 2017 10:52 am
by arnaud
Glad that it helped! Have fun with autonomous flying :-).