From d40d5378e0a3a538b07d9d398225da47303b20c6 Mon Sep 17 00:00:00 2001 From: Rakesh Vivekanandan Date: Mon, 10 Jun 2024 14:39:27 -0700 Subject: [PATCH] pre-commit changes --- docking_control/src/docking_control/auv_hinsdale.py | 1 - docking_control/utils/sonar_to_grid_map.py | 8 ++------ 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/docking_control/src/docking_control/auv_hinsdale.py b/docking_control/src/docking_control/auv_hinsdale.py index 0d15145..ab14ace 100755 --- a/docking_control/src/docking_control/auv_hinsdale.py +++ b/docking_control/src/docking_control/auv_hinsdale.py @@ -1,4 +1,3 @@ - import numpy as np import yaml from casadi import ( diff --git a/docking_control/utils/sonar_to_grid_map.py b/docking_control/utils/sonar_to_grid_map.py index 78d9cd8..12e32c3 100644 --- a/docking_control/utils/sonar_to_grid_map.py +++ b/docking_control/utils/sonar_to_grid_map.py @@ -99,12 +99,8 @@ def generate_ray_casting_grid_map(ox, oy, xy_resolution): occupancy_map = np.zeros((x_w, y_w)) # occupancy_map = np.ones((x_w, y_w)) / 2 - int( - np.floor(-min_x / xy_resolution) - ) # center x coordinate of the grid map - int( - np.floor(-min_y / xy_resolution) - ) # center y coordinate of the grid map + int(np.floor(-min_x / xy_resolution)) # center x coordinate of the grid map + int(np.floor(-min_y / xy_resolution)) # center y coordinate of the grid map # occupancy grid computed with bresenham ray casting for x, y in tqdm(zip(ox, oy), total=len(ox)):