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

@@ -4,11 +4,16 @@ State lattice planner with model predictive trajectory generator
author: Atsushi Sakai (@Atsushi_twi)
- lookuptable.csv is generated with this script: https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathPlanning/ModelPredictiveTrajectoryGenerator/lookuptable_generator.py
- lookuptable.csv is generated with this script:
https://github.com/AtsushiSakai/PythonRobotics/blob/master/PathPlanning
/ModelPredictiveTrajectoryGenerator/lookuptable_generator.py
Ref:
- State Space Sampling of Feasible Motions for High-Performance Mobile Robot Navigation in Complex Environments http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.8210&rep=rep1&type=pdf
- State Space Sampling of Feasible Motions for High-Performance Mobile Robot
Navigation in Complex Environments
http://citeseerx.ist.psu.edu/viewdoc/download?doi=10.1.1.187.8210&rep=rep1
&type=pdf
"""
import sys
@@ -17,17 +22,11 @@ from matplotlib import pyplot as plt
import numpy as np
import math
import pandas as pd
import pathlib
sys.path.append(str(pathlib.Path(__file__).parent.parent))
sys.path.append(os.path.dirname(os.path.abspath(__file__))
+ "/../ModelPredictiveTrajectoryGenerator/")
try:
import model_predictive_trajectory_generator as planner
import motion_model
except ImportError:
raise
import ModelPredictiveTrajectoryGenerator.trajectory_generator as planner
import ModelPredictiveTrajectoryGenerator.motion_model as motion_model
table_path = os.path.dirname(os.path.abspath(__file__)) + "/lookuptable.csv"