sudo apt install -y software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install -y curl
export ROS_APT_SOURCE_VERSION=$(curl -s https://api.github.com/repos/ros-infrastructure/ros-apt-source/releases/latest | grep -F "tag_name" | awk -F'"' '{print $4}')
curl -L -o /tmp/ros2-apt-source.deb "https://github.com/ros-infrastructure/ros-apt-source/releases/download/${ROS_APT_SOURCE_VERSION}/ros2-apt-source_${ROS_APT_SOURCE_VERSION}.$(. /etc/os-release && echo ${UBUNTU_CODENAME:-${VERSION_CODENAME}})_all.deb"
sudo dpkg -i /tmp/ros2-apt-source.deb
sudo apt update && sudo apt install -y ros-dev-tools
sudo apt update
sudo apt upgrade -y
sudo apt install -y ros-jazzy-ros-base
sudo apt install -y python3-serial
sudo apt install -y python3-pip
sudo apt install -y ros-jazzy-irobot-create-msgs
sudo apt install -y micro
export RMW_IMPLEMENTATION=rmw_fastrtps_cpp
source /opt/ros/jazzy/setup.bash
sudo apt update
sudo apt install -y openssh-server
sudo systemctl enable ssh
sudo systemctl start ssh
sudo apt update
sudo apt install -y python3-gpiozero
sudo adduser [username] dialout
network:
version: 2
renderer: NetworkManager
ethernets:
usb0:
dhcp4: false
optional: true
addresses: [192.168.186.3/24]