#include <stdio.h>
#define TIMEOUT 1.5
int main()
{
switch(ret){
case 0:
printf("No existing robot control program is running.\n");
break;
case 1:
printf("An existing program was running and shut down cleanly.\n");
break;
default:
break;
}
return ret;
}
int rc_kill_existing_process(float timeout_s)
This function is used to make sure any existing program using the PID file is stopped.