src/nodes/src/user_IO.cpp
// Gets input from terminal and publishes
Gets input from terminal and publishes
Gets input from terminal and publishes
void UserIO::getInput() {
        std::string data {""};
        getline(std::cin, data);
        std_msgs::String message;
        message.data = data;
        mPub.publish(message);
    }
void UserIO :: getInput ( ) { std :: string data { " " } ; getline ( std :: cin , data ) ; std_msgs :: String message ; message . data = data ; mPub . publish ( message ) ; }
Gets input from terminal and publishes
Gets input from terminal and publishes