Skip to content

Commit

Permalink
Fix wrong effects included
Browse files Browse the repository at this point in the history
  • Loading branch information
gerardcanal committed Oct 30, 2018
1 parent 78c9be8 commit 71060b2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions rosplan_knowledge_base/src/RDDLUtils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,7 @@ namespace KCL_rosplan {
EffectDomainFormula eff_ret;
for (auto it = CPFs.begin(); it != CPFs.end(); ++it) {
if (it->first->valueType->name == "real" or it->first->valueType->name == "int") continue;
if (dynamic_cast<const NumericConstant*>(it->second) != nullptr) continue; // it doesn't have any action
std::map<std::string, std::string> assign; // Replacement for each parameter of the cpd to the parameter of the action as defined in the operator header op_head
EffectDomainFormula eff_i = getOperatorEffects(op_head, it->first, it->second, assign);
join(eff_ret, eff_i);
Expand Down

0 comments on commit 71060b2

Please sign in to comment.