Environment.cpp
Go to the documentation of this file.
1#include "Environment.h"
2
6
7using namespace armarx;
8
10{
11 this->scene = VirtualRobot::ScenePtr(new VirtualRobot::Scene("empty"));
12}
13
16{
17 if (robot != nullptr)
18 {
19 return robot;
20 }
21 else
22 {
23 throw NotImplementedYetException("robot null");
24 }
25}
26
29{
30 if (cdRobot != nullptr)
31 {
32 return cdRobot;
33 }
34 else
35 {
36 throw NotImplementedYetException("cdRobot null");
37 }
38}
39
40void
42{
43 robot = value;
44 cdRobot = robot->clone();
45}
46
47VirtualRobot::ScenePtr
49{
50 if (scene != nullptr)
51 {
52 return scene;
53 }
54 else
55 {
56 return NULL;
57 }
58}
59
60void
61Environment::setScene(const VirtualRobot::ScenePtr& value)
62{
63 scene = value;
64}
VirtualRobot::ScenePtr getScene()
VirtualRobot::RobotPtr getRobot()
VirtualRobot::RobotPtr getCDRobot()
void setRobot(const VirtualRobot::RobotPtr &value)
void setScene(const VirtualRobot::ScenePtr &value)
std::shared_ptr< class Robot > RobotPtr
Definition Bus.h:19
This file offers overloads of toIce() and fromIce() functions for STL container types.