MMMExportTest.cpp
Go to the documentation of this file.
1 /*
2  * This file is part of ArmarX.
3  *
4  * ArmarX is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU General Public License version 2 as
6  * published by the Free Software Foundation.
7  *
8  * ArmarX is distributed in the hope that it will be useful, but
9  * WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program. If not, see <http://www.gnu.org/licenses/>.
15  *
16  * @package ArmarXGuiPlugins::RobotTrajectoryDesigner::ImportExport
17  * @author Liran Dattner
18  * @date 2018
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 #define BOOST_TEST_MODULE ArmarX::RobotTrajectoryDesigner::MMMImporter
23 #define ARMARX_BOOST_TEST
24 
25 #include <boost/test/unit_test.hpp>
26 
27 #include "../MMMExporter.h"
28 
29 using namespace armarx;
30 
31 //Check if MMMExporter exports the user points correctly
32 BOOST_AUTO_TEST_CASE(MMMExportUserPointsTest)
33 {
34  /*
35  std::vector<std::vector<double>> data1 =
36  {
37  {1, 2, 3, 4, 5},
38  {1, 2, 3, 4, 5},
39  {1, 2, 3, 4, 5},
40  {1, 2, 3, 4, 5},
41  {1, 2, 3, 4, 5},
42  {1, 2, 3, 4, 5},
43  {1, 2, 3, 4, 5}
44  };
45  std::vector<std::vector<double>> data2 =
46  {
47  {5, 6, 7, 8, 9},
48  {5, 6, 7, 8, 9},
49  {5, 6, 7, 8, 9},
50  {5, 6, 7, 8, 9},
51  {5, 6, 7, 8, 9},
52  {5, 6, 7, 8, 9},
53  {5, 6, 7, 8, 9}
54  };
55  std::vector<std::vector<double>> data3 =
56  {
57  {9, 10, 11, 12, 13},
58  {9, 10, 11, 12, 13},
59  {9, 10, 11, 12, 13},
60  {9, 10, 11, 12, 13},
61  {9, 10, 11, 12, 13},
62  {9, 10, 11, 12, 13},
63  {9, 10, 11, 12, 13}
64  };
65 
66  Ice::DoubleSeq timestamps1 = {0, 1, 2, 3, 4};
67  Ice::DoubleSeq timestamps2 = {0, 1, 2, 3, 4};
68  Ice::DoubleSeq timestamps3 = {0, 1, 2, 3, 4};
69  Ice::StringSeq dimensionNames = {"a", "b", "c", "d", "e", "f", "g"};
70 
71  TrajectoryPtr traj1(new Trajectory(data1, timestamps1, dimensionNames));
72  TrajectoryPtr traj2(new Trajectory(data2, timestamps2, dimensionNames));
73  TrajectoryPtr traj3(new Trajectory(data3, timestamps3, dimensionNames));
74  */
75  //Cant test without being able to set DesignerTrajectories
76  /*
77  DesignerTrajectoryPtr d1 = new DesignerTrajectory();
78  DesignerTrajectoryPtr d2 = new DesignerTrajectory();
79  DesignerTrajectoryPtr d3 = new DesignerTrajectory();
80  */
81 
82  BOOST_CHECK_EQUAL(1, 1);
83 }
84 
85 //Check if MMMExporter exports the input Trajectory correctly
86 BOOST_AUTO_TEST_CASE(MMMExportTrajectoryTest)
87 {
88  BOOST_CHECK_EQUAL(1, 1);
89 }
90 
91 //Check if MMMExporter exports complete Trajectories correctly.
92 BOOST_AUTO_TEST_CASE(MMMExportCompleteTest)
93 {
94  BOOST_CHECK_EQUAL(1, 1);
95 }
BOOST_AUTO_TEST_CASE
BOOST_AUTO_TEST_CASE(MMMExportUserPointsTest)
Definition: MMMExportTest.cpp:32
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition: ArmarXTimeserver.cpp:28