How to call a service from outside ROS
Hello guys,
I was reading the docs and I learnt that ros service client may not be a ros node. Here, (http://wiki.ros.org/ROS/Technical%20Overview#Establishing_a_service_connection), it said that ' in fact, a service client does not have to be a ROS node'.
I'm using python, and we all know ros service interaction is achieved via xmlrpc, so I'm thinking how code outdide ros can call a service implemented by a specific node. I built a simple example following the tutorial (http://wiki.ros.org/rospy_tutorials/Tutorials/WritingServiceClient) and both server & client worked well. However, when I tried in python 2.7.12 using python xmlrpclib ways to call the service (using service provider's url), I always got a '[Errno 111] Connection refused' error.
So does anyone know how to properly do such things? Any help will be appreciated.
Asked by mutantRobot on 2017-03-06 02:54:51 UTC
Comments
What do you mean by calling a service from outside ROS? Completely removed from ROS, not using
rospy
or any other ROS resources? Also, I found this answer to a similar question usingrosbridge
.Asked by jayess on 2017-03-26 00:30:13 UTC