#Setup Locale
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

#Setup Sources
sudo apt update && sudo apt install curl gnupg2 lsb-release
curl -s https://raw.githubusercontent.com/ros/rosdistro/master/ros.asc | sudo apt-key add -
sudo curl -sSL https://raw.githubusercontent.com/ros/rosdistro/master/ros.key  -o /usr/share/keyrings/ros-archive-keyring.gpg
#Add the repository to your sources list
sudo sh -c 'echo "deb [arch=$(dpkg --print-architecture)] http://packages.ros.org/ros2/ubuntu focal main" > /etc/apt/sources.list.d/ros2-latest.list'


sudo apt update
sudo apt-get install -y git

sudo apt-get install python3-tk

#Install ROS2 packages
sudo apt install ros-foxy-desktop
sudo apt install ros-foxy-ros-base
#Install argcomplete
sudo apt-get install -y python3-pip
sudo apt-get install -y python3-colcon-common-extensions
sudo apt-get install -y python3-argcomplete
sudo apt-get install -y ros-foxy-turtlebot3*
sudo apt-get install -y ros-foxy-ros2bag
sudo apt-get install -y ros-foxy-rosbag2
echo "[Done] Ros2 Foxy Install"