devkit_ui.test_f2c_row_metadata

Functions

latlon_to_xy(lat, lon, anchor_lat, anchor_lon)

load_f2c_save_harness()

Load only the F2C save method, avoiding ui_node's ROS and web-server imports.

make_node(swaths, *[, contour_used])

resample_row_xy(_points, _anchor_lat, ...)

xy_to_latlon(x, y, anchor_lat, anchor_lon)

Classes

F2CSaveHarness()

TestF2CRowMetadata([methodName])

class devkit_ui.test_f2c_row_metadata.F2CSaveHarness

Bases: object

save_f2c_rows_to_topo(prefix: str, row_id_start: int, overwrite: bool = False) → None

Save the most recently planned F2C swaths as rows in the loaded topology map.

Parameters:
  • prefix (str) – Prefix used to name the generated row nodes.

  • row_id_start (int) – Identifier assigned to the first planned row.

  • overwrite (bool) – Whether to replace existing nodes with the specified prefix.

class devkit_ui.test_f2c_row_metadata.TestF2CRowMetadata(methodName='runTest')[source]

Bases: TestCase

assert_row_metadata(node: TopoNode, row_id: int, row_role: str) → None[source]
test_contour_waypoint_metadata_matches_entry_and_exit_metadata() → None[source]
test_entry_and_exit_metadata_is_saved_for_each_row() → None[source]
devkit_ui.test_f2c_row_metadata.latlon_to_xy(lat: float, lon: float, anchor_lat: float, anchor_lon: float) → tuple[float, float][source]
devkit_ui.test_f2c_row_metadata.load_f2c_save_harness()[source]

Load only the F2C save method, avoiding ui_node’s ROS and web-server imports.

devkit_ui.test_f2c_row_metadata.make_node(swaths, *, contour_used=False)[source]
devkit_ui.test_f2c_row_metadata.resample_row_xy(_points, _anchor_lat, _anchor_lon, _interval)[source]
devkit_ui.test_f2c_row_metadata.xy_to_latlon(x: float, y: float, anchor_lat: float, anchor_lon: float) → tuple[float, float][source]