Valkyrie 2026
Loading...
Searching...
No Matches
valor::sensors::GamePieceSensor Class Reference
Inheritance diagram for valor::sensors::GamePieceSensor:
valor::sensors::BaseSensor< std::optional< frc::Pose3d > > valor::sensors::BaseSensorCore valor::Loggable

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 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.
void SetPeriodicLevel (LogLevel level)
 Set the logging level for LoggablePeriodic.
template<typename T>
WriteLog (std::string_view field, const T &data, LogLevel level=LogLevel::Normal)
 Publish a value to NetworkTables under the given field.
template<typename T>
ReadLog (std::string_view field, const T &defaultValue={})
 Read a value from NetworkTables for the given field.
template<>
decltype(Loggable::subscribers) ::iterator addSubscriber (std::string_view field, const std::vector< bool > &defaultValue)
template<>
void WriteLogImpl (nt::Publisher *pub, const std::vector< bool > &data)
template<>
std::vector< bool > ReadLogImpl (nt::Subscriber *sub)

Additional Inherited Members

Static Public Member Functions inherited from valor::Loggable
static units::millisecond_t GetLoggingTime ()
static constexpr LoggableGetRoot ()
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

The documentation for this class was generated from the following file: