forked from ctu-mrs/uvdar_core
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Loading status checks…
Remove debugging logging, to upload to UAV
Your Name
committed
Apr 16, 2024
1 parent
732e7fb
commit ad5a07b
Showing
8 changed files
with
141 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
2,10.0,0.0,0.5,0.4 | ||
2,10.0,0.0,0.5,0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
3,0.0,5.0,0.5,0.7 | ||
3,7.0,1.0,0.5,0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
4,0.0,-5.0,0.5,0.0 | ||
4,5.0,-1.0,0.5,0.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
# do not modify these | ||
root: ./ | ||
name: simulation | ||
socket_name: mrs | ||
attach: false | ||
tmux_options: -f /etc/ctu-mrs/tmux.conf | ||
# you can modify these | ||
pre_window: export UAV_NAME=uav1; export RUN_TYPE=simulation; export UAV_TYPE=x500 | ||
startup_window: status | ||
windows: | ||
- roscore: | ||
layout: tiled | ||
panes: | ||
- roscore | ||
- gazebo: | ||
layout: tiled | ||
panes: | ||
- waitForRos; roslaunch mrs_uav_gazebo_simulation simulation.launch world_name:=grass_plane gui:=true | ||
- gz_rate: | ||
layout: tiled | ||
panes: | ||
- waitForHw; sleep 5; gz physics -u 2000 | ||
- status: | ||
layout: tiled | ||
panes: | ||
- export UAV_NAME=uav1; waitForHw; roslaunch mrs_uav_status status.launch | ||
- export UAV_NAME=uav2; waitForHw; roslaunch mrs_uav_status status.launch | ||
- export UAV_NAME=uav3; waitForHw; roslaunch mrs_uav_status status.launch | ||
- export UAV_NAME=uav4; waitForHw; roslaunch mrs_uav_status status.launch | ||
- spawn: | ||
layout: tiled | ||
panes: | ||
- waitForGazebo; rosservice call /mrs_drone_spawner/spawn "1 --$UAV_TYPE --pos-file $(rospack find uvdar_core)/scripts/position1.csv --enable-rangefinder --enable-ground-truth --enable-dual-uv-cameras calib_file:=$(rospack find uvdar_core)/config/ocamcalib/calib_results_bf_uv_fe.txt --enable-back-uv-camera calib_file:=$(rospack find uvdar_core)/config/ocamcalib/calib_results_bf_uv_fe.txt" | ||
- waitForGazebo; sleep 12; rosservice call /mrs_drone_spawner/spawn "2 --$UAV_TYPE --pos-file $(rospack find uvdar_core)/scripts/position2.csv --enable-rangefinder --enable-ground-truth --enable-uv-leds signal_id:=[0,1,2,3]" | ||
- waitForGazebo; sleep 17; rosservice call /mrs_drone_spawner/spawn "3 --$UAV_TYPE --pos-file $(rospack find uvdar_core)/scripts/position3.csv --enable-rangefinder --enable-ground-truth --enable-uv-leds signal_id:=[4,5,6,7]" | ||
- waitForGazebo; sleep 22; rosservice call /mrs_drone_spawner/spawn "4 --$UAV_TYPE --pos-file $(rospack find uvdar_core)/scripts/position4.csv --enable-rangefinder --enable-ground-truth --enable-uv-leds signal_id:=[8,9,10,11]" | ||
- hw_api: | ||
layout: tiled | ||
panes: | ||
- export UAV_NAME=uav1; waitForTime; roslaunch mrs_uav_px4_api api.launch | ||
- export UAV_NAME=uav2; waitForTime; roslaunch mrs_uav_px4_api api.launch | ||
- export UAV_NAME=uav3; waitForTime; roslaunch mrs_uav_px4_api api.launch | ||
- export UAV_NAME=uav4; waitForTime; roslaunch mrs_uav_px4_api api.launch | ||
- core: | ||
layout: tiled | ||
panes: | ||
- export UAV_NAME=uav1; waitForHw; roslaunch mrs_uav_core core.launch | ||
platform_config:=`rospack find mrs_uav_gazebo_simulation`/config/mrs_uav_system/$UAV_TYPE.yaml | ||
custom_config:=./config/custom_config.yaml | ||
world_config:=./config/world_config.yaml | ||
network_config:=./config/network_config.yaml | ||
- export UAV_NAME=uav2; waitForHw; roslaunch mrs_uav_core core.launch | ||
platform_config:=`rospack find mrs_uav_gazebo_simulation`/config/mrs_uav_system/$UAV_TYPE.yaml | ||
custom_config:=./config/custom_config.yaml | ||
world_config:=./config/world_config.yaml | ||
network_config:=./config/network_config.yaml | ||
- export UAV_NAME=uav3; waitForHw; roslaunch mrs_uav_core core.launch | ||
platform_config:=`rospack find mrs_uav_gazebo_simulation`/config/mrs_uav_system/$UAV_TYPE.yaml | ||
custom_config:=./config/custom_config.yaml | ||
world_config:=./config/world_config.yaml | ||
network_config:=./config/network_config.yaml | ||
- export UAV_NAME=uav4; waitForHw; roslaunch mrs_uav_core core.launch | ||
platform_config:=`rospack find mrs_uav_gazebo_simulation`/config/mrs_uav_system/$UAV_TYPE.yaml | ||
custom_config:=./config/custom_config.yaml | ||
world_config:=./config/world_config.yaml | ||
network_config:=./config/network_config.yaml | ||
- takeoff: | ||
layout: tiled | ||
panes: | ||
- export UAV_NAME=uav1; waitForHw; roslaunch mrs_uav_autostart automatic_start.launch | ||
- 'export UAV_NAME=uav1; waitForControl; rosservice call /$UAV_NAME/hw_api/arming 1; sleep 2; rosservice call /$UAV_NAME/hw_api/offboard' | ||
- export UAV_NAME=uav2; waitForHw; roslaunch mrs_uav_autostart automatic_start.launch | ||
- 'export UAV_NAME=uav2; waitForControl; rosservice call /$UAV_NAME/hw_api/arming 1; sleep 2; rosservice call /$UAV_NAME/hw_api/offboard' | ||
- export UAV_NAME=uav3; waitForHw; roslaunch mrs_uav_autostart automatic_start.launch | ||
- 'export UAV_NAME=uav3; waitForControl; rosservice call /$UAV_NAME/hw_api/arming 1; sleep 2; rosservice call /$UAV_NAME/hw_api/offboard' | ||
- export UAV_NAME=uav4; waitForHw; roslaunch mrs_uav_autostart automatic_start.launch | ||
- 'export UAV_NAME=uav4; waitForControl; rosservice call /$UAV_NAME/hw_api/arming 1; sleep 2; rosservice call /$UAV_NAME/hw_api/offboard' | ||
- uv_observer: | ||
layout: even-vertical | ||
panes: | ||
- waitForCompile; gz world --pause=0; sleep 6; export UAV_NAME=uav1; waitForControl; roslaunch uvdar_core sim_three_sided_combined_marlon.launch use_4DHT:=false | ||
- slow_down: | ||
layout: even-vertical | ||
panes: | ||
- waitForGazebo; waitForRos; sleep 20; gz physics -u 80 | ||
- uav1_waypoint_flier: | ||
layout: tiled | ||
panes: | ||
- export UAV_NAME=uav1; waitForControl; roslaunch example_waypoint_flier example_waypoint_flier.launch | ||
- 'history -s rosservice call /$UAV_NAME/example_waypoint_flier/fly_to_first_waypoint' | ||
- 'history -s rosservice call /$UAV_NAME/example_waypoint_flier/start_waypoints_following' | ||
- 'history -s rosservice call /$UAV_NAME/example_waypoint_flier/stop_waypoints_following' | ||
- uav2_waypoint_flier: | ||
layout: tiled | ||
panes: | ||
- export UAV_NAME=uav2; waitForControl; roslaunch example_waypoint_flier example_waypoint_flier_2.launch | ||
- 'export UAV_NAME=uav2; history -s rosservice call /$UAV_NAME/example_waypoint_flier/fly_to_first_waypoint' | ||
- 'export UAV_NAME=uav2; history -s rosservice call /$UAV_NAME/example_waypoint_flier/start_waypoints_following' | ||
- 'export UAV_NAME=uav2; history -s rosservice call /$UAV_NAME/example_waypoint_flier/stop_waypoints_following' | ||
|
||
#- trajectories: | ||
#layout: tiled | ||
# panes: | ||
# - export UAV_NAME=uav1; history -s rosservice call /'"$UAV_NAME"'/control_manager/start_trajectory_tracking; history -s rosservice call /'"$UAV_NAME"'/control_manager/goto_trajectory_start; history -s roslaunch uvdar_core load_trajectory.launch file:="tx1/line.txt" loop:=true | ||
# - export UAV_NAME=uav1; waitForControl; sleep 15; ~/catkin_ws/src/uvdar_core/scripts/trajectory_generation.py; history -s rosservice call /'"$UAV_NAME"'/control_manager/goto_trajectory_start | ||
# - export UAV_NAME=uav3; history -s rosservice call /'"$UAV_NAME"'/control_manager/start_trajectory_tracking; history -s rosservice call /'"$UAV_NAME"'/control_manager/goto_trajectory_start; history -s roslaunch uvdar_core load_trajectory.launch file:="two_tx/tx2_fly_by.txt" loop:=true | ||
- rviz: | ||
layout: even-vertical | ||
panes: | ||
- waitForGazebo; rviz -d $(rospack find uvdar_core)/rviz/two_drone_visualization.rviz | ||
- layout: | ||
layout: tiled | ||
panes: | ||
- waitForControl; sleep 3; ~/.i3/layout_manager.sh ./layout.json | ||
- record: | ||
layout: even-vertical | ||
panes: | ||
- 'history -s rosbag record -O ~/Desktop/MRS_Master_Project/rosbags/simulation/static_multiple_topics.bag /uav1/uvdar/adaptive_logging_back /uav1/uvdar/adaptive_logging_left /uav1/uvdar/adaptive_logging_right /uav1/uvdar/blinkers_seen_back /uav1/uvdar/blinkers_seen_left /uav1/uvdar/blinkers_seen_right /uav1/control_manager/control_reference --duration=30s' | ||
#- rosbag record -O rosbags/first/omta_38.bag -e "(.*)_camp" | ||
# - rosbag record -O rosbags/first/omta_39.bag -e "(.*)_camp" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters