under development

release/4.3a0
Frank Dellaert 2012-06-02 20:48:04 +00:00
parent 8440939f27
commit ca7e9b6919
1 changed files with 37 additions and 0 deletions

View File

@ -0,0 +1,37 @@
/*
* testPlanning.cpp
* @brief develop code for planning example
* @date Feb 13, 2012
* @author Frank Dellaert
*/
#include <gtsam2/discrete/Planner.h>
#include <CppUnitLite/TestHarness.h>
#include <iostream>
#include <fstream>
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);
}
/* ************************************************************************* */