Monash-Connected-Autonomous-Vehicle / autoware

Autoware - the world's leading open-source software project for autonomous driving
https://www.autoware.org/
Apache License 2.0
1 stars 0 forks source link

Simplify running simulator scenarios #46

Open dtonda8 opened 4 months ago

dtonda8 commented 4 months ago

Working with Autoware planning simulations can be a little figety. We want to simplify this, especially when performing demos. We could either:

  1. Use an extensive Simulator Scenario ROS package to do this. And combine commands to shell scrips
  2. Or, could provide a command line that takes that provides a list of scenarios (e.g. Road to Parking, Car to Obstacle, Reversing) we could automate the demo process. E.g.
    
    ros2 launch <new-package-name> <new-ros2-node> 
    ...
    What scenario would you like to demo?
  3. Parking
  4. Car stopping due to random obstacle
  5. A to B then back to B
  6. etc.

Input:



For the second option:
- You'll need to first know the starting/ending locations for each scenario
- For each scenario, the new ROS package first sets the vehicle to the starting point and sets the end point
- To get an idea of topics published, I recommend following the default [Autoware Planning Simulation](https://autowarefoundation.github.io/autoware-documentation/main/tutorials/ad-hoc-simulation/planning-simulation/), then running `ros2 topic list` & `ros2 topic echo`

Obviously the first option sounds simipler so I encourage you to try that first, but if it over complicates our workspace than you can opt to option 2.

Skills: Python/C++ & ROS or Shell scripting.
dtonda8 commented 2 months ago

Btw the first thing I linked above assumes Autoware is installed as well as simulator.repos

dtonda8 commented 2 months ago

For option 1, I've posted an new issue on the scenario_simlutor_v2 here: https://github.com/tier4/scenario_simulator_v2/issues/1365. We will wait for a maintainer to respond, but if any of you guys managed to get the the scenario_test_runner, let me know.

dtonda8 commented 2 months ago

Got some good advice about from the scenario_simulator_v2 issue above. I managed to get it working on my 8 GB RAM Ubuntu VM. So, it should work decently on the Alienware.

Another idea for storing scenarios is to use rosbag. rosbag essentially allow you to record the ROS messages and play them back. So, we could potentially record our manually planning simulations, save them to rosbags, and play them at any time we want without getting fidgety with the Autoware/RViz GUI.

We might get back to this task once you guys are done with the cameras.

emilylkha commented 2 months ago

Repository with info on how to run it: https://github.com/Monash-Connected-Autonomous-Vehicle/simulator-scenario-scripts