devkit_ui.test_navigation_goals

Functions

load_navigation_harness()

Load only navigation methods, avoiding ui_node's ROS and web-server startup.

make_node([action_client])

Classes

ActionClient(*[, ready, accepted, success, ...])

Future([result, invoke_callback])

Goal()

GoalHandle(accepted[, success])

ImmediateThread(target[, daemon])

NavigationHarness()

TestSendNavGoal([methodName])

TestSynchronousNavigationGoal([methodName])

class devkit_ui.test_navigation_goals.ActionClient(*, ready=True, accepted=True, success=True, complete=True)[source]

Bases: object

send_goal_async(goal, feedback_callback)[source]
wait_for_server(timeout_sec)[source]
class devkit_ui.test_navigation_goals.Future(result=None, invoke_callback=False)[source]

Bases: object

add_done_callback(callback) → None[source]
result()[source]
class devkit_ui.test_navigation_goals.Goal[source]

Bases: object

class devkit_ui.test_navigation_goals.GoalHandle(accepted, success=None)[source]

Bases: object

get_result_async()[source]
class devkit_ui.test_navigation_goals.ImmediateThread(target, daemon=False)[source]

Bases: object

start() → None[source]
class devkit_ui.test_navigation_goals.NavigationHarness

Bases: object

cancel_nav_goal() → None

Cancel the active navigation goal.

If the goal has already been accepted, cancel it now. If a send is still in flight (accepted status not yet known), flag it so _nav_accepted cancels it the moment it arrives, and keep navigating set so a second goal cannot be accepted in the meantime.

send_nav_goal(target: str) → None

Send a navigation goal to the specified topology node.

Parameters:

target (str) – Name of the topology node to navigate to.

class devkit_ui.test_navigation_goals.TestSendNavGoal(methodName='runTest')[source]

Bases: TestCase

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_action_server_timeout_clears_navigation_flag() → None[source]
test_missing_action_support_does_not_start_navigation() → None[source]
test_rejects_reentrant_and_estopped_submissions_without_mutating_state() → None[source]
test_submits_goal_and_marks_navigation_in_progress() → None[source]
class devkit_ui.test_navigation_goals.TestSynchronousNavigationGoal(methodName='runTest')[source]

Bases: TestCase

setUp() → None[source]

Hook method for setting up the test fixture before exercising it.

test_rejected_goal_clears_view_model_navigation_flag() → None[source]
test_result_updates_view_model_for_success_and_failure() → None[source]
test_unavailable_server_never_marks_navigation_active() → None[source]
devkit_ui.test_navigation_goals.load_navigation_harness()[source]

Load only navigation methods, avoiding ui_node’s ROS and web-server startup.

devkit_ui.test_navigation_goals.make_node(action_client=None)[source]