After building the system on your machine:
- Start the path_planner_node
- Start the rl_node
- Start Carla
- Start demo_environment_state_extraction.py
Or add the following to a roslaunch file (for eg. waypoint_follow.launch). Make sure to start the CARLA simulator before running the launch file.
This should be added to a folder called 'launch' in the workspace folder. (The workspace folder will now have build, devel, launch and src folders. ). An example launch file is added in the root folder of the project.
TO RUN:
- GoTo /Carla/CARLA_0.9.8/CarlaUE4/Config/DefaultEngine.ini
- Replace Town0* with Town04 in the .ini file. Use replace all to be sure.
- Run ./CarlaUE4.sh to start CARLA.
- Make sure ROSMASTER is running
- GoTo carla_bridge/scripts/
- Run carla_node.py
- Wait till you see ros spin on the terminal.
- Remove/comment everything from waypoint_follow.roslaunch in base folder. Keep full_path_planner only.
- roslaunch waypoint_follow.roslaunch
- Done.