#include <fmt/core.h>
#include <spdlog/spdlog.h>
#include <chrono>
#include <iostream>
#include <thread>
#include "drone/PioneerDrone.hpp"
int main() {
using namespace std::chrono_literals;
using namespace std;
spdlog::set_level(spdlog::level::warn);
this_thread::sleep_for(1s);
cout << fmt::format(
"Depth: {:.3f}", drone.
get_depth()) << endl;
}
float get_depth(bool wait_for_data=true) const
Get the depth.
Class representing a drone.
Definition PioneerDrone.hpp:31