6#include <wpi/hal/Value.h>
11#include <unordered_map>
13#include <wpi/hal/SimDevice.hpp>
76 Sensor(std::string sensorName, std::vector<SensorData> fields);
98 void AddSimTrigger(
const std::string& field, HAL_Value value, std::function<
bool()> trigger);
101 std::string m_sensorName;
102 std::optional<HAL_SimDeviceHandle> m_simDevice;
103 std::unordered_map<std::string, SensorData> m_simData;
Definition SimSensorConfig.hpp:29
Definition SensorData.hpp:24
HAL_SimDeviceHandle GetDevice() const
SensorData & GetField(const std::string &name)
void AddSimTrigger(const std::string &field, HAL_Value value, std::function< bool()> trigger)
int GetAsInt(const std::string &name) const
const SensorData & GetField(const std::string &name) const
Sensor(std::string sensorName, std::vector< SensorData > fields)
double GetAsDouble(const std::string &name) const
int64_t GetAsLong(const std::string &name) const
bool GetAsBoolean(const std::string &name) const
Sensor(const yams::mechanisms::config::SimSensorConfig &cfg)
Definition ArmConfig.hpp:17
Definition SimSensorConfig.hpp:15