From 2ea49c432a69734a1b5534840360d5fb9d839ae8 Mon Sep 17 00:00:00 2001 From: Mik6e6 Date: Sat, 4 Jul 2020 11:50:18 -0400 Subject: [PATCH] Create create_ws_install_serial.sh --- create_ws_install_serial.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 create_ws_install_serial.sh diff --git a/create_ws_install_serial.sh b/create_ws_install_serial.sh new file mode 100644 index 0000000..5243496 --- /dev/null +++ b/create_ws_install_serial.sh @@ -0,0 +1,27 @@ +#!/bin/bash + +# this script sources and create a new catkin_ws and then install dependicies for rosserial + + +if [[ "${UID}" -ne 0 ]] +then + echo 'Please run as sudo' + exit 1 + fi + + source /opt/ros/kinetic/setup.bash + + mkdir -p ~/catkin_ws/src + + cd ~/catkin_ws/ + + + catkin_make + + + + source devel/setup.bash + + + echo $ROS_PACKAGE_PATH +