MotionConfiguration constructor

MotionConfiguration({
  1. Iterable<ObstacleDetector>? obstacleDetectors,
  2. double? positionPollingFrequencyHz,
  3. double? obstaclePollingFrequencyHz,
  4. double? planDeviationM,
  5. double? linearMPerSec,
  6. double? angularDegsPerSec,
})

Implementation

factory MotionConfiguration({
  $core.Iterable<ObstacleDetector>? obstacleDetectors,
  $core.double? positionPollingFrequencyHz,
  $core.double? obstaclePollingFrequencyHz,
  $core.double? planDeviationM,
  $core.double? linearMPerSec,
  $core.double? angularDegsPerSec,
}) {
  final $result = create();
  if (obstacleDetectors != null) {
    $result.obstacleDetectors.addAll(obstacleDetectors);
  }
  if (positionPollingFrequencyHz != null) {
    $result.positionPollingFrequencyHz = positionPollingFrequencyHz;
  }
  if (obstaclePollingFrequencyHz != null) {
    $result.obstaclePollingFrequencyHz = obstaclePollingFrequencyHz;
  }
  if (planDeviationM != null) {
    $result.planDeviationM = planDeviationM;
  }
  if (linearMPerSec != null) {
    $result.linearMPerSec = linearMPerSec;
  }
  if (angularDegsPerSec != null) {
    $result.angularDegsPerSec = angularDegsPerSec;
  }
  return $result;
}