#!/bin/bash # Creates a catkin workspace for the Turtlebot under ros noetic echo "Basic ros noetic packages must be already installed!" echo "Only Bash supported, no sh!" echo "This will create a catkin_ws folder and automaticly install packages. Press Enter to continue" read nothing sudo apt update sudo apt install -y python3 python-is-python3 git sudo apt install -y liborocos-kdl-dev sudo apt install -y ros-noetic-joy python3-catkin python3-rosdep mkdir -p ~/catkin_ws/src cd catkin_ws catkin_make cd src # Clone the required repositories git clone https://github.com/turtlebot/turtlebot.git git clone https://github.com/turtlebot/turtlebot_msgs.git git clone https://github.com/turtlebot/turtlebot_apps.git git clone https://github.com/turtlebot/turtlebot_simulator # Following https://github.com/yujinrobot/kobuki/issues/427 git clone https://github.com/yujinrobot/yujin_ocs.git # Remove all but 'yocs_cmd_vel_mux', 'yocs_controllers', and 'yocs_velocity_smoother' mv yujin_ocs/yocs_cmd_vel_mux yujin_ocs/yocs_controllers yujin_ocs/yocs_velocity_smoother . rm -rf yujin_ocs # Add the battery monitor package git clone https://github.com/ros-drivers/linux_peripheral_interfaces.git mv linux_peripheral_interfaces/laptop_battery_monitor ./ rm -rf linux_peripheral_interfaces # You need to MANUALLY, for now, apply the changes proposed in https://github.com/ros-drivers/linux_peripheral_interfaces/pull/18 # Clone the MELODIC branch of the kobuki git git clone https://github.com/yujinrobot/kobuki.git rosdep install --from-paths . --ignore-src -r -y # Build the packages cd .. source ./devel/setup.bash catkin_make cd build make install cd .. echo "DONE!"