Timeout error with laser scan and RGB raw image with the turtlebot

asked 2017-11-08 02:26:22 -0600

I am trying to run n OpenAI gym extension for using Gazebo known as gym-gazebo from gym-gazebo

I keep on getting the timeout errors related to laser scan and RGB raw image.I increased the timeout value from 5 to 50.But the error returns after some instances. Can i keep on increasing the timeout value? Is there any other way to solve this?

Log is as below

File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 96, in step return self._step(action) File "/usr/local/lib/python2.7/dist-packages/gym/wrappers/monitoring.py", line 33, in _step observation, reward, done, info = self.env.step(action) File "/usr/local/lib/python2.7/dist-packages/gym/core.py", line 96, in step return self._step(action) File "/home/zishanshaikh/projects/gym-gazebo/gym_gazebo/envs/gazebo_circuit2c_turtlebot_camera_nn.py", line 146, in _step data = rospy.wait_for_message('/scan', LaserScan, timeout=50) 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 /scan

Rospy version 1.12.7 Gazebo version 8.1.1 System Ubuntu 16.04

edit retag flag offensive close merge delete