 bool receive_data_from_robot() {
   if(radio.available()){
     while (radio.available()) {         
-      radio.read(&receive_msg, sizeof(receive_msg));       
+      radio.read(&msg_from_robot, sizeof(msg_from_robot));       
     }
     return true;
   }

/**********************************************************/

byte pipe[][6] = {"1Node","2Node","3Node","4Node"}; 
int receive_msg[1]; //pipe number

void setup() {
  Serial.begin(250000);

}

void send_data_to_ROS() {
  Serial.println(msg_from_robot[0]); //Serial.write() may be a better choice for this
  Serial.println(msg_from_robot[1]); //Serial.write() may be a better choice for this
}

bool receive_data_from_ROS() {
  if(Serial.available()){
    int i=0;
    while (Serial.available()) {         
      msg_from_ROS[i] = Serial.read();
    }
    return true;
  }
  return false;
}

void send_data_to_robot() {
  radio.stopListening();
  radio.write(msg_from_ROS, sizeof(msg_from_ROS));
  radio.startListening();
}

void loop() {
