|
38 | 38 | from clearpath_config.common.utils.dictionary import merge_dict, replace_dict_items
|
39 | 39 | from clearpath_config.platform.battery import BatteryConfig
|
40 | 40 | from clearpath_config.sensors.types.cameras import BaseCamera, IntelRealsense
|
41 |
| -from clearpath_config.sensors.types.gps import BaseGPS |
| 41 | +from clearpath_config.sensors.types.gps import BaseGPS, NMEA |
42 | 42 | from clearpath_config.sensors.types.imu import BaseIMU, PhidgetsSpatial
|
43 | 43 | from clearpath_config.sensors.types.lidars_2d import BaseLidar2D
|
44 | 44 | from clearpath_config.sensors.types.lidars_3d import BaseLidar3D
|
@@ -323,6 +323,13 @@ def generate_parameters(self, use_sim_time: bool = False) -> None:
|
323 | 323 | 'contains': ['imu']
|
324 | 324 | }
|
325 | 325 |
|
| 326 | + if self.clearpath_config.get_platform_model() == Platform.J100: |
| 327 | + sensor_analyzers['gps'] = { |
| 328 | + 'type': 'diagnostic_aggregator/GenericAnalyzer', |
| 329 | + 'path': 'GPS', |
| 330 | + 'contains': ['gps'] |
| 331 | + } |
| 332 | + |
326 | 333 | # List all topics to be monitored from each launched sensor
|
327 | 334 | for sensor in self.clearpath_config.sensors.get_all_sensors():
|
328 | 335 |
|
@@ -476,6 +483,18 @@ def generate_parameters(self, use_sim_time: bool = False) -> None:
|
476 | 483 | }
|
477 | 484 | })
|
478 | 485 |
|
| 486 | + if platform_model == Platform.J100: |
| 487 | + self.param_file.update({ |
| 488 | + self.DIAGNOSTIC_UPDATER_NODE: { |
| 489 | + 'topics': { |
| 490 | + 'sensors/gps_0/fix': { |
| 491 | + 'type': NMEA.TOPICS.TYPE[NMEA.TOPICS.FIX], |
| 492 | + 'rate': 10.0 |
| 493 | + } |
| 494 | + } |
| 495 | + } |
| 496 | + }) |
| 497 | + |
479 | 498 | # List all topics to be monitored from each launched sensor
|
480 | 499 | for sensor in self.clearpath_config.sensors.get_all_sensors():
|
481 | 500 |
|
|
0 commit comments