application.cpp
Go to the documentation of this file.
00001 
00023 #include "micros_swarm/application.h"
00024 
00025 namespace micros_swarm{
00026 
00027     Application::Application()
00028     {
00029         rth = Singleton<RuntimeHandle>::getSingleton();
00030     }
00031 
00032     Application::~Application()
00033     {
00034         rth.reset();
00035     }
00036 
00037     //application api
00038     const int Application::get_id()
00039     {
00040         return rth->getRobotID();
00041     }
00042 
00043     const Base& Application::get_base()
00044     {
00045         return rth->getRobotBase();
00046     }
00047 
00048     void Application::set_base(const Base& robot_base)
00049     {
00050         rth->setRobotBase(robot_base);
00051     }
00052 
00053     float Application::get_dis()
00054     {
00055         return rth->getNeighborDistance();
00056     }
00057 
00058     void Application::set_dis(float neighbor_distance)
00059     {
00060         rth->setNeighborDistance(neighbor_distance);
00061     }
00062 };


micros_swarm
Author(s):
autogenerated on Thu Jun 6 2019 18:52:14