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

Connection refused (single machine system)

asked 2012-05-22 10:23:29 -0500

iomartin gravatar image

updated 2012-05-22 10:38:19 -0500

Hello,

I have electric running on a single machine and my ROS_MASTER_URI and ROS_IP are set to my computer's IP. I can launch all nodes (although some die later on), but some (not all) service calls failed. I then ran roswtf, and I got the following error:

ERROR: connection refused to [http://192.168.0.40:38282/]

(This is my computer's IP)

It was then followed by several other errors, proabaly due to the connection refused (disconnected nodes, can't connect to some services).

I guess I am missing something really simple, because I performed the same installation on another machine a couple weeks ago (on the same network) and I didn't have this type of problem.

edit retag flag offensive close merge delete

Comments

1

Are you running any sort of firewall on this machine?

Eric Perko gravatar image Eric Perko  ( 2012-05-22 11:28:20 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2012-05-23 01:29:20 -0500

Lorenz gravatar image

Are you sure that the nodes providing the services that fail are still running (i.e. they didn't segfault). If these nodes are written in C++, are they spinning (i.e. is ros::spin() called or is ros::spinOnce() executed periodically)?

These connection errors normally occur when a node didn't unregister cleanly from the master. That happens when they are killed with SIGKILL or when the nodes segfault. To find out which node is providing a service, you can use rosservice info, e.g. rosservice info foo. Then do a rosnode info <node name> to find out if the node is still alive.

edit flag offensive delete link more

Question Tools

Stats

Asked: 2012-05-22 10:23:29 -0500

Seen: 4,627 times

Last updated: May 23 '12