|
Valkyrie 2026
|
Public Member Functions | |
| GamePieceSensor (std::shared_ptr< cameras::Limelight > camera) | |
| void | UpdateRelativeToCenter () |
| Public Member Functions inherited from valor::sensors::BaseSensor< std::optional< frc::Pose3d > > | |
| virtual void | Reset () |
| Reset the sensor state. | |
| void | SetGetter (std::function< std::optional< frc::Pose3d >()> _lambda) |
| Set the lambda function to fetch sensor data. | |
| void | ApplyPostProcessing (std::function< std::optional< frc::Pose3d >(std::optional< frc::Pose3d >)> func) |
| Set a post-processing function for sensor data. | |
| std::optional< frc::Pose3d > | Get () const |
| Get the current sensor state. | |
| void | Refresh () override |
| Refresh the sensor state. | |
| Public Member Functions inherited from valor::sensors::BaseSensorCore | |
| virtual void | Calculate () |
| Public Member Functions inherited from valor::Loggable | |
| Loggable (std::string_view name) | |
| Construct a Loggable that registers a top-level table name. | |
| Loggable (std::shared_ptr< nt::NetworkTable > table) | |
| Construct a Loggable that uses an existing NetworkTable. | |
| Loggable ()=default | |
| Default construct an uninitialized Loggable. | |
| void | LogChild (std::string_view name, Loggable *child) |
| Register a child Loggable under a named subtree. | |
| void | LogChild (std::string_view name, wpi::Sendable *child) |
| Register a child Sendable under a named subtree. | |
| bool | WriteLog (std::string_view field, bool data) |
| double | WriteLog (std::string_view field, double data) |
| void | WriteLog (std::string_view field, const std::vector< double > &data) |
|
template<typename U> requires units::traits::is_unit_t_v<U> | |
| U | WriteLog (std::string_view field, U data) |
| void | WriteLog (std::string_view field, std::string_view data) |
|
template<typename E> requires std::is_enum_v<E> | |
| void | WriteLog (std::string_view field, E data) |
|
template<typename T> requires wpi::StructSerializable<T> && (!std::is_arithmetic_v<T>) | |
| void | WriteLog (std::string_view field, const T &data) |
|
template<typename T> requires wpi::StructSerializable<T> && (!std::is_arithmetic_v<T>) | |
| void | WriteLog (std::string_view field, const std::vector< T > &data) |
| bool | ReadLog (std::string_view field, bool defaultValue) |
| double | ReadLog (std::string_view field, double defaultValue) |
|
template<typename U> requires units::traits::is_unit_t_v<U> | |
| U | ReadLog (std::string_view field, U defaultValue) |
Additional Inherited Members | |
| Static Public Member Functions inherited from valor::Loggable | |
| static constexpr Loggable & | GetRoot () |
| Static Public Attributes inherited from valor::sensors::BaseSensorCore | |
| static constexpr units::millisecond_t | LOOP_PERIOD = frc::TimedRobot::kDefaultPeriod / 2 |
| Protected Member Functions inherited from valor::Loggable | |
| virtual void | OnLoggingStart () |
| Hook invoked when logging is started for this object. | |
| virtual void | LoggablePeriodic () |
| Periodic callback for logging updates. | |
| Protected Attributes inherited from valor::sensors::BaseSensor< std::optional< frc::Pose3d > > | |
| std::function< std::optional< frc::Pose3d >()> | sensorLambda |
| Lambda function to fetch sensor data. | |
| std::function< std::optional< frc::Pose3d >(std::optional< frc::Pose3d >)> | postProcessor |
| Lambda function to post-process sensor data. | |
| std::optional< frc::Pose3d > | prevState |
| Previous and current sensor states. | |
| std::optional< frc::Pose3d > | currState |