Fix No module error in GridBasedSweepCPP and ClosedLoopRRTStart (#516)

* Fix No module error in GridBasedSweepCPP and ClosedLoopRRTStart

* Fix No module error in GridBasedSweepCPP and ClosedLoopRRTStart

* Fix No module error in GridBasedSweepCPP and ClosedLoopRRTStart

* Fix No module error in GridBasedSweepCPP and ClosedLoopRRTStart

* Fix No module error in GridBasedSweepCPP and ClosedLoopRRTStart
This commit is contained in:
Haegu Lee
2021-06-21 22:44:06 +09:00
committed by GitHub
parent a0db9d266c
commit fe4ce92c4b
4 changed files with 25 additions and 18 deletions

View File

@@ -1,8 +0,0 @@
import os
import sys
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(os.path.dirname(
os.path.abspath(__file__)) + "/../ReedsSheppPath/")
sys.path.append(os.path.dirname(
os.path.abspath(__file__)) + "/../RRTStarReedsShepp/")

View File

@@ -5,15 +5,28 @@ 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
import reeds_shepp_path_planning
from rrt_star_reeds_shepp import RRTStarReedsShepp
sys.path.append(os.path.dirname(os.path.abspath(__file__)))
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
show_animation = True

View File

@@ -1,7 +0,0 @@
import os
import sys
GRID_MAP_LIB = os.path.dirname(os.path.abspath(__file__)) + \
"/../../Mapping/"
sys.path.append(GRID_MAP_LIB)

View File

@@ -5,13 +5,22 @@ author: Atsushi Sakai
"""
import math
import os
import sys
from enum import IntEnum
import numpy as np
from scipy.spatial.transform import Rotation as Rot
from Mapping.grid_map_lib.grid_map_lib import GridMap
import matplotlib.pyplot as plt
sys.path.append(os.path.dirname(os.path.abspath(__file__)) +
"/../../Mapping/")
try:
from grid_map_lib.grid_map_lib import GridMap
except ImportError:
raise
do_animation = True