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

socket error when starting turtlebot 2

asked 2013-03-24 18:24:25 -0500

There is some error messages like this when starting. $roslaunch turtlebot_bringup minimal.launch

Unhandled exception in thread started by <bound method XmlRpcNode.run of <rosgraph.xmlrpc.XmlRpcNode object at 0xb2748ac>>
Traceback (most recent call last):
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 221, in run
    self._run()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 291, in _run
    self._run_init()
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 240, in _run_init
    self.server = ThreadingXMLRPCServer((bind_address, port), log_requests)
  File "/opt/ros/groovy/lib/python2.7/dist-packages/rosgraph/xmlrpc.py", line 121, in __init__
    SimpleXMLRPCServer.__init__(self, addr, SilenceableXMLRPCRequestHandler, log_requests)
  File "/usr/lib/python2.7/SimpleXMLRPCServer.py", line 593, in __init__
    SocketServer.TCPServer.__init__(self, addr, requestHandler, bind_and_activate)
  File "/usr/lib/python2.7/SocketServer.py", line 408, in __init__
    self.server_bind()
  File "/usr/lib/python2.7/SocketServer.py", line 419, in server_bind
    self.socket.bind(self.server_address)
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use
nodelet: /usr/include/eigen3/Eigen/src/Core/DenseStorage.h:69: Eigen::internal::plain_array<T, Size, MatrixOrArrayOptions, 16>::plain_array() [with T = float, int Size = 4, int MatrixOrArrayOptions = 0]: Assertion `(reinterpret_cast<size_t>(array) & 0xf) == 0 && "this assertion is explained here: " "eigen.tuxfamily.org/dox-devel/TopicUnalignedArrayAssert.html" " **** READ THIS WEB PAGE !!! ****"' failed.
[FATAL] [1364184119.740399921]: Service call failed!
[FATAL] [1364184119.740399911]: Service call failed!
[mobile_base_nodelet_manager-4] process has died [pid 10142, exit code -6, cmd /opt/ros/groovy/lib/nodelet/nodelet manager __name:=mobile_base_nodelet_manager __log:=/home/turtlebot/.ros/log/b9f2cc7e-94f3-11e2-8ee7-446d57b4d698/mobile_base_nodelet_manager-4.log].
log file: /home/turtlebot/.ros/log/b9f2cc7e-94f3-11e2-8ee7-446d57b4d698/mobile_base_nodelet_manager-4*.log
[bumper2pointcloud-8] process has died [pid 10412, exit code 255, cmd /opt/ros/groovy/lib/nodelet/nodelet load kobuki_bumper2pc/Bumper2PcNodelet mobile_base_nodelet_manager bumper2pointcloud/pointcloud:=mobile_base/sensors/bumper_pointcloud bumper2pointcloud/cliff_events:=mobile_base/events/cliff bumper2pointcloud/bumper_events:=mobile_base/events/bumper __name:=bumper2pointcloud __log:=/home/turtlebot/.ros/log/b9f2cc7e-94f3-11e2-8ee7-446d57b4d698/bumper2pointcloud-8.log].
log file: /home/turtlebot/.ros/log/b9f2cc7e-94f3-11e2-8ee7-446d57b4d698/bumper2pointcloud-8*.log
[mobile_base-5] process has died [pid 10158, exit code 255, cmd /opt/ros/groovy/lib/nodelet/nodelet load kobuki_node/KobukiNodelet mobile_base_nodelet_manager mobile_base/odom:=odom mobile_base/enable:=enable mobile_base/disable:=disable mobile_base/joint_states:=joint_states __name:=mobile_base __log:=/home/turtlebot/.ros/log/b9f2cc7e-94f3-11e2-8ee7-446d57b4d698/mobile_base-5.log].
log file: /home/turtlebot/.ros/log/b9f2cc7e-94f3-11e2-8ee7-446d57b4d698/mobile_base-5*.log
edit retag flag offensive close merge delete

Comments

Looks like two different problems. Let's start with socket error. This can happen if driver is already running. What happen if you roslaunch minimal.launch just after startup? Can you also verify that ros is nor running before? (execute sudo killall ros)

jorge gravatar image jorge  ( 2013-03-26 21:50:12 -0500 )edit

@jorge : thanks.why dont we have command like "sudo service turtlebot stop" in groovy instead of kill all?

hiranya gravatar image hiranya  ( 2013-03-27 05:56:45 -0500 )edit

normally you don't need it. Ctrl+C should do the job, unless you launched ros automatically at startup

jorge gravatar image jorge  ( 2013-03-27 21:26:52 -0500 )edit

All the errors disappeared? I would have said that there're something more wrong...

jorge gravatar image jorge  ( 2013-03-29 01:15:34 -0500 )edit

I have the same problem than your second one (Sevice call failed for the nodelet) when I launch minimal.launch. But it doesn't appear each time. Sometimes it starts well but most of the time I got the error... Did you solve it ? Thanks

CarolineQ gravatar image CarolineQ  ( 2013-04-02 00:01:51 -0500 )edit

Maybe is related with the laptop you use; what's the model?

jorge gravatar image jorge  ( 2013-04-02 15:24:54 -0500 )edit

@jorge, the laptop I am using is an Asus Eee PC, why do you think it can be related to this ?

CarolineQ gravatar image CarolineQ  ( 2013-04-02 21:52:38 -0500 )edit

@jorge I manage to run applications except android panorama app(desktop one is working).Do you have any idea? @CarolineQ please upgrade the broken Linux packages of your laptop(turtlebot) then build turtlebot applications by source. then you can run the applications.

hiranya gravatar image hiranya  ( 2013-04-03 00:38:23 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-04-02 23:56:25 -0500

updated 2013-04-02 23:59:18 -0500

Answer second problem: If you installed by USB(pre-oders turtlebot usb have this broken packages) you can upgrade the broken packages. you can check that from synaptic manager and select all the broken packages and upgrade it. Then you can download turtlebot-apps(kobuki_desktop turtlebot turtlebot_apps turtlebot_viz) source then build. make sure you have created udev rule

kobuki's udev rules

. /opt/ros/groovy/setup.bash
rosrun kobuki_ftdi create_udev_rules

you can run the applications except android panorama.

edit flag offensive delete link more

Comments

I don't have any broken package in the synaptic manager...

CarolineQ gravatar image CarolineQ  ( 2013-04-03 02:52:13 -0500 )edit

Did you try to build from source and run apps?

hiranya gravatar image hiranya  ( 2013-04-03 05:16:39 -0500 )edit

I'm having the same issue. Was there ever a solution? The Kobuki just stopped communicating all of the sudden.

mkeenan gravatar image mkeenan  ( 2014-03-30 17:44:38 -0500 )edit

Question Tools

1 follower

Stats

Asked: 2013-03-24 18:24:25 -0500

Seen: 1,340 times

Last updated: Apr 02 '13