The repository contains the following ROS packages:
| Folders | Description |
|---|---|
| enph353_gazebo | describes simulation world |
| enph353_npcs | describes and controls pedestrian and Ford truck |
| enph353_utils | contains competition startup scripts |
| adeept_awr | describes and controls simulated Adeept AWR robot |
| adeept_awr_ros_driver | controls real world Adeept AWR robot |
** Prerequisites: Ubuntu 20.04 with ROS Noetic installed **
- If you do not have a workspace already create one in your home directory.
mkdir -p ~/ros_ws/src
cd ~/ros_ws/src
- Clone the repository into a catkin workspace src folder.
git clone https://github.com/ENPH353/2024_competition.git
- Build the packages
cd ~/ros_ws
catkin_make
- Source the environment
source devel/setup.bash
- Start the simulated world
cd src/2024_competition/enph353/enph353_utils/scripts
./run_sim.sh -vpg
The available options are:
| Option | Description |
|---|---|
| -v | spawn vehicle |
| -p | spawn pedestrian |
| -g | generate new plates |
- Start the score tracking app Open a new tab in the current terminal window by pressing Ctrl+Shift+T The new terminal should already be in:
~/ros_ws/src/2024_competition/enph353/enph353_utils/scripts
Launch the score tracking app:
./score_tracker.py
I suggest you create an alias in your .bashrc file to terminate all the processes related to Gazebo and ROS. Adding something like below should be sufficient:
alias killjim="pkill -f gzserver; pkill -f gzclient; killall -9 rosout roslaunch rosmaster gzserver nodelet robot_state_publisher gzclient"
Then when you need to stop the simulation call
killjim
from a new terminal.
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.