Added sensor rendering.

This commit is contained in:
2017-03-06 15:24:57 -04:00
parent 39efccb0e4
commit f9aaa9e960
12 changed files with 566 additions and 466 deletions

View File

@@ -25,25 +25,27 @@
#include "robot.hpp"
Robot::Robot(std::string hostname, uint32_t port) {
_host_name = hostname;
_port = port;
namespace ias_ss {
Robot::Robot(std::string hostname, uint32_t port) {
_host_name = hostname;
_port = port;
_p_client = new PlayerCc::PlayerClient(hostname, port);
_p_proxy = new PlayerCc::Position2dProxy(_p_client, 0);
_r_proxy = new PlayerCc::RangerProxy(_p_client, 0);
_p_client = new PlayerCc::PlayerClient(hostname, port);
_p_proxy = new PlayerCc::Position2dProxy(_p_client, 0);
_r_proxy = new PlayerCc::RangerProxy(_p_client, 0);
_p_proxy->RequestGeom();
_r_proxy->RequestGeom();
_r_proxy->RequestConfigure();
}
Robot::~Robot() {
delete _p_proxy;
delete _r_proxy;
delete _p_client;
}
void Robot::log(std::string msg) {
std::cout << "ROBOT(" << _host_name << ":" << _port << ") - " << msg << std::endl;
_p_proxy->RequestGeom();
_r_proxy->RequestGeom();
_r_proxy->RequestConfigure();
}
Robot::~Robot() {
delete _p_proxy;
delete _r_proxy;
delete _p_client;
}
void Robot::log(std::string msg) {
std::cout << "ROBOT(" << _host_name << ":" << _port << ") - " << msg << std::endl;
}
}