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

Function update_timestamps

eval_code/recons/relpose/evo_utils.py:195–204  ·  view source on GitHub ↗

Update timestamps given a

(gt_file, traj_format, skip=0, stride=1)

Source from the content-addressed store, hash-verified

193
194
195def update_timestamps(gt_file, traj_format, skip=0, stride=1):
196 """Update timestamps given a"""
197 if traj_format == "tum":
198 traj_t_map_file = gt_file.replace("groundtruth.txt", "rgb.txt")
199 timestamps = load_timestamps(traj_t_map_file, traj_format)
200 return timestamps[skip::stride]
201 elif traj_format == "tartanair":
202 traj_t_map_file = gt_file.replace("gt_pose.txt", "times.txt")
203 timestamps = load_timestamps(traj_t_map_file, traj_format)
204 return timestamps[skip::stride]
205
206
207def load_timestamps(time_file, traj_format="replica"):

Callers

nothing calls this directly

Calls 1

load_timestampsFunction · 0.85

Tested by

no test coverage detected