반응형
Example 1
#! /bin/bash
# $ sudo chmod +x gps_init.sh
# $ ./gps_init.sh
echo ">> print usb port info ... "
dmesg | grep tty
echo " ---------------------------- "
echo ">> insert com port number :"
read comport
echo ">> assign permission to use /dev/ttyUSB${comport}"
sudo chmod 777 /dev/ttyUSB${comport}
echo ">> run advanced_navigation_driver_node"
gnome-terminal --command "rosrun advanced_navigation_driver advanced_navigation_driver /dev/ttyUSB${comport} 1000000"
Example 2
#! /bin/bash
# $ sudo chmod +x usb_cam_init.sh
# $ ./usb_cam_init.sh
echo ">> run usb_cam ... "
echo ">> use \usb_cam\image_raw "
rosrun usb_cam usb_cam_node
'Linux' 카테고리의 다른 글
Permission denied error when update anaconda3 or installing tensorflow using anaconda (0) | 2018.07.06 |
---|---|
How install ROS kinetic (0) | 2018.05.31 |
how to install chrome on ubuntu (0) | 2018.04.17 |
[Nvidia] graphic card driver installation fail error. "Kernel module failed to build" error. (0) | 2017.07.27 |
How to set anaconda python as default (0) | 2017.07.18 |