Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Simplify running simulator scenarios #46

Open
dtonda8 opened this issue Jul 9, 2024 · 4 comments
Open

Simplify running simulator scenarios #46

dtonda8 opened this issue Jul 9, 2024 · 4 comments
Assignees
Milestone

Comments

@dtonda8
Copy link
Member

dtonda8 commented Jul 9, 2024

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?
1. Parking
2. Car stopping due to random obstacle
3. A to B then back to B
4. 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, 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 dtonda8 added this to the Milestone 1 milestone Jul 9, 2024
@dtonda8 dtonda8 assigned dtonda8 and unassigned dtonda8 Aug 26, 2024
@kanwarjotp kanwarjotp self-assigned this Aug 31, 2024
@dtonda8 dtonda8 self-assigned this Sep 2, 2024
@dtonda8
Copy link
Member Author

dtonda8 commented Sep 2, 2024

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

@dtonda8
Copy link
Member Author

dtonda8 commented Sep 8, 2024

For option 1, I've posted an new issue on the scenario_simlutor_v2 here: tier4/scenario_simulator_v2#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
Copy link
Member Author

dtonda8 commented Sep 22, 2024

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants