application.cpp
Go to the documentation of this file.
1 
24 
25 namespace micros_swarm{
26 
28  {
30  }
31 
33  {
34  rth.reset();
35  }
36 
37  //application api
38  const int Application::get_id()
39  {
40  return rth->getRobotID();
41  }
42 
44  {
45  return rth->getRobotBase();
46  }
47 
48  void Application::set_base(const Base& robot_base)
49  {
50  rth->setRobotBase(robot_base);
51  }
52 
54  {
55  return rth->getNeighborDistance();
56  }
57 
58  void Application::set_dis(float neighbor_distance)
59  {
60  rth->setNeighborDistance(neighbor_distance);
61  }
62 };
boost::shared_ptr< RuntimeHandle > rth
Definition: application.h:53
void set_base(const Base &robot_base)
Definition: application.cpp:48
void set_dis(float neighbor_distance)
Definition: application.cpp:58
static boost::shared_ptr< T > getSingleton()
Definition: singleton.h:70


micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06