You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, thank you for your shared work, it;s useful for me.
However, when I input my rosbag, the error shows:
[DEBUG] [1710318477.902099, 1709132152.561885]: Image updated for camera 0 (rgb_camera_link).
Traceback (most recent call last):
File "/home/yc/catkin_map/ctu-vras/src/traversability_estimation/scripts/nodes/segmentation_inference", line 367, in <module>
main()
File "/home/yc/catkin_map/ctu-vras/src/traversability_estimation/scripts/nodes/segmentation_inference", line 363, in main
node.spin()
File "/home/yc/catkin_map/ctu-vras/src/traversability_estimation/scripts/nodes/segmentation_inference", line 311, in spin
pred, trav = self.process(arr)
File "/home/yc/catkin_map/ctu-vras/src/traversability_estimation/scripts/nodes/segmentation_inference", line 248, in process
orig_size = image.shape[:2]
AttributeError: 'NoneType' object has no attribute 'shape'
[DEBUG] [1710318477.907829, 1709132152.571938]: [/clock] failed to receive incoming message : unable to receive data from sender, check sender's logs for details
[DEBUG] [1710318477.908134, 1709132152.571938]: [/sync_rgb] failed to receive incoming message : unable to receive data from sender, check sender's logs for details
I use rosbag and camera raw format, the params as follows:
Moverover, I add some info in the segmentation_inference as follows:
while not rospy.is_shutdown():
t0 = rospy.Time.now()
i = (i + 1) % len(self.images)
with self.lock:
image, camera_info = self.images[i], self.camera_infos[i]
if not image:
rospy.loginfo('not image')
continue
if not camera_info:
rospy.loginfo('not camera_info')
continue
try:
if self.image_transport:
arr = self.bridge.compressed_imgmsg_to_cv2(image, "bgr8")
else:
arr = self.bridge.imgmsg_to_cv2(image, "bgr8")
rospy.loginfo('raw msg to iamge...')
except CvBridgeError as e:
rospy.logerr(e)
raise
It seems that can't receive image, can you tell me how to fix it? Thank you for your reply.
The text was updated successfully, but these errors were encountered:
I've solve this issue, the reason due to the different judgement between raw and compressed image.
Then, can you tell me how to publish raw images as follows?
pub = rospy.Publisher('output_%i/semseg_color' % i, Image, queue_size=1)
self.image_color_pubs[i] = pub
pub = rospy.Publisher('output_%i/semseg' % i, Image, queue_size=1)
self.image_pubs[i] = pub
In color_pc_bagfile_demo.launch, node point_cloud_color sub the topic from semantic segmentaion, but the above node didn't pubish such topic here.
Thank you to reply me and help me here.
Hi, thank you for your shared work, it;s useful for me.
However, when I input my rosbag, the error shows:
I use rosbag and camera raw format, the params as follows:
Moverover, I add some info in the
segmentation_inference
as follows:It seems that can't receive image, can you tell me how to fix it? Thank you for your reply.
The text was updated successfully, but these errors were encountered: