Setting Static IP (no longer works on Raspbian Bookworm <-- they recommend setting static ip from router)
https://www.makeuseof.com/raspberry-pi-set-static-ip/
sudo nano /etc/dhcpcd.conf
# At the bottom of the file, add the following (and replace):
interface NETWORK
static ip_address=STATIC_IP/24
static routers=ROUTER_IP
static domain_name_servers=DNS_IP
# Use libcamera
# To capture a single picture:
libcamera-jpeg -o image.jpg
# vcgencmd
vcgencmd get_camera
sudo apt install python3-pip
sudo pip3 install vcstools
# May actually want the following:
sudo apt install python3-vcstools python3-vcstool
sudo apt install git
# As defined here: https://colcon.readthedocs.io/en/released/user/installation.html
sudo sh -c 'echo "deb [arch=amd64,arm64] http://repo.ros2.org/ubuntu/main `lsb_release -cs` main" > /etc/apt/sources.list.d/ros2-latest.list'
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
# python3 -m pip install colcon-common-extensions
sudo apt-get install python3-rosdep python3-rosinstall-generator build-essential
sudo apt-get install libignition-math6-dev # May not need this if not using gazebo
https://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html
locale # check for UTF-8
sudo apt update && sudo apt install locales
sudo locale-gen en_US en_US.UTF-8
sudo update-locale LC_ALL=en_US.UTF-8 LANG=en_US.UTF-8
export LANG=en_US.UTF-8
locale # verify settings
sudo apt install software-properties-common
sudo add-apt-repository universe
sudo apt update && sudo apt install curl -y
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key -o /usr/share/keyrings/ros-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/ros-archive-keyring.gpg] http://packages.ros.org/ros2/ubuntu $(. /etc/os-release && echo $UBUNTU_CODENAME) main" | sudo tee /etc/apt/sources.list.d/ros2.list > /dev/null
# After running the above may need to hand-edit /etc/apt/sources.list.d/ros2.list
# and add bullseye (or whatever debian os version) after "ubuntu" and before "main"
# Because I was running rosdep install incorrectly before may need to run this:
sudo dpkg -i --force-overwrite <filename>
# and then the following to fix any broken packages
sudo apt-get install -f
sudo apt update && sudo apt install -y \
python3-flake8-docstrings \
python3-pip \
python3-pytest-cov
mkdir -p ~/ros2_humble/src
cd ~/ros2_humble
vcs import --input https://raw.githubusercontent.com/ros2/ros2/humble/ros2.repos src
sudo rosdep init
rosdep update
# Added gazebo and rviz to keys to skip. Also added -r and -s
rosdep install --from-paths src --ignore-src -y --skip-keys "fastcdr rti-connext-dds-6.0.1 urdfdom_headers gazebo rviz" --rosdistro humble --os=debian:bullseye -r -s
# Maybe toss a fix-broken in there somewhere
sudo apt --fix-broken install
colcon build --symlink-install --continue-on-error --executor sequential
https://colcon.readthedocs.io/en/released/reference/verb/build.html
# Maybe not ... may be easier to just mirror the workspace path
colcon build --symlink-install --cmake-clean-cache
https://earthly.dev/blog/cross-compiling-raspberry-pi/
https://help.ubuntu.com/community/SSH/TransferFiles
# Using scp
scp <file> <username>@<IP address or hostname>:<Destination>
# On windows with putty installed and in directory to install file on windows (in cmd)
pscp -scp <source-hostname>@<source-ip>:/home/<user-directory>/<file> <file>
# https://stackoverflow.com/questions/76942052/raspberry-pi-cant-install-python-3-11
# May need to add python3.11
# Yeah, that didn't work as I expected ... probably just easier if everything is running the same OS