|
upkie 10.0.0
Open-source wheeled biped robots
|
Utility functions. More...
Classes | |
| class | SynchronousClock |
| Synchronous (blocking) clock. More... | |
Functions | |
| int | clear_shared_memory (const std::string &name) |
| Clear an existing shared-memory file. More... | |
| std::string | datetime_now_string () |
| Generate a date-time string. More... | |
| const std::string | get_log_path (const std::string &log_dir, const std::string &spine_name) |
| Get path to a fresh log file. More... | |
| const bool & | handle_interrupts () |
| Redirect interrupts to setting a global interrupt boolean. More... | |
| double | low_pass_filter (double prev_output, double cutoff_period, double new_input, double dt) |
| Low-pass filter as an inline function. More... | |
| bool | divides (uint32_t number, uint32_t divisor) |
True if and only if divisor divides number. | |
| std::string | random_string (unsigned length=16) |
| Generate a random string. More... | |
| void | configure_cpu (int cpu) |
| Set the current thread to run on a given CPU core. More... | |
| void | configure_scheduler (int priority) |
| Configure the scheduler policy to round-robin for this thread. More... | |
| bool | lock_memory () |
| Lock all memory to RAM so that the kernel doesn't page it to swap. More... | |
Utility functions.