ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
You might want to flush the std::cin before reading:
std::cout << "Give input";
std::cin.clear();
std::cin.ignore(INT_MAX,'\n');
std::getline(std::cin, inputString);