Skip to content

Commit

Permalink
removed measuring of planning step for evaluation
Browse files Browse the repository at this point in the history
  • Loading branch information
Lea committed Jan 22, 2025
1 parent 5147b60 commit 547322f
Showing 1 changed file with 0 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -90,15 +90,7 @@ def step(self) -> None:
try:
if self.planner.active():
# Calculate the path to the goal pose considering the current map
start = time()
path = self.planner.step()
end = time()
if len(self.planner.robots) not in self.measurements:
self.measurements[len(self.planner.robots)] = (1, end - start)
else:
(n, avg) = self.measurements[len(self.planner.robots)]
self.measurements[len(self.planner.robots)] = (n + 1, (n * avg + (end - start)) / (n + 1))
self.get_logger().info(f"planning steps={self.measurements}")
# Publish the path for visualization
self.path_pub.publish(path)
# Calculate the command velocity to follow the given path
Expand Down

0 comments on commit 547322f

Please sign in to comment.