Skip to content

Commit

Permalink
Minor changes
Browse files Browse the repository at this point in the history
  • Loading branch information
RobinSchmid7 committed Sep 13, 2023
1 parent f46197f commit 3cc9fb7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/dataset_generation/extract_binary_maps.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,10 +150,12 @@ def do(n, dry_run):

if topic == "/depth_camera_front_upper/point_cloud_self_filtered":
point_cloud_msg = msg
# print("point_cloud_msg", msg.header.stamp.to_sec())

elif topic == "/wide_angle_camera_front/img_out":
image_msg = msg
# print("Received /wide_angle_camera_front/img_out")
# print("image_msg", msg.header.stamp.to_sec())

info_msg.header = msg.header
camera_options = {}
Expand All @@ -163,6 +165,7 @@ def do(n, dry_run):
info_msg.header = msg.header
try:
wvn_ros_interface.image_callback(image_msg, point_cloud_msg, info_msg, camera_options)
print("Time diff", abs(point_cloud_msg.header.stamp.to_sec() - image_msg.header.stamp.to_sec()))
except Exception as e:
print("Bad image_callback", e)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,6 +403,8 @@ def add_proprio_node(self, pnode: ProprioceptionNode, projection_mode: str = "im
mnode.supervision_mask = supervision_masks[i]
# mnode.update_supervision_signal() # Accumulate supervision signal, check if features are there

# print("Save data...")

if self._mode == WVNMode.EXTRACT_LABELS:
p = os.path.join(
self._extraction_store_folder,
Expand Down

0 comments on commit 3cc9fb7

Please sign in to comment.