MRXT: The Multi-Robot eXploration Tool
Multi-Robot autonomous exploration and mapping simulator.
|
00001 #include "planner.h" 00002 00003 00004 planner::planner(): 00005 ComThread(), 00006 mySlam(0), 00007 reac(0), 00008 rbase(0), 00009 number(0), 00010 logstr(0) 00011 { 00012 00013 } 00014 planner::~planner(){ 00015 delete [] logstr; 00016 } 00017 00018 00019 void planner::setSlam(slamInterface& slamProc){ 00020 mySlam = &slamProc; 00021 } 00022 00023 void planner::setRobot(int n){ 00024 number = n; 00025 } 00026 00027 void planner::setReactive(reactive& r){ 00028 reac = &r; 00029 } 00030 00031 void planner::setLogName(const char* str){ 00032 logstr = new char[strlen(str)+1]; 00033 strcpy(logstr,str); 00034 } 00035 00036 void planner::setRBase(robotBase& rb){ 00037 rbase= &rb; 00038 }