Environment.cpp
Go to the documentation of this file.
1
#include "
Environment.h
"
2
3
#include <
ArmarXCore/core/exceptions/user/NotImplementedYetException.h
>
4
#include <
ArmarXCore/core/logging/LogSender.h
>
5
#include <
ArmarXCore/core/logging/Logging.h
>
6
7
using namespace
armarx
;
8
9
Environment::Environment
()
10
{
11
this->scene =
VirtualRobot::ScenePtr
(
new
VirtualRobot::Scene(
"empty"
));
12
}
13
14
VirtualRobot::RobotPtr
15
Environment::getRobot
()
16
{
17
if
(robot !=
nullptr
)
18
{
19
return
robot;
20
}
21
else
22
{
23
throw
NotImplementedYetException(
"robot null"
);
24
}
25
}
26
27
VirtualRobot::RobotPtr
28
Environment::getCDRobot
()
29
{
30
if
(cdRobot !=
nullptr
)
31
{
32
return
cdRobot;
33
}
34
else
35
{
36
throw
NotImplementedYetException(
"cdRobot null"
);
37
}
38
}
39
40
void
41
Environment::setRobot
(
const
VirtualRobot::RobotPtr
&
value
)
42
{
43
robot =
value
;
44
cdRobot = robot->clone();
45
}
46
47
VirtualRobot::ScenePtr
48
Environment::getScene
()
49
{
50
if
(scene !=
nullptr
)
51
{
52
return
scene;
53
}
54
else
55
{
56
return
NULL;
57
}
58
}
59
60
void
61
Environment::setScene
(
const
VirtualRobot::ScenePtr
&
value
)
62
{
63
scene =
value
;
64
}
armarx::Environment::getCDRobot
VirtualRobot::RobotPtr getCDRobot()
Definition:
Environment.cpp:28
armarx::Environment::setRobot
void setRobot(const VirtualRobot::RobotPtr &value)
Definition:
Environment.cpp:41
scene3D::ScenePtr
std::shared_ptr< Scene > ScenePtr
Definition:
PointerDefinitions.h:36
armarx::Environment::Environment
Environment()
Definition:
Environment.cpp:9
armarx::Environment::getRobot
VirtualRobot::RobotPtr getRobot()
Definition:
Environment.cpp:15
cxxopts::value
std::shared_ptr< Value > value()
Definition:
cxxopts.hpp:855
armarx::Environment::getScene
VirtualRobot::ScenePtr getScene()
Definition:
Environment.cpp:48
NotImplementedYetException.h
armarx::Environment::setScene
void setScene(const VirtualRobot::ScenePtr &value)
Definition:
Environment.cpp:61
LogSender.h
Environment.h
Logging.h
armarx
This file offers overloads of toIce() and fromIce() functions for STL container types.
Definition:
ArmarXTimeserver.cpp:27
VirtualRobot::RobotPtr
std::shared_ptr< class Robot > RobotPtr
Definition:
Bus.h:19
RobotComponents
gui-plugins
RobotTrajectoryDesignerGuiPlugin
Environment.cpp
Generated by
1.8.17