Skip to content

Commit

Permalink
Fix ACFR to oplab vehicle converions
Browse files Browse the repository at this point in the history
  • Loading branch information
miquelmassot committed Oct 23, 2023
1 parent 9fbdaa2 commit 60f7c44
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/auv_nav/convert.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,9 @@ def acfr_to_oplab(args):
Console.info("Vehicle pose provided! Converting it to DR CSV...")
vpp = AcfrVehiclePoseParser(args.vehicle_pose)
dr = vpp.get_dead_reckoning()

print("Found", len(dr), "dr entries")

csv_filename = "auv_acfr_centre.csv"

if (csv_filepath / csv_filename).exists() and not force_overwite:
Expand Down
3 changes: 2 additions & 1 deletion src/auv_nav/parsers/acfr_vehicle_pose.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ def parse(self, filename):
self.origin_longitude = float(line.split()[1])
if i > 45:
self._entries.append(AcfrVehiclePose(line))
print("Parsed", len(self._entries), "entries")

def __call__(self, index):
return self._entries[index]
Expand All @@ -192,7 +193,7 @@ def get_dead_reckoning(self):
dr.x_velocity = 0
dr.y_velocity = 0
dr.z_velocity = 0

dr_list.append(dr)
return dr_list


Expand Down

0 comments on commit 60f7c44

Please sign in to comment.