mirror of
https://github.com/AtsushiSakai/PythonRobotics.git
synced 2026-01-13 14:48:02 -05:00
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:
@@ -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/")
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
@@ -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)
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user