Skip to content

Commit

Permalink
anyD_done
Browse files Browse the repository at this point in the history
  • Loading branch information
391311qy committed Jul 25, 2020
1 parent aaba8e3 commit 525317e
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions Search-based Planning/Search_3D/Anytime_Dstar3D.py
Original file line number Diff line number Diff line change
Expand Up @@ -157,21 +157,25 @@ def Main(self):
t = 0
self.ComputeorImprovePath()
#TODO publish current epsilon sub-optimal solution
self.done = True
self.ind = 0
self.Path = self.path()
visualization(self)
while True:
print(t)
print(self.Path)
if t == 5:
visualization(self)
if t == 20:
break
# change environment
new2,old2 = self.env.move_block(theta = [0,0,0.1*t], mode='rotation')
# new2,old2 = self.env.move_block(theta = [0,0,0.1*t], mode='rotation')
new2,old2 = self.env.move_block(a = [0,0,-0.2], mode='translation')
ischanged = True
# islargelychanged = True
self.Path = []

# update cost with changed environment
if ischanged:
CHANGED = self.updatecost(True, new2, old2, mode='obb')
# CHANGED = self.updatecost(True, new2, old2, mode='obb')
CHANGED = self.updatecost(True, new2, old2)
for u in CHANGED:
self.UpdateState(u)
self.ComputeorImprovePath()
Expand Down

0 comments on commit 525317e

Please sign in to comment.