2024-11-27 13:40:58 +01:00

28 lines
673 B
C++

#pragma once
#include "Thing.h"
namespace Passer {
namespace RoboidControl {
/// @brief A sensor is a thing which can perform measurements in the environment
class Sensor : public Thing {
public:
/// @brief Default Constructor for a Sensor
Sensor();
/// @brief Sets the parent Thing
/// @param parent The Thing which should become the parent
virtual void SetParent(Thing *parent) override;
virtual void PublishState() {};
virtual void *GetValue() { return nullptr; };
void ConnectTo(Thing *thing);
void ConnectTo(Thing *rootThing, const char *thingName);
};
} // namespace RoboidControl
} // namespace Passer
using namespace Passer::RoboidControl;