createSimulationApplication method
- required String name,
- required RobotSoftwareSuite robotSoftwareSuite,
- required SimulationSoftwareSuite simulationSoftwareSuite,
- required List<SourceConfig> sources,
- RenderingEngine? renderingEngine,
- Map<String, String> ? tags,
Creates a simulation application.
May throw InvalidParameterException. May throw ResourceAlreadyExistsException. May throw LimitExceededException. May throw ThrottlingException. May throw InternalServerException. May throw IdempotentParameterMismatchException.
Parameter name :
The name of the simulation application.
Parameter robotSoftwareSuite :
The robot software suite (ROS distribution) used by the simulation
application.
Parameter simulationSoftwareSuite :
The simulation software suite used by the simulation application.
Parameter sources :
The sources of the simulation application.
Parameter renderingEngine :
The rendering engine for the simulation application.
Parameter tags :
A map that contains tag keys and tag values that are attached to the
simulation application.
Implementation
Future<CreateSimulationApplicationResponse> createSimulationApplication({
  required String name,
  required RobotSoftwareSuite robotSoftwareSuite,
  required SimulationSoftwareSuite simulationSoftwareSuite,
  required List<SourceConfig> sources,
  RenderingEngine? renderingEngine,
  Map<String, String>? tags,
}) async {
  ArgumentError.checkNotNull(name, 'name');
  _s.validateStringLength(
    'name',
    name,
    1,
    255,
    isRequired: true,
  );
  ArgumentError.checkNotNull(robotSoftwareSuite, 'robotSoftwareSuite');
  ArgumentError.checkNotNull(
      simulationSoftwareSuite, 'simulationSoftwareSuite');
  ArgumentError.checkNotNull(sources, 'sources');
  final $payload = <String, dynamic>{
    'name': name,
    'robotSoftwareSuite': robotSoftwareSuite,
    'simulationSoftwareSuite': simulationSoftwareSuite,
    'sources': sources,
    if (renderingEngine != null) 'renderingEngine': renderingEngine,
    if (tags != null) 'tags': tags,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/createSimulationApplication',
    exceptionFnMap: _exceptionFns,
  );
  return CreateSimulationApplicationResponse.fromJson(response);
}