ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
2

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

asked 2012-07-13 15:03:07 -0500

1morelearner gravatar image

updated 2012-07-15 07:38:07 -0500

mjcarroll gravatar image

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?

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by tfoote
close date 2013-12-29 14:11:59

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-23 13:39:16 -0500

Pascal Lamblin gravatar image

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.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2012-07-13 15:03:07 -0500

Seen: 744 times

Last updated: Oct 23 '12