Skip to content

Latest commit

 

History

History
124 lines (76 loc) · 4.87 KB

File metadata and controls

124 lines (76 loc) · 4.87 KB

Tutorial 3: Simulation testing with dummy objects

The purpose of this tutorial is to become familiar with Autoware's planning simulator, which can be used for a variety of things such as validating vector maps (containing metadata about the road layout, traffic rules etc) and verifying Autoware's route planning functionality.

For this exercise, we will only need to use a single terminal window.

Before starting, please download and unpack the following files:

Note that these are the same files used in the Planning Simulator quick launch tutorial

Run RViz and set initial and goal poses

  1. Open a terminal window, navigate to the Autoware.IV install directory and run the following command:
source ./install/setup.bash
  1. Run RViz with the following command:
roslaunch autoware_launch planning_simulator.launch vehicle_model:=lexus sensor_model:=aip_xx1 map_path:=/path/to/tutorial3_maps

RViz

  1. Set the initial pose of the ego-vehicle
  • Click “2D Pose estimate” button in the toolbar, or hit the “P” key Toolbar 2D pose

  • Click and hold the left-mouse button, and then drag to set the direction of the pose Initial pose

  1. Set the goal pose of the ego-vehicle
  • Click the “2D Nav Goal” button in the toolbar, or hit the “G” key Toolbar 2D navgoal

  • Click and hold the left-mouse button, and then drag to set the direction of the pose Goal pose

  1. Confirm initial pose, goal pose and route are displayed

Poses route


Adding and removing dummy obstacles, both moving and stationary

  1. Add a dummy car
  • Click the “2D Dummy Car” button in the toolbar, or hit the “K” key Toolbar 2D dummy car
  • Click and hold the left-mouse button, and then drag to set the direction of the pose Dummy car moving
  1. Add a dummy pedestrian
  • Click the “2D Dummy Pedestrian” button in the toolbar, or hit the “L” key Toolbar 2D dummy pedestrian
  • Click and hold the left-mouse button, and then drag to set the direction of the pose Dummy pedestrian moving
  1. Make dummy pedestrians and dummy vehicles stationary, and add a stationary dummy vehicle
  • In the [Tool Properties] panel in the lower-left, under [2D Dummy Car], set Velocity to 0
  • Click the “2D Dummy Car” button
  • Click and hold the left-mouse button, and then drag to set the direction of the pose
  • In the [Tool Properties] panel in the lower-left, under [2D Dummy Pedestrian], set Velocity to 0 Tool properties
  1. Remove all dummy objects
  • Click “Delete All Objects” button in the toolbar, or hit the “D” key Toolbar delete all objects
  • Click the display

"Number One, Engage!"

  1. Adjust RViz viewpoint to ThirdPersonFollower to change from a top-down 2D view to a 3D view
  • In the Views panel on the left side of the window, click the Type dropdown box and select "ThirdPersonFollower"
  • Double-click the Target Frame value and select "base_link"
  • Click the “Zero” button Views properties

ThirdPersonFollowerView

  1. Use the Autoware Web UI to start the ego vehicle moving
  • Open a browser and go to http://localhost:8085/autoware_web_controller (note that the web page may take a couple of minutes to appear) Autoware Web UI

  • Under "Vehicle Engage”, click the "Engage" button

  • Under “Autoware Engage: Connected”, click the “Engage” button Autoware Web UI engage

  • In the Web UI, Autoware State will change from "WaitingForEngage" to "Driving" and the ego-vehicle should now start moving along the route to the goal pose

Autoware UI engaged


Bonus: Simulate a parking maneuver

  1. Once the ego-vehicle has reached the goal pose and stopped moving, use the Autoware Web UI to disengage the vehicle
  • Under “Autoware Engage: Connected”, click the “Disengage” button Autoware UI disengage
  1. Set a new initial pose for the ego vehicle, and then set a goal pose that is in a parking area.

  2. Use the Autoware Web UI to start the ego vehicle moving

  • Under “Autoware Engage: Connected”, click the “Engage” button

parking

  1. To finish, click on the terminal window and press Ctrl + C to stop RViz, then close the terminal.