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
I try to create one node for divide one picture to two ROI's and publish for two different TUW checkerboard node.
Everything fine but when i subscribe image and camera info same time with TUW checkerboard node,
I get an error like below.Even there is a same number of message ,they are not sync.
I will be appreciate any suggestion.
My Code:
#!/usr/bin/env python
"""OpenCV feature detectors with ros CompressedImage Topics in python.
This example subscribes to a ros topic containing sensor_msgs
CompressedImage. It converts the CompressedImage into a numpy.ndarray,
then detects and marks features in that image. It finally displays
and publishes the new image - again as CompressedImage topic.
""" author = 'Simon Haller <simon.haller at uibk.ac.at>' version= '0.1' license = 'BSD'
Python libs
import sys, time
import message_filters
numpy and scipy
import numpy as np
from scipy.ndimage import filters
OpenCV
import cv2
Ros libraries
import roslib
import rospy
Ros Messages
from sensor_msgs.msg import Image,CameraInfo
We do not use cv_bridge it does not support CompressedImage in python
Error:
[ WARN] [1615357424.053186321]: [image_transport] Topics '/output/image_raw/ROI_1' and '/output/image_raw/camera_info' do not appear to be synchronized. In the last 10s:
Image messages received: 50
CameraInfo messages received: 50
Synchronized pairs: 0
[ WARN] [1615357434.053175138]: [image_transport] Topics '/output/image_raw/ROI_1' and '/output/image_raw/camera_info' do not appear to be synchronized. In the last 10s:
Image messages received: 50
CameraInfo messages received: 50
Synchronized pairs: 0
The text was updated successfully, but these errors were encountered:
I try to create one node for divide one picture to two ROI's and publish for two different TUW checkerboard node.
Everything fine but when i subscribe image and camera info same time with TUW checkerboard node,
I get an error like below.Even there is a same number of message ,they are not sync.
I will be appreciate any suggestion.
My Code:
#!/usr/bin/env python
"""OpenCV feature detectors with ros CompressedImage Topics in python.
This example subscribes to a ros topic containing sensor_msgs
CompressedImage. It converts the CompressedImage into a numpy.ndarray,
then detects and marks features in that image. It finally displays
and publishes the new image - again as CompressedImage topic.
"""
author = 'Simon Haller <simon.haller at uibk.ac.at>'
version= '0.1'
license = 'BSD'
Python libs
import sys, time
import message_filters
numpy and scipy
import numpy as np
from scipy.ndimage import filters
OpenCV
import cv2
Ros libraries
import roslib
import rospy
Ros Messages
from sensor_msgs.msg import Image,CameraInfo
We do not use cv_bridge it does not support CompressedImage in python
from cv_bridge import CvBridge, CvBridgeError
VERBOSE=False
bridge = CvBridge()
def cropped(image):
print(type(x),type(h),type(w),type(y))
class image_feature:
def main(args):
'''Initializes and cleanup ros node'''
ic = image_feature()
rospy.init_node('ROI_NODE', anonymous=True)
rate = rospy.Rate(20)
if name == 'main':
main(sys.argv)
Error:
[ WARN] [1615357424.053186321]: [image_transport] Topics '/output/image_raw/ROI_1' and '/output/image_raw/camera_info' do not appear to be synchronized. In the last 10s:
Image messages received: 50
CameraInfo messages received: 50
Synchronized pairs: 0
[ WARN] [1615357434.053175138]: [image_transport] Topics '/output/image_raw/ROI_1' and '/output/image_raw/camera_info' do not appear to be synchronized. In the last 10s:
Image messages received: 50
CameraInfo messages received: 50
Synchronized pairs: 0
The text was updated successfully, but these errors were encountered: