SettingControllerTest.cpp
Go to the documentation of this file.
1
#define BOOST_TEST_MODULE ArmarX::RobotTrajectoryDesigner::Controller::SettingController
2
#define ARMARX_BOOST_TEST
3
4
#include "../../../../../build/testing/RobotTrajectoryDesigner/Test.h"
5
6
#include "../SettingController.h"
7
#include "ui_SettingTab.h"
8
#include <QApplication>
9
#include <QWidget>
10
#include <QComboBox>
11
#include <QMainWindow>
12
#include "../View/SettingTab.h"
13
#include <memory>
14
#include <VirtualRobot/XML/RobotIO.h>
15
#include <iostream>
16
17
using namespace
armarx
;
18
using namespace
VirtualRobot
;
19
using namespace
std
;
20
21
struct
F
22
{
23
F
()
24
{
25
BOOST_TEST_MESSAGE(
"Setup fixture with setting tab and controller"
);
26
i = 0;
27
//settingTab = make_shared<SettingTab>(0);
28
//settingController = make_shared<SettingController>(settingTab);
29
//tcp = settingTab->getSettingTab()->tcpComboBox;
30
}
31
~F
()
32
{
33
BOOST_TEST_MESSAGE(
"Teardown fixture"
);
34
}
35
36
int
i
;
37
//SettingTabPtr settingTab;
38
//SettingControllerPtr settingController;
39
//QComboBox* tcp;
40
};
41
42
BOOST_FIXTURE_TEST_CASE
(initTCPComboBoxTest,
F
)
43
{
44
RobotPtr
robot = RobotIO::loadRobot(
45
"../../../../../data/RobotTrajectoryDesigner/Resources/ArmarIII.xml"
);
46
Environment
* environment =
new
Environment
();
47
environment->
setRobot
(robot);
48
// Environment::setRobot(robot);
49
// if (environment->getRobot() == NULL)
50
// {
51
// BOOST_TEST_MESSAGE("Robot is NULL");
52
// }
53
//cout << environment->getRobot()->getRobotNodeSets().size() << endl;
54
//BOOST_CHECK(tcp->count() > 0);
55
//QStringList* rns = new QStringList;
56
//for (int i = 0; i < tcp->count(); i++)
57
//{
58
// rns->append(tcp->itemText(i));
59
//}
60
61
// BOOST_CHECK(rns->contains(QString::fromStdString("Torso")));
62
// BOOST_CHECK(rns->contains(QString::fromStdString("TorsoHeadColModel")));
63
// BOOST_CHECK(rns->contains(QString::fromStdString("PlatformTorsoColModel")));
64
// BOOST_CHECK(rns->contains(QString::fromStdString("PlatformTorsoHeadColModel")));
65
// BOOST_CHECK(rns->contains(QString::fromStdString("TorsoLeftArm")));
66
// BOOST_CHECK(rns->contains(QString::fromStdString("TorsoRightArm")));
67
// BOOST_CHECK(rns->contains(QString::fromStdString("TorsoBothArms")));
68
// BOOST_CHECK(rns->contains(QString::fromStdString("Robot")));
69
// BOOST_CHECK(rns->contains(QString::fromStdString("PlatformYawTorsoLeftArm")));
70
// BOOST_CHECK(rns->contains(QString::fromStdString("PlatformTorsoRightArm")));
71
}
72
VirtualRobot
Definition:
FramedPose.h:43
F::i
int i
Definition:
SettingControllerTest.cpp:36
armarx::Environment::setRobot
void setRobot(const VirtualRobot::RobotPtr &value)
Definition:
Environment.cpp:37
armarx::Environment
Definition:
Environment.h:10
F::F
F()
Definition:
SettingControllerTest.cpp:23
F::~F
~F()
Definition:
SettingControllerTest.cpp:31
BOOST_FIXTURE_TEST_CASE
BOOST_FIXTURE_TEST_CASE(initTCPComboBoxTest, F)
Definition:
SettingControllerTest.cpp:42
std
Definition:
Application.h:66
F
Definition:
ExportDialogControllerTest.cpp:16
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:28
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition:
Bus.h:18
RobotComponents
gui-plugins
RobotTrajectoryDesignerGuiPlugin
Controller
Test
SettingControllerTest.cpp
Generated on Sat Oct 12 2024 09:14:13 for armarx_documentation by
1.8.17