Skip to content

Commit fd4923f

Browse files
committed
remove exit()
1 parent 124fb91 commit fd4923f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

PathPlanning/ClosedLoopRRTStar/closed_loop_rrt_star_car.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,7 +446,6 @@ def main():
446446

447447
if not flag:
448448
print("cannot find feasible path")
449-
exit()
450449

451450
# flg, ax = plt.subplots(1)
452451
# Draw final path

SLAM/iterative_closest_point/iterative_closest_point.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ def ICP_matching(pdata, data):
103103
error = nearest_neighbor_assosiation(pdata, data)
104104
Rt, Tt = SVD_motion_estimation(pdata, data)
105105
# print(count)
106-
print(error)
106+
# print(error)
107107

108108
data = (Rt * data) + Tt
109109
R = R * Rt
@@ -134,8 +134,8 @@ def nearest_neighbor_assosiation(pdata, data):
134134

135135
def SVD_motion_estimation(pdata, data):
136136

137-
pm = np.mean(pdata, axis=1)
138-
cm = np.mean(data, axis=1)
137+
pm = np.matrix(np.mean(pdata, axis=1))
138+
cm = np.matrix(np.mean(data, axis=1))
139139

140140
pshift = np.matrix(pdata - pm)
141141
cshift = np.matrix(data - cm)

0 commit comments

Comments
 (0)