It is highly recommended to use a Ubuntu linux operating system.
If needed a virtual machine will work
Follow the installation instructions found here
Create python virtual environment:
python3 -m venv venv
Enable virtual environment (venv):
source venv/bin/activate
deactivate
at any timeInstall dependencies (must have ros 2 already installed):
pip install -r requirements.txt
pip freeze > requirements.txt
Run source build_packages.bash
while in the workspace (only needs to be done once)
Launch the rover with ros2 launch rover_launch.xml
Launch the laptop with ros2 launch home_launch.xml
src/
directorycolcon build --symlink-install
from workspacesource install/setup.bash
Packages can be created by navigating to src/
and running ros2 pkg create --build-type ament_python <package_name>
Add node files to src/package_name/package_name
Add node to source script src/package_name/setup.py
by modifying like so:
entry_points={
'console_scripts': [
'node_name = package_name.node_name:main',
],
}