Added instruction and run files

This commit is contained in:
Pioneer3 2021-11-10 12:48:37 +01:00
parent 70892c6e33
commit 1c4e57c0ac
3 changed files with 30 additions and 0 deletions

10
README.md Normal file
View File

@ -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/`

6
ros.desktop Executable file
View File

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Exec=/home/lab1_5/run.sh
Hidden=false
NoDisplay=false
Name=ros

14
run.sh Executable file
View File

@ -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 &