Environment.cpp
Go to the documentation of this file.
1 #include "Environment.h"
5 
6 using namespace armarx;
7 
9 {
10  this->scene = VirtualRobot::ScenePtr(new VirtualRobot::Scene("empty"));
11 }
12 
14 {
15  if (robot != nullptr)
16  {
17  return robot;
18  }
19  else
20  {
21  throw NotImplementedYetException("robot null");
22  }
23 }
24 
26 {
27  if (cdRobot != nullptr)
28  {
29  return cdRobot;
30  }
31  else
32  {
33  throw NotImplementedYetException("cdRobot null");
34  }
35 }
36 
38 {
39  robot = value;
40  cdRobot = robot->clone();
41 }
42 
44 {
45  if (scene != nullptr)
46  {
47  return scene;
48  }
49  else
50  {
51  return NULL;
52  }
53 }
54 
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