Step 3: Configure Environment and Build Applications - AWS RoboMaker

Step 3: Configure Environment and Build Applications

In this section, you create an AWS Cloud9 environment with AWS RoboMaker. You then install sample code. In the development environment, you modify the robot application, and then build the robot and simulation application.

Create a Development Environment

The AWS Cloud9 development environment provides the tools to develop robot applications and simulation applications with ROS and AWS RoboMaker.

To create a development environment:

  1. Sign in to the AWS RoboMaker console at https://console.aws.amazon.com/robomaker/.

  2. On the left, expand Development, choose Development environments, and then choose Create environment.

  3. In the Create AWS RoboMaker development environment page, enter HelloWorld as the environment name.

  4. For ROS Distribution, select ROS Melodic.

  5. Accept the default Instance type (m4.large). You can select different instances type to improve bundling performance.

  6. Select a VPC. Use the default VPC.

  7. Select a Subnet. Use a public Subnet.

  8. Choose Create to create the AWS Cloud9 development environment.

Modify and Build Applications

In this section, you use the AWS Cloud9 development environment to modify the robot application. The steps show how to rotate the robot counter-clockwise and then build the robot and the simulation application.

To build the robot and simulation applications

  1. Sign in to the AWS RoboMaker console at https://console.aws.amazon.com/robomaker/.

  2. On the left, expand Development, choose Development environments, select HelloWorld, and then choose Open environment. It might take a few minutes to prepare the development environment.

  3. In the HelloWorld AWS Cloud9 development environment, choose Resources, then choose Download samples, and then select 1. Hello World.

  4. On the left, in the Environment tab, expand HelloWorld, HelloWorld, robot_ws. src, hello_world_robot, and then nodes. Select the file rotate to load into the editor.

  5. In the rotate tab, modify the code to make the robot turn clockwise by making the rate negative: self.twist.angular.z = -0.1. Save the file by selecting File and then Save.

  6. Build the robot application. On the menu, choose Run, then choose Build, and then select HelloWorld Robot.

  7. Build the simulation application. On the menu, choose Run, then choose Build, and then select HelloWorld Simulation.

Next Step

Step 4: Run Simulation