| Line |
Branch |
Exec |
Source |
| 1 |
|
|
// Copyright 2019 Max Planck Gesellschaft and New York University |
| 2 |
|
|
// Authors : Vincent Berenz, Maximilien Naveau |
| 3 |
|
|
|
| 4 |
|
|
#include "real_time_tools/frequency_manager.hpp" |
| 5 |
|
|
|
| 6 |
|
|
#include <pybind11/pybind11.h> |
| 7 |
|
|
#include <pybind11/stl.h> |
| 8 |
|
|
|
| 9 |
|
✗ |
PYBIND11_MODULE(real_time_tools_cpp_bindings, m) |
| 10 |
|
|
{ |
| 11 |
|
✗ |
m.doc() = "real-time wrappers of basic OS tools, like timer and threads."; |
| 12 |
|
|
|
| 13 |
|
✗ |
pybind11::class_<real_time_tools::FrequencyManager>(m, "FrequencyManager") |
| 14 |
|
✗ |
.def(pybind11::init<double>()) |
| 15 |
|
✗ |
.def("wait", &real_time_tools::FrequencyManager::wait); |
| 16 |
|
|
} |
| 17 |
|
|
|