-
Notifications
You must be signed in to change notification settings - Fork 0
/
edge_readme.txt
executable file
·96 lines (63 loc) · 3.11 KB
/
edge_readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
Edge端操作手册:
##一,程序组成和信息流:
~/5G_edge_ws:
1.5g转发承接部分(上行:/drone_state_x,/drone_image_x,/drone_state_x;下行:/teamrl_controller_vel(十架飞机共用,header.frame_id = robot_id区分) x:0-9)
2.气球检测部分,基于yolov5检测气球中心点(输入/drone_image_x,输出/target_bbx_x)
3.气球位置估计:基于三角化初始化和卡尔曼滤波(输入/target_bbx_x,输出/balloon_estimation/odom)
4.teamrl_controller:
##二,各环节配置方式:
##三, edge端运行
1. wait for all ms.
2. start the edge-5g-transfer:
cd ~/5G_edge_ws && source devel/setup.bash && conda activate base
cd ~/5G_edge_ws/src/ros-edge-transfer/ros-edge-transfer/scripts && python edge-drone.py
#check state topics:
rostopic hz /drone_state_x
#open rviz to check images from drones: subscribe to /drone_image_x(x:0-9)
3. open the balloon detection program:
cd ~/5G_edge_ws/src/drone/scripts/balloon_test && python detect_balloon.py
4. before drones taking off(to get the initiate altitudes), open the balloon location estimation program:
#remember to adjust the ros parameter of "uav_num" in ~/5g-ws/src/balloon_estimation/launch/balloon_estimation.launch line 6
cd ~/5G_edge_ws && source devel/setup.bash && roslaunch balloon_estimation balloon_estimation.launch
5. open the teamrl_controller program:
#Note:check the loaded model,
cd ~/5G_edge_ws/src/drone/scripts/MavenRL/real_controller && python teamrl_controller.py
6. check the command download:
check each drone from the output of their 5g-transfer program for "TAKE OFF"
if no, restart the step 2 and check again
#####################################
exploration, target detection and localization, formation with target tracking
1. before drones taking off(to get the initiate altitudes), open the balloon location estimation program:
#remember to adjust the ros parameter of "uav_num" in ~/5g-ws/src/balloon_estimation/launch/balloon_estimation.launch line 6
cd ~/5G_edge_ws && roslaunch balloon_estimation balloon_estimation.launch
2. open the teamrl_controller_explore program:
#Note:check the loaded model,
cd ~/5G_edge_ws/src/drone/scripts/MavenRL/real_controller && python teamrl_controller_explore.py
#####################################
formation with obstacle avoidance
1. open the trajectory planning:
cd ~/5G_edge_ws/ && roslaunch global_path_planning global_path_planning.launch
use 2D Nav Goal to set the destination of planning
2. open the teamrl_controller_obs_avoid program:
cd ~/5G_edge_ws/src/drone/scripts/MavenRL/real_controller && python teamrl_controller_obs_avoid.py
#######final exam##################
###communication between three zones: yuquan--ssh->huzhou--ssh->gongyuan
###huzhou: server
pwd:zju104104
###gongyuan:5g-new
###yuquan:5g
client send to server
###1. operation on huzhou
pwd:zju104104
cd ~/DTD && python server.py
###2. operation on yuquan104
cd ~/DTD && python c2s.py -c
###3.operation on gongyuan
pwd:zju104104
cd ~ && python c2s.py -s