Skip to content

Commit

Permalink
Removed test-function for getting controllers.
Browse files Browse the repository at this point in the history
  • Loading branch information
GameMonkey committed Nov 19, 2020
1 parent 3926a66 commit b02f606
Showing 1 changed file with 1 addition and 28 deletions.
29 changes: 1 addition & 28 deletions Simulation/controllers/SingleThreadUppaalBot.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,42 +34,15 @@ void SingleThreadUppaalBot::log_helper(std::string message, bool newLine, bool p
std::ofstream logFile;
logFile.open(std::string{std::filesystem::current_path()} + "/log.txt", std::ofstream::app);
std::string name = printName ? m_strId + ": " : "";



argos::LOG << name << message;
logFile << name << message;

if(newLine) {
argos::LOG << std::endl;
logFile << std::endl;
}


}

/*
void test_function(){
argos::CSpace::TMapPerType &tBotMap =
argos::CLoopFunctions().GetSpace().GetEntitiesByType("foot-bot");
for (auto it = tBotMap.begin(); it != tBotMap.end();
++it) {
argos::CFootBotEntity *pcBot = argos::any_cast<argos::CFootBotEntity *>(it->second);
//argos::CCI_Controller& controller = pcBot->GetControllableEntity().GetController();
SingleThreadUppaalBot& testClass = dynamic_cast<SingleThreadUppaalBot&>(pcBot->GetControllableEntity().GetController());
testClass.hurra = "Good job!";
}
for (auto it = tBotMap.begin(); it != tBotMap.end();
++it) {
argos::CFootBotEntity *pcBot = argos::any_cast<argos::CFootBotEntity *>(it->second);
//argos::CCI_Controller& controller = pcBot->GetControllableEntity().GetController();
SingleThreadUppaalBot& testClass = dynamic_cast<SingleThreadUppaalBot&>(pcBot->GetControllableEntity().GetController());
print_string(testClass.hurra);
}
}
*/

void SingleThreadUppaalBot::Init(argos::TConfigurationNode& t_node) {
/*
Expand Down

0 comments on commit b02f606

Please sign in to comment.