- added code to support the gazebo simulator

This commit is contained in:
ROBOTIS
2016-03-10 19:57:33 +09:00
parent 33462ebfb7
commit 1648993922
3 changed files with 738 additions and 633 deletions

View File

@@ -77,9 +77,7 @@ Robot::Robot(std::string robot_file_path, std::string dev_desc_dir_path)
std::cout << tokens[0] << " added. (baudrate: " << tokens[1] << ")" << std::endl;
ports[tokens[0]] = (PortHandler*)PortHandler::GetPortHandler(tokens[0].c_str());
bool _port_result = ports[tokens[0]]->SetBaudRate(std::atoi(tokens[1].c_str()));
if(_port_result == false)
exit(-1);
ports[tokens[0]]->SetBaudRate(std::atoi(tokens[1].c_str()));
}
else if(session == "device info")
{