ros-simulation / gazebo_ros_demos

Example robots and code for interfacing Gazebo with ROS
352 stars 226 forks source link

'NoneType' object has no attribute 'timeout' #8

Closed chrisspen closed 9 years ago

chrisspen commented 9 years ago

When I try to run:

rosservice call /rrbot/controller_manager/load_controller "name: 'joint1_position_controller'"

from the tutorial, I get the Python traceback:

ok: False
Exception in thread Thread-3 (most likely raised during interpreter shutdown):
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 810, in __bootstrap_inner
  File "/usr/lib/python2.7/threading.py", line 763, in run
  File "/opt/ros/indigo/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 154, in run
<type 'exceptions.AttributeError'>: 'NoneType' object has no attribute 'timeout'

I'm running Ubuntu 14.04 with Indigo and Gazebo 5.

ghost commented 9 years ago

Is it working with the launch file?

roslaunch rrbot_control rrbot_control.launch 
chrisspen commented 9 years ago

I think this was a problem with my installation of Gazebo 5, which appears to be incompatible with the Indigo repo. Installing Gazebo 5 from the Gazebo repo prevents installation of several Indigo packages related to controllers, which I think caused this error. When I purged the Gazebo 5 packages and reverted to the default Gazebo 2 package, this error went away.