KinematicModel constructor

KinematicModel({
  1. String? name,
  2. Iterable<KinematicLink>? links,
  3. Iterable<KinematicJoint>? joints,
  4. Iterable<String>? outputFrames,
  5. KinematicProperties? properties,
})

Implementation

factory KinematicModel({
  $core.String? name,
  $core.Iterable<KinematicLink>? links,
  $core.Iterable<KinematicJoint>? joints,
  $core.Iterable<$core.String>? outputFrames,
  KinematicProperties? properties,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (links != null) {
    $result.links.addAll(links);
  }
  if (joints != null) {
    $result.joints.addAll(joints);
  }
  if (outputFrames != null) {
    $result.outputFrames.addAll(outputFrames);
  }
  if (properties != null) {
    $result.properties = properties;
  }
  return $result;
}