src/nodes/src/test_controller_movement.cpp
// Waits for the Movement node to return a message
Waits for the Movement node to return a message
Waits for the Movement node to return a message
void Movement::callback(const std_msgs::String::ConstPtr& message) {
        std::string data = message->data.c_str();
        ros::Duration(3).sleep();
        data = ""; 
        publishData(data);
    }
void Movement :: callback ( const std_msgs :: String :: ConstPtr & message ) { std :: string data = message -> data . c_str ( ) ; ros :: Duration ( 3 ) . sleep ( ) ; data = " " ; publishData ( data ) ; }
Waits for the Movement node to return a message
Waits for the Movement node to return a message
// std::cout << "Movement received " << data << std::endl; // DO STUFF START // if successful // data = "Cannot reach" // if unsuccessful // DO STUFF FINISH