watonomous.github.io

  1. Software Division
  2. Software Division Home
  3. Path Planning Group
  4. Simulation

[ Software Division : SIMULINK Sim instructions ]

Created by [ Charles Zhang], last modified on Mar 21, 2020

Path Planning vehicle model simulator using MATLAB

DEMO:

Your browser does not support the HTML5 video element

global_sim_spedup.mp4

Required repositories:

https://git.uwaterloo.ca/WATonomous/mathworks_models

https://git.uwaterloo.ca/WATonomous/decision

https://git.uwaterloo.ca/WATonomous/ros_msgs

NEW: https://git.uwaterloo.ca/WATonomous/localization

Instructions:

  1.  Run `roscore`
  2. Start path planning

    roslaunch path_planning planner_main.launch
    
  3. Start simulation + transform publishers

    roslaunch path_planning planner_sim.launch
    
  4. Simulate an empty environment

    rosrun path_planning env_sim.sh
    
  5. Run Processing HD map node

    rosrun hdmap_processing hdm_service
    
  6. Generate Global Command: 
    1. From Global Planner: 

      cd decision/global_mapping
      python3 launch.py
      Select starting position and destination. Default starting position is currently directly to the right of the starting intersection
      
    2. From Rosbag
      **Play a rosbag with 
      only** the path_planning/global_command topic
      Example Bag: https://drive.google.com/file/d/1KqU8CdoUJO5xb_gJ6a3W4DP2MEIuHaO4/view (NEEDS TO BE FILTERED)

If you want to restart the simulation:

If you want to change the starting position:

If you want to change the starting orientation:

Help! The car's not moving!

Help! Nothing's in the rviz!

Help! Path planning keeps saying there's "No global command"

TODO:

- Model friction\

Attachments:

global_sim_spedup.mp4 (video/mp4)\

Document generated by Confluence on Dec 10, 2021 04:01

Atlassian