From ca7e9b6919ade7c20e1ea000ec6f3f517e4cd950 Mon Sep 17 00:00:00 2001 From: Frank Dellaert Date: Sat, 2 Jun 2012 20:48:04 +0000 Subject: [PATCH] under development --- .../discrete/tests/testPlanning.cpp | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 gtsam_unstable/discrete/tests/testPlanning.cpp diff --git a/gtsam_unstable/discrete/tests/testPlanning.cpp b/gtsam_unstable/discrete/tests/testPlanning.cpp new file mode 100644 index 000000000..939dd50b2 --- /dev/null +++ b/gtsam_unstable/discrete/tests/testPlanning.cpp @@ -0,0 +1,37 @@ +/* + * testPlanning.cpp + * @brief develop code for planning example + * @date Feb 13, 2012 + * @author Frank Dellaert + */ + +#include +#include +#include +#include + +using namespace std; +using namespace gtsam; + +/* ************************************************************************* */ +TEST_UNSAFE(Planner, allInOne) +{ + // A small planning problem + // First variable is location + DiscreteKey location("location",3), + haveRock("haveRock",2), haveSoil("haveSoil",2), haveImage("haveImage",2), + commRock("commRock",2), commSoil("commSoil",2), commImage("commImage",2), + haveRock("haveRock",2), haveSoil("haveSoil",2), haveImage("haveImage",2); + + // There are 3 actions: + // Drive, communicate, sample +} + + +/* ************************************************************************* */ +int main() { + TestResult tr; + return TestRegistry::runAllTests(tr); +} +/* ************************************************************************* */ +