rosaria/run.sh

20 lines
755 B
Bash
Raw Normal View History

2021-11-10 12:48:37 +01:00
#!/bin/bash
2021-11-10 15:09:49 +01:00
ID=$1
if [[ -n ${ID//[0-9]/} ]]; then
echo "Invalid pioneer number!"
exit 1
fi
2021-11-10 12:48:37 +01:00
source /opt/ros/hydro/setup.bash
source /home/lab1_5/ws/ws_linux/devel/setup.bash
export ROS_MASTER_URI='http://10.104.16.29:11311'
2021-11-10 15:09:49 +01:00
export ROS_IP=10.104.16.4${ID}
export PIONIER_ID=${ID}
export ROS_NAMESPACE=/PIONIER${ID}
2021-11-10 12:48:37 +01:00
#rosrun rosaria RosAria _port:=/dev/ttyS0 & >/dev/null 2>&1
2021-11-10 15:09:49 +01:00
rosrun rosaria RosAria _port:=/dev/ttyS0 _tf_prefix:=/PIONIER${ID} &
2021-11-10 12:48:37 +01:00
#rosrun safety cloud_reader 0.7 &
2021-11-10 15:09:49 +01:00
rosrun hokuyo_node hokuyo_node _frame_id:="${ROS_NAMESPACE}/laser" &
2021-11-10 12:48:37 +01:00
#rosrun videostream videostream &
#cvlc v4l2:///dev/video0 :v4l2-standard= :sout='#transcode{vcodec=FLV1,vb=0,scale=0,acodec=none}:http{mux=ffmpeg{mux=flv},dst=:8080/}' :sout-keep :live-caching=300 &