First commit.

This commit is contained in:
miky
2016-06-17 23:41:22 -04:00
commit 38ce92b298
12 changed files with 339 additions and 0 deletions

23
robot.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include "robot.hpp"
Robot::Robot(std::string hostname, uint32_t port) {
_p_client = new PlayerCc::PlayerClient(hostname, port);
_p_proxy = new PlayerCc::Position2dProxy(_p_client, 0);
}
Robot::~Robot() {
delete _p_proxy;
delete _p_client;
}
IASSS_Robot::IASSS_Robot(std::string hostname, uint32_t port) : Robot(hostname, port) {
std::cout << "Creating IAS-SS robot on host \"" << hostname << "\" and port " << port << "." << std::endl;
}
IASSS_Robot::~IASSS_Robot() {
std::cout << "Destroying IAS-SS robot." << std::endl;
}
void IASSS_Robot::run() {
sleep(10);
}