Skip to content

Commit

Permalink
get rid of unused header to avoid confusion (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
yunzc authored Feb 25, 2025
1 parent afa168f commit 24c436a
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 4 deletions.
1 change: 0 additions & 1 deletion extra/ouroboros_msgs/msg/SparkImageMsg.msg
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
std_msgs/Header header
sensor_msgs/Image rgb
sensor_msgs/Image depth
1 change: 0 additions & 1 deletion extra/ouroboros_msgs/msg/VlcImageMsg.msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
std_msgs/Header header
ouroboros_msgs/VlcImageMetadataMsg metadata
ouroboros_msgs/SparkImageMsg image
float32[] embedding
Expand Down
1 change: 0 additions & 1 deletion extra/ouroboros_ros/src/ouroboros_ros/conversions.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ def vlc_image_to_msg(
vlc_msg = VlcImageMsg()
if vlc.image is not None and convert_image:
vlc_msg.image = spark_image_to_msg(vlc.image)
vlc_msg.header = vlc_msg.image.header
vlc_msg.metadata = vlc_image_metadata_to_msg(vlc.metadata)
if vlc.embedding is not None and convert_embedding:
vlc_msg.embedding = vlc.embedding.tolist()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def embedding_timer_callback(self, event):
def client_embedding_callback(self, vlc_img_msg, robot_id):
# Add image
vlc_image = vlc_image_from_msg(vlc_img_msg)
vlc_stamp = vlc_img_msg.header.stamp.to_nsec()
vlc_stamp = vlc_img_msg.metadata.epoch_ns
new_uuid = self.vlc_server.add_embedding_no_image(
self.robot_infos[robot_id].session_id,
vlc_image.embedding,
Expand Down

0 comments on commit 24c436a

Please sign in to comment.