diff --git a/README.md b/README.md new file mode 100644 index 0000000..65a25b6 --- /dev/null +++ b/README.md @@ -0,0 +1,10 @@ +# RosAria +ROS package to handle Pioneer robot features L1.5. + +# How to run +`./run.sh` + +## Enable autostart +On Ubuntu 12 copy file 'ros.desktop' to `~/.config/autostart/` +`cp ros.desktop ~/.config/autostart/` + diff --git a/ros.desktop b/ros.desktop new file mode 100755 index 0000000..a2a6c05 --- /dev/null +++ b/ros.desktop @@ -0,0 +1,6 @@ +[Desktop Entry] +Type=Application +Exec=/home/lab1_5/run.sh +Hidden=false +NoDisplay=false +Name=ros diff --git a/run.sh b/run.sh new file mode 100755 index 0000000..1dfded2 --- /dev/null +++ b/run.sh @@ -0,0 +1,14 @@ +#!/bin/bash +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' +export ROS_IP=10.104.16.44 +export PIONIER_ID=4 +export ROS_NAMESPACE=/PIONIER${PIONIER_ID} + +#rosrun rosaria RosAria _port:=/dev/ttyS0 & >/dev/null 2>&1 +rosrun rosaria RosAria _port:=/dev/ttyS0 _tf_prefix:=/PIONIER${PIONIER_ID} & +#rosrun safety cloud_reader 0.7 & +rosrun hokuyo_node hokuyo_node _frame_id:="laser${PIONIER_ID}" & +#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 &