Better wall avoidance.

This commit is contained in:
2016-06-21 13:33:57 -04:00
parent df09ae9dfe
commit 1283ccfff1
6 changed files with 68 additions and 31 deletions

View File

@@ -35,21 +35,19 @@ const uint32_t NUM_ROBOTS = 4;
static bool done = false;
extern "C" {
void handler(int signal) {
done = true;
}
extern "C" void handler(int signal) {
done = true;
}
void * robot_thread(void * arg) {
IASSS_Robot * robot = static_cast<IASSS_Robot *>(arg);
extern "C" void * robot_thread(void * arg) {
IASSS_Robot * robot = static_cast<IASSS_Robot *>(arg);
std::cout << "Running robot thread." << std::endl;
std::cout << "Running robot thread." << std::endl;
while(!done)
robot->run();
while(!done)
robot->run();
return NULL;
}
return NULL;
}
int main(int argc, char **argv) {