Skip to content

Commit 3f276ba

Browse files
committed
remove np.matrix
1 parent 4dbf642 commit 3f276ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

PathPlanning/ClosedLoopRRTStar/closed_loop_rrt_star_car.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def search_best_feasible_path(self, path_indexs):
134134
return False, None, None, None, None, None, None, None
135135

136136
def calc_tracking_path(self, path):
137-
path = np.matrix(path[::-1])
137+
path = np.array(path[::-1])
138138
ds = 0.2
139139
for i in range(10):
140140
lx = path[-1, 0]
@@ -145,7 +145,7 @@ def calc_tracking_path(self, path):
145145
print("back")
146146
ds *= -1
147147

148-
lstate = np.matrix(
148+
lstate = np.array(
149149
[lx + ds * math.cos(lyaw), ly + ds * math.sin(lyaw), lyaw])
150150
# print(lstate)
151151

@@ -296,7 +296,7 @@ def gen_final_course(self, goalind):
296296
goalind = node.parent
297297
path.append([self.start.x, self.start.y, self.start.yaw])
298298

299-
path = np.matrix(path[::-1])
299+
path = np.array(path[::-1])
300300
return path
301301

302302
def calc_dist_to_goal(self, x, y):

0 commit comments

Comments
 (0)