Control Libraries 6.3.4
Loading...
Searching...
No Matches
Event.cpp
1#include "state_representation/parameters/Event.hpp"
2
3namespace state_representation {
4
5Event::Event(const std::string& name) : Predicate(name), previous_predicate_value_(false) {}
6
7std::ostream& operator<<(std::ostream& os, const Event& event) {
8 os << " Event " << event.get_name() << ": " << event.get_value();
9 return os;
10}
11}// namespace state_representation
An event is a predicate with memory. Its purpose is to be true only once and change value only when t...
Definition: Event.hpp:14
Event(const std::string &name)
Constructor with name of the predicate and default false value.
Definition: Event.cpp:5
A predicate is a boolean parameter as in the logic formalism.
Definition: Predicate.hpp:11
Core state variables and objects.
std::ostream & operator<<(std::ostream &os, const Ellipsoid &ellipsoid)
Definition: Ellipsoid.cpp:185