Skip to content

Commit

Permalink
added image rgb to recognitions3D
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisMilczarek committed Jul 2, 2023
1 parent 004143b commit 8a4cc40
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def recognitions2DtoRecognitions3D(self, data):
pc2 = data.points
img_depth = data.image_depth
camera_info = data.camera_info
image_rgb = data.image_rgb

recognitions = Recognitions3D()
if pc2.width*pc2.height > 0:
Expand All @@ -345,6 +346,7 @@ def recognitions2DtoRecognitions3D(self, data):
else:
rospy.logwarn('Image2World cannot be used because pointcloud and depth images are void.')

recognitions.image_rgb = image_rgb
if self.publish_markers:
self.publishMarkers(recognitions.descriptions)
return recognitions
Expand Down

0 comments on commit 8a4cc40

Please sign in to comment.