Environment.cpp
Go to the documentation of this file.
1
#include "
Environment.h
"
2
#include <
ArmarXCore/core/exceptions/user/NotImplementedYetException.h
>
3
#include <
ArmarXCore/core/logging/LogSender.h
>
4
#include <
ArmarXCore/core/logging/Logging.h
>
5
6
using namespace
armarx
;
7
8
Environment::Environment
()
9
{
10
this->scene =
VirtualRobot::ScenePtr
(
new
VirtualRobot::Scene(
"empty"
));
11
}
12
13
VirtualRobot::RobotPtr
Environment::getRobot
()
14
{
15
if
(robot !=
nullptr
)
16
{
17
return
robot;
18
}
19
else
20
{
21
throw
NotImplementedYetException(
"robot null"
);
22
}
23
}
24
25
VirtualRobot::RobotPtr
Environment::getCDRobot
()
26
{
27
if
(cdRobot !=
nullptr
)
28
{
29
return
cdRobot;
30
}
31
else
32
{
33
throw
NotImplementedYetException(
"cdRobot null"
);
34
}
35
}
36
37
void
Environment::setRobot
(
const
VirtualRobot::RobotPtr
&
value
)
38
{
39
robot =
value
;
40
cdRobot = robot->clone();
41
}
42
43
VirtualRobot::ScenePtr
Environment::getScene
()
44
{
45
if
(scene !=
nullptr
)
46
{
47
return
scene;
48
}
49
else
50
{
51
return
NULL;
52
}
53
}
54
55
void
Environment::setScene
(
const
VirtualRobot::ScenePtr
&
value
)
56
{
57
scene =
value
;
58
}
armarx::Environment::getCDRobot
VirtualRobot::RobotPtr getCDRobot()
Definition:
Environment.cpp:25
armarx::Environment::setRobot
void setRobot(const VirtualRobot::RobotPtr &value)
Definition:
Environment.cpp:37
scene3D::ScenePtr
std::shared_ptr< Scene > ScenePtr
Definition:
PointerDefinitions.h:36
armarx::Environment::Environment
Environment()
Definition:
Environment.cpp:8
armarx::Environment::getRobot
VirtualRobot::RobotPtr getRobot()
Definition:
Environment.cpp:13
cxxopts::value
std::shared_ptr< Value > value()
Definition:
cxxopts.hpp:926
armarx::Environment::getScene
VirtualRobot::ScenePtr getScene()
Definition:
Environment.cpp:43
NotImplementedYetException.h
armarx::Environment::setScene
void setScene(const VirtualRobot::ScenePtr &value)
Definition:
Environment.cpp:55
LogSender.h
Environment.h
Logging.h
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
Environment.cpp
Generated on Sat Oct 12 2024 09:14:13 for armarx_documentation by
1.8.17