[Fawkes Git] branch/bschaepers/asp-aspect: ASP-Aspect: No output if grounding 0 parts.

Bjoern Schaepers bjoern.schaepers at rwth-aachen.de
Wed Dec 14 14:21:31 CET 2016


Changes have been pushed for the project "Fawkes Robotics Software Framework".

Gitweb: http://git.fawkesrobotics.org/fawkes.git
Trac:   http://trac.fawkesrobotics.org

The branch, bschaepers/asp-aspect has been updated
        to  824f59d5605820d04a9c94899d88afa8204f49b1 (commit)
      from  0bc2d4f079241cf59964d32e914a0507c5b1cf24 (commit)

http://git.fawkesrobotics.org/fawkes.git/bschaepers/asp-aspect

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- *Log* ---------------------------------------------------------------
commit 824f59d5605820d04a9c94899d88afa8204f49b1
Author:     Bjoern Schaepers <bjoern.schaepers at rwth-aachen.de>
AuthorDate: Wed Dec 14 14:21:27 2016 +0100
Commit:     Bjoern Schaepers <bjoern.schaepers at rwth-aachen.de>
CommitDate: Wed Dec 14 14:21:27 2016 +0100

    ASP-Aspect: No output if grounding 0 parts.

http://git.fawkesrobotics.org/fawkes.git/commit/824f59d
http://trac.fawkesrobotics.org/changeset/824f59d

- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -


- *Summary* -----------------------------------------------------------
 src/plugins/asp/aspect/clingo_access.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)


- *Diffs* -------------------------------------------------------------

- *commit* 824f59d5605820d04a9c94899d88afa8204f49b1 - - - - - - - - - -
Author:  Bjoern Schaepers <bjoern.schaepers at rwth-aachen.de>
Date:    Wed Dec 14 14:21:27 2016 +0100
Subject: ASP-Aspect: No output if grounding 0 parts.

 src/plugins/asp/aspect/clingo_access.cpp |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

_Diff for modified files_:
diff --git a/src/plugins/asp/aspect/clingo_access.cpp b/src/plugins/asp/aspect/clingo_access.cpp
index e338632..c0e8336 100644
--- a/src/plugins/asp/aspect/clingo_access.cpp
+++ b/src/plugins/asp/aspect/clingo_access.cpp
@@ -435,6 +435,11 @@ ClingoAccess::loadFile(const std::string& path)
 bool
 ClingoAccess::ground(const Clingo::PartSpan& parts)
 {
+	if ( parts.empty() )
+	{
+		return true;
+	} //if ( parts.empty() )
+
 	MutexLocker locker(&ControlMutex);
 	if ( Solving )
 	{




-- 
Fawkes Robotics Framework                 http://www.fawkesrobotics.org


More information about the fawkes-commits mailing list