Create a new ROS workspace (skip this step if you want to use an existing workspace):
mkdir -p sphero_ws/srcGo into your workspace's src folder and clone the repository:
cd sphero_ws/src
git clone https://github.com/Hyperloop-VCU/sphero-monash-ros-pkg.gitMove back up to the root of your workspace:
cd ..Run rosdep to install all required ROS packages:
rosdep install --from-paths src --ignore-src -r -yTip
If you get an error asking you to run sudo rosdep init or rosdep update, follow the instructions printed in the terminal, then run the rosdep install command again. When it works, it prints All required rosdeps installed successfully.
From the root of your workspace (e.g. sphero_ws), build the code and load it:
colcon build
source install/setup.bash*Note: these projects require that you have https://github.com/Hyperloop-VCU/sphero-monash-ros-pkg.git in your src folder.
| Project | Command |
|---|---|
| LED | ros2 launch ARP-sphero-pkg sphero_led.launch.py |
| Line | ros2 launch ARP-sphero-pkg sphero_line.launch.py |
Repeat step 5 to rebuild before launching again.