Robotics StackExchange | Archived questions

[rosservice] Following the tutorials ... another unexpected error.

I was following the tutorial: "Understanding ROS Services and Parameters"

I've reached the point where we were supposed to change a parameter (background color), and call the service "clear" on the turtlebot_sim to refresh the background.

So, I went ahead and although it worked as supposed, I got this error in the console (after calling the service):

$ rosparam set /background_b 184

$ rosservice call clear

Unhandled exception in thread started by <bound method TCPServer.run of <rospy.impl.tcpros_base.TCPServer object at 0x8e4da2c>>
Traceback (most recent call last):
  File "/opt/ros/fuerte/lib/python2.7/dist-packages/rospy/impl/tcpros_base.py", line 156, in run
(client_sock, client_addr) = self.server_sock.accept()
  File "/usr/lib/python2.7/socket.py", line 202, in accept
sock, addr = self._sock.accept()
  File "/usr/lib/python2.7/socket.py", line 170, in _dummy
raise error(EBADF, 'Bad file descriptor')
socket.error: [Errno 9] Bad file descriptor

Do you have any clues about this?

Asked by 1morelearner on 2012-07-13 15:03:07 UTC

Comments

Answers

I am experiencing the same problem with a small service (returning lists of lists of strings from a CSV file). When I call the service from the command line with rosservice call ..., I sometimes experience the same error message, but I could not reproduce it with a simple client node (written in Python, with rospy).

I'm using the ROS Fuerte on a 32-bit Ubuntu (12.04) virtual machine in VirtualBox.

Asked by Pascal Lamblin on 2012-10-23 13:39:16 UTC

Comments