35 from .bounds
import Bounds
36 from .util
import FIELDS
49 """This class loads all the Evaluation messages from the bag files and maintains stats about the range of values."""
53 self.
cache = collections.defaultdict(dict)
59 for bag, entry
in scene.get_entries_with_bags([topic], start, end):
60 if entry.position
in self.
cache[bag]:
61 msgs.append(self.
cache[bag][entry.position])
63 topic, msg, t = scene.read_message(bag, entry.position)
64 self.
cache[bag][entry.position] = t.to_sec(), msg
65 msgs.append(self.
cache[bag][entry.position])
71 best = msg.twists[msg.best_index].traj.velocity
73 value = getattr(best, field)
74 if self.
v_max is None: