using pathlib based local module import (#722)

* using pathlib based local module import

* remove unused import
This commit is contained in:
Atsushi Sakai
2022-09-11 07:21:37 +09:00
committed by GitHub
parent 1ff3095c14
commit 76b0d04a3c
39 changed files with 142 additions and 245 deletions

View File

@@ -5,27 +5,17 @@ Path planning Sample Code with Closed loop RRT for car like robot.
author: AtsushiSakai(@Atsushi_twi)
"""
import os
import sys
import matplotlib.pyplot as plt
import numpy as np
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
import sys
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent))
import pure_pursuit
import unicycle_model
sys.path.append(os.path.dirname(
os.path.abspath(__file__)) + "/../ReedsSheppPath/")
sys.path.append(os.path.dirname(
os.path.abspath(__file__)) + "/../RRTStarReedsShepp/")
try:
import reeds_shepp_path_planning
from rrt_star_reeds_shepp import RRTStarReedsShepp
except ImportError:
raise
from ClosedLoopRRTStar import pure_pursuit
from ClosedLoopRRTStar import unicycle_model
from ReedsSheppPath import reeds_shepp_path_planning
from RRTStarReedsShepp.rrt_star_reeds_shepp import RRTStarReedsShepp
show_animation = True