From 3010170a3d72e08d2122f6fe8ce54839a584ba6e Mon Sep 17 00:00:00 2001 From: Rahul Date: Sat, 30 Mar 2024 13:23:50 -0700 Subject: [PATCH] Dev fixes before pull to main * Removed Wireless lidar from the list of lidars in lidar.py * Reenabled the hover to set goal option in Pathfinder Visualizer --- unified_frameworks/pathfinder_visualizer.py | 4 ++-- unified_frameworks/sensor_array/lidar.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/unified_frameworks/pathfinder_visualizer.py b/unified_frameworks/pathfinder_visualizer.py index 9d61e85..b23406c 100644 --- a/unified_frameworks/pathfinder_visualizer.py +++ b/unified_frameworks/pathfinder_visualizer.py @@ -101,8 +101,8 @@ def on_mouse_move(event): def show_visual(get_pathfinder): def on_hover_point(point_polar): - return - # get_pathfinder().set_goal(point_polar) if not point_polar is None else None + # return + get_pathfinder().set_goal(point_polar) if not point_polar is None else None fig, update_func = run_visualizer(get_pathfinder, on_hover_point) anime = anim.FuncAnimation(fig, update_func, 1, interval=50, blit=config['blit']) plt.show() diff --git a/unified_frameworks/sensor_array/lidar.py b/unified_frameworks/sensor_array/lidar.py index c3c0865..83c1907 100644 --- a/unified_frameworks/sensor_array/lidar.py +++ b/unified_frameworks/sensor_array/lidar.py @@ -20,7 +20,7 @@ importlib.reload(sensor_array.client_lidar) config = { - "lidar_preference": [ActualLidar, BridgeLidar, WirelessLidar, FakeLidar], + "lidar_preference": [ActualLidar, BridgeLidar, FakeLidar], "update_frequency": 20, # Hz "history_size": 1, "rover_radius": 0.7,