#include <fs_homing.h>
|
| fs::path | GetFilePath () |
| | Get the path of the file to load from and save to.
|
| |
|
| const fs::path | m_swerveHomesPath |
| | Path of persistent storage file relative to home directory.
|
| |
◆ SwerveFSHomingStorage()
| SwerveFSHomingStorage::SwerveFSHomingStorage |
( |
const fs::path & |
swerveHomesPath | ) |
|
|
explicit |
Construct a new File System Homing Storage object.
- Parameters
-
| swerveHomesPath | File path relative to home directory to save into and load from |
◆ GetFilePath()
| fs::path SwerveFSHomingStorage::GetFilePath |
( |
| ) |
|
|
private |
Get the path of the file to load from and save to.
- Returns
- fs::path Absolute path of persistent storage file
◆ Load()
Load absolute positions that represent 0 degree module orientations.
- Returns
- Saved module positions if they exist, otherwise std::nullopt to indicate failure
Implements argos_lib::SwerveHomeStorageInterface.
◆ Save()
Save positions as new homes.
- Parameters
-
| homePosition | Positions that represent 0 degree module orientations |
- Returns
- true if save successful, false otherwise
Implements argos_lib::SwerveHomeStorageInterface.
◆ m_swerveHomesPath
| const fs::path argos_lib::SwerveFSHomingStorage::m_swerveHomesPath |
|
private |
Path of persistent storage file relative to home directory.
The documentation for this class was generated from the following files: