ROS Hood Teleop Video Script
From wikidb
Master Script
#!/bin/bash DATE=$(date '+%Y%m%dT%H%M') LOGDIR=~/log LAUNCHDIR=~/catkin_ws_indigo/launch case "$1" in start) echo START roscore > $LOGDIR/roscore$DATE.log & sleep 5 pgrep -a roscore rosrun phidgets motor_control_hc > $LOGDIR/motors$DATE.log & sleep 5 pgrep -a motor_control roslaunch $LAUNCHDIR/usb_cam_server.launch > $LOGDIR/usb_cam$DATE.log & sleep 5 pgrep -a usb_cam rosrun web_video_server web_video_server > $LOGDIR/video_server$DATE.log & sleep 5 pgrep -a web_video_server ;; stop) echo STOP killall -SIGINT web_video_server killall -SIGINT usb_cam_node killall -SIGINT motor_control_hc killall -SIGINT roscore killall -SIGINT rosmaster ;; esac echo DONE
Client Script
Runs on Adams and is the same as ROS Hood Teleop Script.
#!/bin/bash DATE=$(date '+%Y%m%dT%H%M') LOGDIR=~/log case "$1" in start) echo START roslaunch ~/catkin_ws/launch/teleop.launch > $LOGDIR/teleop$DATE.log & sleep 5 pgrep -a joy pgrep -a teleop ;; stop) echo STOP killall -SIGINT teleop_node killall -SIGINT joy_node ;; esac echo DONE
Capturing the Video
This didn't