LPS node set up ROS

Discussions about all things Bitcraze
Post Reply
artistofcannae
Beginner
Posts: 24
Joined: Thu Nov 07, 2019 12:03 am

LPS node set up ROS

Post by artistofcannae »

Hello All!

So I am trying to use the LPS nodes and ROS to control the crazyflie drones.
I am using this guide:https://www.bitcraze.io/docs/lps-node-f ... aster/ros/

but I am having an issue. In step Run rosdep install bitcraze_lps_estimator to install dependencies

I am having this error


ERROR: Rosdep cannot find all required resources to answer your query
Missing resource bitcraze_lps_estimator
ROS path [0]=/opt/ros/melodic/share/ros
ROS path [1]=/home/edwin/crazyflie_ws/src
ROS path [2]=/opt/ros/melodic/share


Would anyone know why?
kimberly
Bitcraze
Posts: 521
Joined: Fri Jul 06, 2018 11:13 am

Re: LPS node set up ROS

Post by kimberly »

Hi. This repository and documentation you mentione is just for an off board estimation and is quite old and not useful in most cases. Please follow this tutorial instead:

https://www.bitcraze.io/getting-started ... ng-system/
artistofcannae
Beginner
Posts: 24
Joined: Thu Nov 07, 2019 12:03 am

Re: LPS node set up ROS

Post by artistofcannae »

Awesome Thanks!

I just have one more question on the subject matter. So to control the drones autonomously like with the flowdeck can I reuse the same script?
I am asking since I was reading up on the documentation that you linked and it brought me back to here:
https://github.com/bitcraze/crazyflie-l ... r/examples


So can any of those be used with the LPS system?


Thank you again!
kristoffer
Bitcraze
Posts: 322
Joined: Tue Jun 30, 2015 7:47 am

Re: LPS node set up ROS

Post by kristoffer »

Yes in most cases. The scripts that require positioning support can be used with any positioning system as long as it provides the properties needed by the script. If you are using the LPS for positioning, the Mellinger controller will most likely not work (LPS is a bit too noisy) for instance, but most of the scripts should be OK with LPS.
Also note that the Flow deck is a "relative positioning system", that is it sets the origin to the point where it is started, while LPS has an absolute coordinate system fixed in space.
Post Reply