MCPcopy Create free account
hub / github.com/InternRobotics/G2VLM / load_timestamps

Function load_timestamps

eval_code/recons/relpose/evo_utils.py:207–214  ·  view source on GitHub ↗
(time_file, traj_format="replica")

Source from the content-addressed store, hash-verified

205
206
207def load_timestamps(time_file, traj_format="replica"):
208 if traj_format in ["tum", "tartanair"]:
209 with open(time_file, "r+") as f:
210 lines = f.readlines()
211 timestamps_mat = [
212 float(x.split(" ")[0]) for x in lines if not x.startswith("#")
213 ]
214 return timestamps_mat
215
216
217def make_traj(args) -> PoseTrajectory3D:

Callers 1

update_timestampsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected