From fccf566a957b4321bd8a2baf9e1a58a04c7bef30 Mon Sep 17 00:00:00 2001
From: Mirko Waechter <mirko.waechter@kit.edu>
Date: Wed, 19 Aug 2015 12:33:11 +0200
Subject: [PATCH] dmp test: relative path

---
 .../DMPComponent/test/DMPComponentTest.cpp     | 18 +++++++++++++-----
 1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/source/RobotComponents/components/DMPComponent/test/DMPComponentTest.cpp b/source/RobotComponents/components/DMPComponent/test/DMPComponentTest.cpp
index 1ba8acd0..465c8191 100644
--- a/source/RobotComponents/components/DMPComponent/test/DMPComponentTest.cpp
+++ b/source/RobotComponents/components/DMPComponent/test/DMPComponentTest.cpp
@@ -54,23 +54,31 @@
 //    return sv;
 //}
 
-BOOST_AUTO_TEST_CASE(test1)
-{
+//bool addedDataDir = false;
+
+//BOOST_AUTO_TEST_CASE(test1)
+//{
 //    armarx::DMPComponent instance;
 //    instance.instantiateDMP(ARMARX_DMPTYPE_BASICDMP);
 
 //    armarx::configMap configs;
 //    configs.insert(armarx::configPair(DMP_PARAMETERS_SPRINGCONSTANT,1.1));
 
-//    instance.setConfigurationMap(configs);
+//    if (!addedDataDir) {
+//        armarx::ArmarXDataPath::addDataPaths(armarx::test::getCmakeValue("PROJECT_DATA_DIR"));
+//        addedDataDir = true;
+//    }
 
-//    instance.readTrajectoryFromFile("/home/yzhou/motions/sampletraj.csv");
+//    instance.setConfigurationMap(configs);
+//    std::string absDMPPath;
+//    armarx::ArmarXDataPath::getAbsolutePath("dmp/sampletraj.csv", absDMPPath);
+//    instance.readTrajectoryFromFile(absDMPPath);
 //    instance.trainDMP();
 //    std::cout << instance.getDMPTypeName() << std::endl;
 
 //    BOOST_CHECK_EQUAL(true, true);
     
-}
+//}
 
 BOOST_AUTO_TEST_CASE(test2){
 //    std::cout << "Start Test2 ..." << std::endl;
-- 
GitLab