Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.19 KB

README.md

File metadata and controls

43 lines (27 loc) · 1.19 KB

ros2_envirophat

ROS2 node for the Pimeroni Enviro pHAT

Suggested Hardware and Operating Systems (UNTESTED)

Raspberry Pi 3B(+)

Raspberry Pi 4

Nvidia Jetson TX2, Nano

Setup

Workspace

mkdir -p ~/enviro_ws/src

cd ~/enviro_ws

git clone https://github.com/cheymber/ros2_envirophat.git src

Dependancies and Python virtual environment

sudo apt update && sudo apt install python3-venv

python3 -m venv enviro && source enviro/bin/activate

Raspberry Pi 3B(+), 4

pip install -r src/ros2_envirophat/requirements-pi.txt

Nvidia Jetson TX2, Nano

pip install -r src/ros2_envirophat/requirements-jetson.txt

Build and source setup scripts

colcon build --symlink-install

source /opt/ros/dashing/setup.bash

source install/setup.bash && source local_setup.bash

Launch

ros2 launch ros2_envirohat example.launch.py