Create create_ws_install_serial.sh

This commit is contained in:
Mik6e6
2020-07-04 11:50:18 -04:00
committed by GitHub
parent 42e8456cfe
commit 2ea49c432a
+27
View File
@@ -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