Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rospy.wait_for_message breaks for depth image: Timeout error #1338

Open
pmwenzel opened this issue Mar 1, 2018 · 1 comment
Open

rospy.wait_for_message breaks for depth image: Timeout error #1338

pmwenzel opened this issue Mar 1, 2018 · 1 comment

Comments

@pmwenzel
Copy link

pmwenzel commented Mar 1, 2018

Hi,

I am always getting timeout errors related to the depth image which is published by gazebo. I tried to increase the timeout value, but it didn't helped.

Is there any advice on this issue?

        while image_data is None:
            try:
                image_data = rospy.wait_for_message('/camera/depth/image_raw', Image)
            except CvBridgeError as e:
                print(e)

The error is as follows:

File "/opt/ros/kinetic/lib/python2.7/dist-packages/rospy/client.py", line 417, in wait_for_message
raise rospy.exceptions.ROSException("timeout exceeded while waiting for message on topic %s"%topic)
rospy.exceptions.ROSException: timeout exceeded while waiting for message on topic /camera/depth/image_raw

Thanks!

@prateeksamaiya
Copy link

I myself having this problem, I dont know the actual problem but a workaround is to keep a value for timeout in rospy.waitformsg

lucbettaieb added a commit to lucbettaieb/ros_comm that referenced this issue Apr 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants