Skip to content

Commit

Permalink
Tools: update rtk_play
Browse files Browse the repository at this point in the history
  • Loading branch information
Capri2014 committed Jun 27, 2019
1 parent 99efe03 commit 74f815c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/tools/record_play/rtk_player.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def restart(self):
(self.start, self.closestpoint))

self.closestpoint = self.closest_dist()
self.start = max(self.closestpoint - 100, 0)
self.start = max(self.closestpoint - 1, 0)
self.starttime = cyber_time.Time.now().to_sec()
self.end = min(self.start + 1000, len(self.data) - 1)
self.logger.info("finish replan at time %s, self.closestpoint=%s" %
Expand Down Expand Up @@ -195,7 +195,7 @@ def publish_planningmsg(self):
else:
timepoint = self.closest_time()
distpoint = self.closest_dist()
self.start = max(min(timepoint, distpoint) - 100, 0)
self.start = max(min(timepoint, distpoint) - 1, 0)
self.end = min(max(timepoint, distpoint) + 900, len(self.data) - 1)

xdiff_sqr = (self.data['x'][timepoint] - self.carx)**2
Expand Down

0 comments on commit 74f815c

Please sign in to comment.