|
3 | 3 | <arg name="utm_z_offset" default="0.0" /> |
4 | 4 | <arg name="utm_zone" default="" /> |
5 | 5 | <arg name="osm_vis" default="false" /> |
| 6 | + <arg name="gpx_file" default="" /> |
| 7 | + <arg name="replay" default="false" /> |
6 | 8 |
|
7 | | - <node name="autonomy_override_vis" pkg="gps_to_path" type="autonomy_override_vis"/> |
| 9 | + <node name="autonomy_override_vis" pkg="gps_to_path" type="autonomy_override_vis" unless="$(arg replay)" /> |
8 | 10 |
|
9 | | - <node name="fix_to_utm" pkg="gps_to_path" type="fix_to_utm"> |
| 11 | + <node name="fix_to_utm" pkg="gps_to_path" type="fix_to_utm" unless="$(arg replay)"> |
10 | 12 | <param name="publish_pose" value="true" /> |
11 | 13 | <param name="publish_odom" value="true" /> |
12 | 14 | <param name="publish_path" value="true" /> |
13 | 15 | <param name="path_min_distance" value="0.25" /> |
14 | 16 | <param name="path_frame_id" value="utm_local" /> |
15 | 17 | <param name="z_offset" value="$(arg utm_z_offset)" /> |
16 | 18 | <param name="utm_zone" value="$(arg utm_zone)" if="$(eval utm_zone != '')" /> |
| 19 | + <param name="path_max_size" value="50000" /> |
17 | 20 | <remap from="~fix" to="fix" /> |
18 | 21 | </node> |
19 | 22 |
|
20 | | - <node name="fix_filtered_to_utm" pkg="gps_to_path" type="fix_to_utm"> |
| 23 | + <node name="fix_filtered_to_utm" pkg="gps_to_path" type="fix_to_utm" unless="$(arg replay)"> |
21 | 24 | <param name="publish_pose" value="true" /> |
22 | 25 | <param name="publish_odom" value="true" /> |
23 | 26 | <param name="publish_path" value="true" /> |
24 | 27 | <param name="path_min_distance" value="0.25" /> |
25 | 28 | <param name="path_frame_id" value="utm_local" /> |
26 | 29 | <param name="z_offset" value="$(arg utm_z_offset)" /> |
27 | 30 | <param name="utm_zone" value="$(arg utm_zone)" if="$(eval utm_zone != '')" /> |
| 31 | + <param name="path_max_size" value="50000" /> |
28 | 32 | <remap from="~fix" to="gps/fix_filtered" /> |
29 | 33 | </node> |
30 | 34 |
|
31 | | - <node name="fix_smoothed_to_utm" pkg="gps_to_path" type="fix_to_utm"> |
| 35 | + <node name="fix_smoothed_to_utm" pkg="gps_to_path" type="fix_to_utm" unless="$(arg replay)"> |
32 | 36 | <param name="publish_pose" value="true" /> |
33 | 37 | <param name="publish_odom" value="true" /> |
34 | 38 | <param name="publish_path" value="true" /> |
35 | 39 | <param name="path_min_distance" value="0.25" /> |
36 | 40 | <param name="path_frame_id" value="utm_local" /> |
37 | 41 | <param name="z_offset" value="$(arg utm_z_offset)" /> |
38 | 42 | <param name="utm_zone" value="$(arg utm_zone)" if="$(eval utm_zone != '')" /> |
| 43 | + <param name="path_max_size" value="50000" /> |
39 | 44 | <remap from="~fix" to="gps/filtered" /> |
40 | 45 | </node> |
41 | 46 |
|
42 | 47 | <node name="gpx_visualize" pkg="gps_to_path" type="gpx_visualize"> |
43 | 48 | <param name="z_offset" value="$(arg utm_z_offset)" /> |
44 | 49 | <param name="utm_zone" value="$(arg utm_zone)" if="$(eval utm_zone != '')" /> |
45 | 50 | <param name="path_frame_id" value="utm_local" /> |
46 | | - <remap from="~gpx_file" to="$(arg path_planner_node_name)/gpx_assignment" /> |
| 51 | + <param name="gpx_file" value="$(arg gpx_file)" if="$(eval gpx_file != '')" /> |
| 52 | + <remap from="~gpx_file" to="$(arg path_planner_node_name)/gpx_assignment" if="$(eval gpx_file == '')" /> |
47 | 53 | <remap from="~reverse" to="$(arg path_planner_node_name)/flip" /> |
48 | 54 | </node> |
49 | 55 |
|
|
59 | 65 | </node> |
60 | 66 |
|
61 | 67 | <node name="osm_visualize" pkg="gps_to_path" type="osm_visualize" if="$(arg osm_vis)"> |
62 | | - <remap from="~gpx_assignment" to="$(arg path_planner_node_name)/gpx_assignment" /> |
| 68 | + <param name="gpx_assignment" value="$(arg gpx_file)" if="$(eval gpx_file != '')" /> |
| 69 | + <remap from="~gpx_assignment" to="$(arg path_planner_node_name)/gpx_assignment" if="$(eval gpx_file == '')" /> |
63 | 70 | <param name="z_offset" value="$(arg utm_z_offset)" /> |
64 | 71 | </node> |
65 | 72 |
|
|
69 | 76 | <node name="fix_utm_slow" pkg="topic_tools" type="throttle" args="messages fix_to_utm/path 1 fix_to_utm/path_slow" respawn="true" /> |
70 | 77 | <node name="fix_smoothed_utm_slow" pkg="topic_tools" type="throttle" args="messages fix_smoothed_to_utm/path 1 fix_smoothed_to_utm/path_slow" respawn="true" /> |
71 | 78 |
|
72 | | - <node name="processed_waypoints_path" pkg="gps_to_path" type="waypoints_to_path_simple"> |
| 79 | + <node name="processed_waypoints_path" pkg="gps_to_path" type="waypoints_to_path_simple" unless="$(arg replay)"> |
73 | 80 | <param name="target_frame" value="utm" /> |
74 | 81 | <param name="z_frame" value="base_link" /> |
75 | 82 | <remap from="waypoints" to="processed_waypoints" /> |
76 | 83 | <remap from="path" to="processed_waypoints_path" /> |
77 | 84 | </node> |
78 | 85 |
|
79 | | - <node name="original_waypoints_path" pkg="gps_to_path" type="waypoints_to_path_simple"> |
| 86 | + <node name="original_waypoints_path" pkg="gps_to_path" type="waypoints_to_path_simple" unless="$(arg replay)"> |
80 | 87 | <param name="target_frame" value="utm" /> |
81 | 88 | <param name="z_frame" value="base_link" /> |
82 | 89 | <remap from="waypoints" to="original_waypoints" /> |
|
0 commit comments