8 #include "knowrob/formulas/ModalFormula.h"
9 #include "knowrob/integration/python/utils.h"
10 #include "knowrob/terms/Numeric.h"
16 modalOperator_(std::move(modalOperator)) {
20 const auto &x =
static_cast<const ModalFormula &
>(other);
39 return std::make_shared<ModalFormula>(
B(), phi);
43 return std::make_shared<ModalFormula>(
K(), phi);
47 return std::make_shared<ModalFormula>(
P(), phi);
51 return std::make_shared<ModalFormula>(
H(), phi);
61 op->setPerspective(perspective);
67 return beliefOperator;
72 op->setPerspective(perspective);
78 op->setPerspective(perspective);
79 op->setConfidence(confidence);
85 op->setConfidence(confidence);
96 op->setTimeInterval(timeInterval);
107 op->setTimeInterval(timeInterval);
116 class_<ModalFormula, std::shared_ptr<ModalFormula>, bases<CompoundFormula>>
117 (
"ModalFormula", init<const ModalOperatorPtr &, const FormulaPtr &>())
std::shared_ptr< ModalFormula > K(const FormulaPtr &phi)
std::shared_ptr< ModalFormula > P(const FormulaPtr &phi)
std::shared_ptr< ModalFormula > B(const FormulaPtr &phi)
std::shared_ptr< ModalFormula > H(const FormulaPtr &phi)
void createType< ModalFormula >()
std::shared_ptr< Formula > FormulaPtr
std::shared_ptr< const ModalOperator > ModalOperatorPtr