25 #ifndef SRC_TASKS_INCLUDE_CORBO_TASKS_ENVIRONMENT_H_ 26 #define SRC_TASKS_INCLUDE_CORBO_TASKS_ENVIRONMENT_H_ 52 using Ptr = std::shared_ptr<Environment>;
95 bool verify(std::string* msg =
nullptr)
const;
108 #endif // SRC_TASKS_INCLUDE_CORBO_TASKS_ENVIRONMENT_H_ bool hasController() const
Check if a controller has been specified.
Standard environment for control tasks.
ObserverInterface::Ptr getObserverPtr()
Write access to the underlying observer.
ControllerInterface::Ptr getControllerPtr()
Write access to the underlying controller.
void setObserver(ObserverInterface::Ptr observer)
Set observer.
void setController(ControllerInterface::Ptr controller)
Set controller.
bool hasObserver() const
Check if an observer has been specified.
std::shared_ptr< Environment > Ptr
void setPlant(PlantInterface::Ptr plant)
Set plant.
const PlantInterface::Ptr & getPlant() const
Read access to the underlying plant.
Environment()
Default constructor.
bool verify(std::string *msg=nullptr) const
Check if the environment satisfies all requirements (dimensions, ...)
void reset()
Reset environment.
std::shared_ptr< ObserverInterface > Ptr
const ObserverInterface::Ptr & getObserver() const
Read access to the underlying observer.
bool hasPlant() const
Check if a plant has been specified.
std::shared_ptr< PlantInterface > Ptr
PlantInterface::Ptr getPlantPtr()
Write access to the underlying plant.
ControllerInterface::Ptr _controller
const ControllerInterface::Ptr & getController() const
Read access to the underlying controller.
PlantInterface::Ptr _plant
std::shared_ptr< ControllerInterface > Ptr
ObserverInterface::Ptr _observer