ctu-mrs / mrs_uav_system

The entry point to the MRS UAV system.
https://ctu-mrs.github.io/
BSD 3-Clause "New" or "Revised" License
436 stars 86 forks source link

Problem running the Optical Flow example scripts #41

Closed lkova closed 3 years ago

lkova commented 3 years ago

I am unable to takeoff with a drone in any example that uses optical flow as a primary sensor. The problem is that odometry is not initialized and the optical flow velocity is not published.

The following is the terminal output from the script example_tmux_scripts/one_drone_optic_flow, but it happens with other optical flow examples as well.

one_drone_optic_flow

What can be the problem with this and how can I solve it?

Thanks!

DanHert commented 3 years ago

Hello! Did you actually clone and compile the optic flow repository? - https://github.com/ctu-mrs/mrs_optic_flow It will not be cloned by the default install script.

So clone the optic flow repository, run the install script from the install folder, link it to you workspace and compile.

Dan H.

lkova commented 3 years ago

Thanks! That was the solution to my problem.

Btw, thanks for sharing this with the community, it has been of great help.

Luka