Skip to content
Snippets Groups Projects
Commit edd29a65 authored by Joan Vallvé Navarro's avatar Joan Vallvé Navarro
Browse files

scripts improvements

parent 70a529a6
No related branches found
No related tags found
No related merge requests found
#!/bin/bash #!/bin/bash
BAG_PATH="/media/jvallve/DADES/bags/GAUSS/second_field_inta/selected" BAG_PATH="/media/jvallve/DADES/bags/GAUSS/second_field_inta/selected/GAUSS_solution"
cd $BAG_PATH cd $BAG_PATH
echo "In folder $PWD there are the following rosbags of rpa_output:" echo "In folder $PWD there are the following rosbags of rpa_output:"
ls rpa_output*.bag ls rpa_output*conf*.bag
FILES="rpa_output*.bag" FILES="rpa_output*conf*.bag"
for f in $FILES for f in $FILES
do do
echo "Processing $f file..." echo "Processing $f file..."
...@@ -16,10 +16,10 @@ do ...@@ -16,10 +16,10 @@ do
#echo "without extension and 'rpa_output_' is $f2" #echo "without extension and 'rpa_output_' is $f2"
# take action on each file. $f store current file name # take action on each file. $f store current file name
fp="GAUSS_solution/rpa_positioning_info_${f:11: -4}.csv" fp="rpa_positioning_info_${f:11: -4}.csv"
echo "Creating the file $fp" echo "Creating the file $fp"
rostopic echo -b $f -p /wolf_ros_node/rpa_positioning_info > $fp rostopic echo -b $f -p /wolf_ros_node/rpa_positioning_info > $fp
fs="GAUSS_solution/rpa_state_info_${f:11: -4}.csv" fs="rpa_state_info_${f:11: -4}.csv"
echo "Creating the file $fs" echo "Creating the file $fs"
rostopic echo -b $f -p /wolf_ros_node/rpa_state_info > $fs rostopic echo -b $f -p /wolf_ros_node/rpa_state_info > $fs
done done
...@@ -10,7 +10,7 @@ do ...@@ -10,7 +10,7 @@ do
do do
logfile="${BAG_PATH}/roslog_${experiment}_config${config}.txt" logfile="${BAG_PATH}/roslog_${experiment}_config${config}.txt"
echo "Launch TDCP_ROS with $experiment in mode $config ang generating log $logfile..." echo "Launch rpa_positioning_rosbag_second_field.launch with $experiment in mode $config ang generating log $logfile..."
roslaunch gauss_ros rpa_positioning_rosbag_second_field.launch flight:=$experiment conf_gnss:=$config rviz:=false bag_path:=$BAG_PATH > $logfile roslaunch gauss_ros rpa_positioning_rosbag_second_field.launch flight:=$experiment conf_gnss:=$config rviz:=false bag_path:=$BAG_PATH > $logfile
done done
done done
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment