Main Page
Namespaces
Classes
Files
File List
File Members
src
application.cpp
Go to the documentation of this file.
1
23
#include "
micros_swarm/application.h
"
24
25
namespace
micros_swarm
{
26
27
Application::Application
()
28
{
29
rth
=
Singleton<RuntimeHandle>::getSingleton
();
30
}
31
32
Application::~Application
()
33
{
34
rth
.reset();
35
}
36
37
//application api
38
const
int
Application::get_id
()
39
{
40
return
rth
->getRobotID();
41
}
42
43
const
Base
&
Application::get_base
()
44
{
45
return
rth
->getRobotBase();
46
}
47
48
void
Application::set_base
(
const
Base
& robot_base)
49
{
50
rth
->setRobotBase(robot_base);
51
}
52
53
float
Application::get_dis
()
54
{
55
return
rth
->getNeighborDistance();
56
}
57
58
void
Application::set_dis
(
float
neighbor_distance)
59
{
60
rth
->setNeighborDistance(neighbor_distance);
61
}
62
};
micros_swarm::Application::get_id
const int get_id()
Definition:
application.cpp:38
micros_swarm::Application::Application
Application()
Definition:
application.cpp:27
application.h
micros_swarm
Definition:
app_manager.h:44
micros_swarm::Application::rth
boost::shared_ptr< RuntimeHandle > rth
Definition:
application.h:53
micros_swarm::Application::set_base
void set_base(const Base &robot_base)
Definition:
application.cpp:48
micros_swarm::Application::set_dis
void set_dis(float neighbor_distance)
Definition:
application.cpp:58
micros_swarm::Application::~Application
virtual ~Application()
Definition:
application.cpp:32
micros_swarm::Application::get_dis
float get_dis()
Definition:
application.cpp:53
micros_swarm::Singleton::getSingleton
static boost::shared_ptr< T > getSingleton()
Definition:
singleton.h:70
micros_swarm::Application::get_base
const Base & get_base()
Definition:
application.cpp:43
micros_swarm::Base
Definition:
data_type.h:38
micros_swarm
Author(s):
autogenerated on Mon Jun 10 2019 14:02:06