init method

  1. @override
Future<bool> init()
override

Initializes the connection to the device.

Implementation

@override
Future<bool> init() async {
  var result = true;
  result &= await gps.init();
  result &= await imu.init();
  result &= await drive.init();
  result &= await server.init();
  result &= await pathfinder.init();
  result &= await detector.init();
  result &= await realsense.init();
  result &= await orchestrator.init();
  if (result) {
    logger.info("Autonomy initialized");
  } else {
    logger.warning("Autonomy could not initialize");
  }
  return result;
}