Environment.cpp
Go to the documentation of this file.
1 #include "Environment.h"
2 
6 
7 using 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 
40 void
42 {
43  robot = value;
44  cdRobot = robot->clone();
45 }
46 
49 {
50  if (scene != nullptr)
51  {
52  return scene;
53  }
54  else
55  {
56  return NULL;
57  }
58 }
59 
60 void
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