6 #include <knowrob/formulas/SimpleConjunction.h>
7 #include "knowrob/formulas/Negation.h"
8 #include "knowrob/integration/python/utils.h"
13 std::vector<FormulaPtr> formulae;
14 for (
const auto &literal: literals) {
15 if (literal->isNegated()) {
16 formulae.push_back(std::make_shared<Negation>(literal->predicate()));
18 formulae.push_back(literal->predicate());
36 class_<SimpleConjunction, std::shared_ptr<SimpleConjunction>, bases<Conjunction>>
37 (
"SimpleConjunction", init<const std::vector<FirstOrderLiteralPtr> &>()).
std::vector< FormulaPtr > literalsToFormulae(const std::vector< FirstOrderLiteralPtr > &literals)
SimpleConjunction(const std::vector< FirstOrderLiteralPtr > &literals)
void createType< SimpleConjunction >()
std::shared_ptr< FirstOrderLiteral > FirstOrderLiteralPtr