Skip to content
This repository has been archived by the owner on May 4, 2024. It is now read-only.

Commit

Permalink
organize lidars into their own package
Browse files Browse the repository at this point in the history
  • Loading branch information
chrehall68 committed Apr 13, 2024
1 parent c2d81fa commit 0bda43e
Show file tree
Hide file tree
Showing 9 changed files with 13 additions and 13 deletions.
Empty file.
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
import traceback

try:
from sensor_array.LidarClass import _Lidar
from unified_frameworks.sensor_array.lidar.LidarClass import _Lidar
except ModuleNotFoundError:
import sys
import re

sys.path.append((next(re.finditer(".*unified_frameworks", __file__)).group()))
from sensor_array.LidarClass import _Lidar
from unified_frameworks.sensor_array.lidar.LidarClass import _Lidar
from rplidar import RPLidar, RPLidarException
import serial.tools.list_ports
from serial.serialutil import PortNotOpenError
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
import re
root = (next(re.finditer(".*unified_frameworks", __file__)).group())
sys.path.append(root) if root not in sys.path else None
from sensor_array.actual_lidar import ActualLidar
from sensor_array.LidarClass import _Lidar
from unified_frameworks.sensor_array.lidar.actual_lidar import ActualLidar
from unified_frameworks.sensor_array.lidar.LidarClass import _Lidar
from bridge import rover_side, client_side
from bridge.exceptions import NoOpenBridgeException
from unified_utils import Service
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
import sys
import re
sys.path.append((next(re.finditer(".*unified_frameworks", __file__)).group()))
from sensor_array.LidarClass import _Lidar
from unified_frameworks.sensor_array.lidar.LidarClass import _Lidar
from unified_utils import Service, polar_sum

config = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
import re
root = (next(re.finditer(".*unified_frameworks", __file__)).group())
sys.path.append(root) if root not in sys.path else None
from sensor_array.actual_lidar import ActualLidar
from sensor_array.bridge_lidar import BridgeLidar
from unified_frameworks.sensor_array.lidar.actual_lidar import ActualLidar
from unified_frameworks.sensor_array.lidar.bridge_lidar import BridgeLidar
import importlib
from sensor_array.fake_lidar import FakeLidar
from sensor_array.LidarClass import _Lidar
from unified_frameworks.sensor_array.lidar.fake_lidar import FakeLidar
from unified_frameworks.sensor_array.lidar.LidarClass import _Lidar
import traceback
from threading import Thread
from math import pi, cos, sin, sqrt, atan2, radians
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import json
import sys
# print(sys.path)
import lidar as L
import unified_frameworks.sensor_array.lidar.lidar as L
import time
import traceback

Expand Down
6 changes: 3 additions & 3 deletions unified_frameworks/worldview.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
from threading import Thread
from math import pi
from unified_utils import polar_sum, _Abstract_Service
import sensor_array.lidar
import unified_frameworks.sensor_array.lidar.lidar
import bridge.client_side
import importlib
importlib.reload(bridge.client_side)
importlib.reload(sensor_array.lidar)
lidar = sensor_array.lidar
importlib.reload(unified_frameworks.sensor_array.lidar.lidar)
lidar = unified_frameworks.sensor_array.lidar.lidar


config = {
Expand Down

0 comments on commit 0bda43e

Please sign in to comment.