Skip to content

Commit

Permalink
merge ground truth with pre-process data
Browse files Browse the repository at this point in the history
  • Loading branch information
marinagmoreira committed Jul 19, 2023
1 parent f4d7d0b commit 88c735a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 112 deletions.
108 changes: 0 additions & 108 deletions anomaly/gmm-change-detection/scripts/gmm/ground_truth.py

This file was deleted.

6 changes: 3 additions & 3 deletions anomaly/gmm-change-detection/scripts/gmm/preprocess_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -166,15 +166,15 @@ def read_pc2_msgs(bagfile):
"/hw/depth_haz/extended/amplitude_int",
]
pc2_msg = None

count = 0
# First message should be saved
count = 100
i = 0
with rosbag.Bag(bagfile, "r") as bag:
for topic, msg, t in bag.read_messages(topics_bag):
if topic == "/hw/depth_haz/points":
count += 1
if count % skipped == 0:
pc2_msg = msg
count += 1
if topic == "/gnc/ekf" and pc2_msg is not None:

pc2_body = translate_cam_frame(pc2_msg)
Expand Down
2 changes: 1 addition & 1 deletion anomaly/gmm-change-detection/scripts/gmm/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
import pickle

from gmm.emd_gmm import *
from gmm.gmm2 import *
from gmm.gmm_edit import *


def get_filename(original_file):
Expand Down

0 comments on commit 88c735a

Please sign in to comment.