Skip to content

Commit 4c83873

Browse files
authored
Merge pull request #178 from CMU-cabot/muratams/dev-fix-diagnostics
Muratams/dev fix diagnostics
2 parents c54b9f1 + c43912a commit 4c83873

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

mf_localization/configuration_files/ublox/zed_f9p_rover.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ ublox:
1313

1414
rate: 10.0 # Hz
1515

16+
# diagnostics
17+
ignore_fix_timestamp: true
18+
# fix_frequency_tolerance: 0.15
19+
# fix_frequency_window: 10
20+
# timestamp_status_min: 0
21+
1622
# message publishers
1723
publish:
1824
all: false

mf_localization/launch/gnss.launch.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def generate_launch_description():
5959
authentificate = LaunchConfiguration('authentificate')
6060
username = LaunchConfiguration('username')
6161
password = LaunchConfiguration('password')
62+
respawn_ntrip_client = LaunchConfiguration('respawn_ntrip_client')
6263

6364
# str2str_node
6465
serial_port = LaunchConfiguration('serial_port')
@@ -101,6 +102,8 @@ def generate_launch_description():
101102
'authentificate': authentificate,
102103
'username': username,
103104
'password': password,
105+
'reconnect_attempt_max': '10000', # default: 10
106+
'respawn' : respawn_ntrip_client,
104107
'nmea_max_length': '90', # a large value to accept high precision mode
105108
}.items(),
106109
condition=IfCondition(ntrip_client)
@@ -182,6 +185,7 @@ def generate_launch_description():
182185
DeclareLaunchArgument('authentificate', default_value='false', description='Whether to authentificate with the server. If set to true, username and password must be supplied.'),
183186
DeclareLaunchArgument('username', default_value=''),
184187
DeclareLaunchArgument('password', default_value=''),
188+
DeclareLaunchArgument('respawn_ntrip_client', default_value='true'),
185189

186190
# str2str_node
187191
DeclareLaunchArgument('serial_port', default_value='ttyUBLOX'),

mf_localization/launch/ublox-zed-f9p.launch.xml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@
2626
<arg name="param_file_name" default="zed_f9p_rover" />
2727
<arg name="param_file_dir" default="$(find-pkg-share mf_localization)/configuration_files/ublox" />
2828
<arg name="output" default="both" />
29+
<arg name="respawn" default="true"/>
2930

3031
<!-- the following attributes are not available in ROS 2-->
3132
<!--
@@ -37,7 +38,9 @@
3738
<node pkg="ublox_gps"
3839
exec="ublox_gps_node"
3940
name="$(var node_name)"
40-
output="$(var output)">
41+
output="$(var output)"
42+
respawn="$(var respawn)"
43+
respawn_delay="5">
4144
<param from="$(var param_file_dir)/$(var param_file_name).yaml" />
4245
<!-- remapping because ROS 2 ublox node publishes navsat type messages to navstate topics. -->
4346
<remap from="navstate" to="ublox/navsat"/>

0 commit comments

Comments
 (0)