Fixed format of PDDL debug output.
This commit is contained in:
parent
cbc9c86edd
commit
3d9bf2582f
@ -344,11 +344,12 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Action
|
|||||||
if (!action.parameters.empty())
|
if (!action.parameters.empty())
|
||||||
{
|
{
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
pddl::detail::printIndentedNewline(stream, printContext);
|
||||||
stream << "(" << colorlog::Keyword(":parameters");
|
stream << colorlog::Keyword(":parameters");
|
||||||
|
|
||||||
printContext.indentationLevel++;
|
printContext.indentationLevel++;
|
||||||
|
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
pddl::detail::printIndentedNewline(stream, printContext);
|
||||||
|
stream << "(";
|
||||||
print(stream, action.parameters, printContext);
|
print(stream, action.parameters, printContext);
|
||||||
stream << ")";
|
stream << ")";
|
||||||
|
|
||||||
@ -358,13 +359,12 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Action
|
|||||||
if (action.precondition)
|
if (action.precondition)
|
||||||
{
|
{
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
pddl::detail::printIndentedNewline(stream, printContext);
|
||||||
stream << "(" << colorlog::Keyword(":precondition");
|
stream << colorlog::Keyword(":precondition");
|
||||||
|
|
||||||
printContext.indentationLevel++;
|
printContext.indentationLevel++;
|
||||||
|
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
pddl::detail::printIndentedNewline(stream, printContext);
|
||||||
print(stream, action.precondition.value(), printContext);
|
print(stream, action.precondition.value(), printContext);
|
||||||
stream << ")";
|
|
||||||
|
|
||||||
printContext.indentationLevel--;
|
printContext.indentationLevel--;
|
||||||
}
|
}
|
||||||
@ -372,13 +372,12 @@ inline colorlog::ColorStream &print(colorlog::ColorStream &stream, const Action
|
|||||||
if (action.effect)
|
if (action.effect)
|
||||||
{
|
{
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
pddl::detail::printIndentedNewline(stream, printContext);
|
||||||
stream << "(" << colorlog::Keyword(":effect");
|
stream << colorlog::Keyword(":effect");
|
||||||
|
|
||||||
printContext.indentationLevel++;
|
printContext.indentationLevel++;
|
||||||
|
|
||||||
pddl::detail::printIndentedNewline(stream, printContext);
|
pddl::detail::printIndentedNewline(stream, printContext);
|
||||||
print(stream, action.effect.value(), printContext);
|
print(stream, action.effect.value(), printContext);
|
||||||
stream << ")";
|
|
||||||
|
|
||||||
printContext.indentationLevel--;
|
printContext.indentationLevel--;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user