-
Sign in to the AWS RoboMaker console at https://console.aws.amazon.com/robomaker/.
-
In the left navigation pane, choose Simulation
run, and then choose Simulation
jobs.
-
Choose Create simulation job.
-
On the Simulation configuration page, select
a simulation job duration. Select any value
between 5 minutes and 14 days.
-
Select a Failure behavior. Choose
Fail to terminate the host instance if the
simulation job fails. Choose Continue to keep
the host instance so you can connect and investigate.
If you specify an optional S3 folder in a following step, it
contains simulation data. It is available independent of the
selected failure behavior.
-
For IAM Role, select a role or select
Create new role to create one. AWS RoboMaker
uses this role to access resources on your behalf. It is also used
by your application to access AWS resources like Amazon Rekognition or
Amazon Lex.
-
Optional: In Compute,
select a simulation unit limit. Your simulation is allocated CPU and
memory proportional to the supplied simulation unit limit. A
simulation unit is 1 vcpu and 2GB of memory. The default is 15.
-
Optional: In Output
destination, type in an Amazon S3 folder name where
simulation job output is stored. Optionally, select Create
new S3 folder to create a new Amazon S3 folder.
-
Optional: In Networking,
if your robot application or simulation application accesses
resources on an Amazon VPC, select the VPC, subnets
and security groups. Select all available subnets to ensure all of
your resource limits are available. For more information, see VPCs and Subnets.
If you want to access the simulation job from outside of the VPC,
select Assign public IP.
-
Optionally, under Tags, specify one or more
tags for the simulation job. Tags are words or phrases that act as
metadata for identifying and organizing your AWS resources. Each
tag consists of a key and a value. You can manage tags for your
simulation job on the Simulation Job details
page.
For more about tagging, see Using Cost Allocation Tags in the AWS Billing
and Cost Management User Guide.
-
Choose Next.
-
On the Specify robot application page, under
Robot application, select Create
new application. Optionally, you can select
Choose existing application to use a robot
application that you have already created.
-
Type a
name
for the robot application.
-
Under Container image, specify the Amazon ECR
repository location for the robot application container. For more
information, see Requirements for AWS RoboMaker compatible
containers.
Using $LATEST doesn't protect you from changes in Amazon ECR. When
AWS RoboMaker accesses the repository, it sets it to read-only.
For more information about versioning, see Versioning applications.
-
In Robot application configuration, provide
the Launch Command for your robot
application.
-
Optional: To configure robot application
tools, expand Robot application tools. Select
Use default tools to use preconfigured
tools. Select Customize tools to add, remove,
or edit custom tools to use with the application.
To add a new custom tool:
-
Select Add tool.
-
On
the Add application
tool, specify a Tool
name.
-
Specify the command-line arguments for the tool. You must
include the tool executable name.
-
Choose an Exit behavior. If you
select Fail, the simulation job fails
if the tool exits. Select Restart to
restart the tool. The default is
Restart.
-
Choose to enable or disable UI streaming. UI streaming is
disabled by default.
-
Select Send output to CloudWatch to
record logs for the tool. The logs are available in CloudWatch.
Output is not sent to CloudWatch by default. Custom tools start
only after the main ROS launch process has started.
-
Optional: If your application includes a
graphical user interface, select Run with streaming
session. AWS RoboMaker configures a connection so you can
interact with your application as it is running in the simulation.
You can connect by selecting Robot Application
under Simulation tools on the simulation job
detail page.
-
Optional: If your robot application uses
environment variables, specify the Name and
Value pairs. Environment variable names
must start with A-Z or underscore and consist of A-Z, 0-9 and
underscore. Names beginning with AWS are reserved.
Select Add environment variable to add
additional variables.
You can read environment variables in a launch file using
roslaunch substituion args.
-
Optional: Configure traffic forwarding from
the simulation job port to the application port. Simulation job
networking must be configured in order to specify port mapping for
your robot and simulation applications.
-
Optional: Specify one or more Robot
application upload configurations. A simulation job
output destination must be configured in order to specify upload
configurations. Each configuration specifies an upload behavior, a
Unix glob file matching rule, and a location to place matching
files. For more information about custom uploads, see Adding a custom upload
configuration.
-
Choose Next.
-
On the Specify simulation application page,
select Create new application. Optionally, you
can select Choose existing application to use a
simulation application that you have already created.
-
Type a
name
for the simulation application.
-
Under Container image, specify the Amazon ECR
repository location for the robot application container. For more
information. see . Using
$LATEST
doesn't protect you from changes in Amazon ECR.
When AWS RoboMaker accesses the repository, it sets the repository to
read-only.
For more information about versioning, see Versioning applications.
-
In Simulation application configuration,
provide the Launch Command for your robot
application.
-
Optional: To configure robot application
tools, expand Simulation application tools.
Select Use default tools to use preconfigured
tools. Select Customize tools to add, remove,
or edit custom tools to use with application.
To add a new custom tool:
-
Select Add tool.
-
On the Add application tool, specify
a Tool name.
-
Specify the command-line arguments for the tool. You must
include the tool executable name.
-
Choose an Exit behavior. If you
select Fail, the simulation job fails
if the tool exits. Select Restart to
restart the tool. The default is
Restart.
-
Choose to enable or disable UI streaming. UI streaming is
disabled by default.
-
Select Send output to CloudWatch to
record logs for the tool. The logs are available in CloudWatch.
Output is not sent to CloudWatch by default.
Custom tools start only after the main launch process has
started.
-
Optional: If your application includes a
graphical user interface, select Run with streaming
session. AWS RoboMaker configures a connection so you can
interact with your application as it is running in the simulation.
You can connect by selecting Simulation
Application under Simulation
tools on the simulation job detail page.
-
Optional: If your simulation application uses
environment variables, specify the Name and
Value pairs. Select Add
environment variable to add additional
variables.
-
Optional: Configure traffic forwarding from
the simulation job port to the application port. Simulation job
networking must be configured in order to specify port mapping for
your robot and simulation applications.
-
Optional: Specify one or more
Simulation application upload
configurations. A simulation job output destination
must be configured in order to specify upload configurations. Each
configuration specifies an upload behavior, a Unix glob file
matching rule, and a location to place matching files.
Default upload configurations maintain backwards compatibility
with past simulation job output configurations. The default
configuration is added to additional upload configurations you
create. For more information about custom uploads, see Adding a custom upload
configuration.
-
Choose Next.
-
Select Create to create the simulation
job.