unified_frameworks package

Subpackages

Submodules

unified_frameworks.captain module

This script is responsible for taking in the path from pathfinder and determining a command to send to the rover

class unified_frameworks.captain.Captain(gps_targets: List[Tuple[float, float]], get_target_speed: Callable[[], float])

Bases: Service

at_coordinate_function()

Function to run when at a GPS coordinate. Currently a stub, but should eventually be a function that navigates to the aruco tag at a GPS coordinate.

captain_act()
captain_stop()
run_captain(is_captain_running: Callable[[], bool])

unified_frameworks.pathfinder_visualizer module

unified_frameworks.pathfinder_visualizer.run_visualizer(get_pathfinder, on_hover_mouse=<function <lambda>>)
unified_frameworks.pathfinder_visualizer.show_visual(get_pathfinder)

unified_frameworks.unified_utils module

File to hold helpful util functions/classes

class unified_frameworks.unified_utils.Service(service_func, name)

Bases: _Abstract_Service

is_running()
start_service()
stop_service()
unified_frameworks.unified_utils.cart_to_polar(*args, **kwargs)
unified_frameworks.unified_utils.keep_track(is_active)
unified_frameworks.unified_utils.polar_dis(*args, **kwargs)
unified_frameworks.unified_utils.polar_sum(*args, **kwargs)
unified_frameworks.unified_utils.polar_to_cart(*args, **kwargs)
unified_frameworks.unified_utils.printLog(TAG, log)
unified_frameworks.unified_utils.same_polar_point(*args, **kwargs)
unified_frameworks.unified_utils.three_point_deviation(*args, **kwargs)
unified_frameworks.unified_utils.track_time(func: callable)

unified_frameworks.worldview module

This code is responsible for reading in all sensory inputs and unifying them into a single worldview for everything else to access

class unified_frameworks.worldview.Worldview

Bases: _Abstract_Service

geographic_coordinates_to_relative_coordinates(target_latitude: float, target_longitude: float) Tuple[float, float]
get_obstacles()

Get a list of obstacles where each obstacle is a point cloud of the obstacle

get_points()

Get a point cloud of the environment. The point cloud is a list of (radians, meters)

get_rover_body()

Get the coordinates of the rovers body

start_service()

Start sensors and start unifying data from all sensors

stop_service()

Stop unifying data and stop all sensors

unified_frameworks.worldview_visualizer module

Module contents