<aside> 📌
This page describes how to setup the bootable SSD which will be inserted into the ADS-DV InCarPC SATA caddy at competition.
</aside>
Each Team must provide a 2.5" SATA SSD with their specific OS and software installed. These SSDs will be fitted to a compatible Caddy which will be placed in the CQ67G Vehicle PC Base Platform by Event Officials prior to each Team's competition runs.
Teams are responsible for maintaining, setting up and testing their own SSD(s) as required. This includes ensuring compatibility with the CQ67G Vehicle PC Base Platform hardware (i.e. OS driver compatibility).
<aside> ⚠️
</aside>
Flash Ubuntu 20.04 ISO onto external SSD
Dual boot into SSD
Update
cd ~
sudo apt update
sudo apt install software-properties-common curl
sudo add-apt-repository universe
Install ROS 2 Galactic from binaries:
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
sudo apt update
sudo apt upgrade
sudo apt install ros-galactic-desktop python3-pip python3-rosdep
echo "source /opt/ros/galactic/setup.bash" >> ~/.bashrc
source ~/.bashrc
Install Colcon
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 -
pip3 install colcon-common-extensions -U
Install dependencies for core_sim to work
sudo apt install libgazebo11-dev ros-galactic-gazebo-ros-pkgs ros-galactic-joint-state-publisher ros-galactic-xacro ros-galactic-ackermann-msgs
# You may also want to install these:
sudo apt install ros-galactic-gazebo-plugins libyaml-cpp-dev ros-galactic-rqt ros-galactic-rqt-common-plugins ros-galactic-ament-package
Setup SSH key in GitHub - guide.
Clone core-sim repository
Follow setup instructions in core-sim README file
Launch core-sim to see if everything launches as expected
Install dependencies (see setup.sh for more info)
# these commands may need to be used once:
sudo modprobe can_dev
sudo modprobe can
sudo modprobe can_raw
sudo modprobe vcan
sudo apt install can_utils
# NOTE: the above have been tested with PEAK-CAN hardware only
FS-AI_API requires ****first command in setup.sh to be run for CAN Bus link. The other two commands are to setup virtual connection
Option 1: Link Can bus:
# can0 hardware at 500kbps
sudo ip link set up can0 type can bitrate 500000
Option 2: Setup virtual connection:
# vcan0 for testing without hardware
sudo ip link add dev vcan0 type vcan
sudo ip link set vcan0 up
Option 3: Bring down or reset links:
sudo ip link set can0 down
sudo ip link delete can0
[WIP] Test CAN bus link is setup
simulate_can_ = 0
in core-sim/ros_can/include/ros_can.hpp
initialises the FS-AI_API in simulation mode (see FS-AI_API docs)
fs_ai_api_vcu2ai_get_data()