From 1c4e57c0ace13c73eab3ee44389b6340ffe65458 Mon Sep 17 00:00:00 2001 From: Pioneer3 Date: Wed, 10 Nov 2021 12:48:37 +0100 Subject: [PATCH] Added instruction and run files --- README.md | 10 ++++++++++ ros.desktop | 6 ++++++ run.sh | 14 ++++++++++++++ 3 files changed, 30 insertions(+) create mode 100644 README.md create mode 100755 ros.desktop create mode 100755 run.sh 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 &