![]() |
Autonomy Software C++ 24.5.1
Welcome to the Autonomy Software repository of the Mars Rover Design Team (MRDT) at Missouri University of Science and Technology (Missouri S&T)! API reference contains the source code and other resources for the development of the autonomy software for our Mars rover. The Autonomy Software project aims to compete in the University Rover Challenge (URC) by demonstrating advanced autonomous capabilities and robust navigation algorithms.
|
A helper class to divide a range into blocks. Used by detach_blocks(), submit_blocks(), detach_loop(), and submit_loop(). More...
#include <BS_thread_pool.hpp>
Public Member Functions | |
| blocks (const T first_index_, const T index_after_last_, const std::size_t num_blocks_) noexcept | |
| Construct a blocks object with the given specifications. | |
| T | end (const std::size_t block) const noexcept |
| Get the index after the last index of a block. | |
| std::size_t | get_num_blocks () const noexcept |
| Get the number of blocks. Note that this may be different than the desired number of blocks that was passed to the constructor. | |
| T | start (const std::size_t block) const noexcept |
| Get the first index of a block. | |
A helper class to divide a range into blocks. Used by detach_blocks(), submit_blocks(), detach_loop(), and submit_loop().
| T | The type of the indices. Should be a signed or unsigned integer. |
|
inlinenoexcept |
Construct a blocks object with the given specifications.
| first_index_ | The first index in the range. |
| index_after_last_ | The index after the last index in the range. |
| num_blocks_ | The desired number of blocks to divide the range into. |
|
inlinenodiscardnoexcept |
Get the index after the last index of a block.
| block | The block number. |

|
inlinenodiscardnoexcept |
Get the number of blocks. Note that this may be different than the desired number of blocks that was passed to the constructor.
|
inlinenodiscardnoexcept |
Get the first index of a block.
| block | The block number. |
