StringBuffer retBuf = new StringBuffer( "START SENSOR SERVICES: " );
try
{
retBuf.append( "FRONT" );
getSensorService( SENSOR_FRONT ).start( new Start( ) );
retBuf.append( ",REAR" );
getSensorService( SENSOR_REAR ).start( new Start( ) );
retBuf.append( ",LEFT" );
getSensorService( SENSOR_LEFT ).start( new Start( ) );
retBuf.append( ",RIGHT" );
getSensorService( SENSOR_RIGHT ).start( new Start( ) );
}
catch ( Exception e )
{
retBuf.append( " !!!FAILED TO START ALL SENSORS!!!" );
e.printStackTrace( System.out );