Skip to main content

Questions tagged [ros-service]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
2 votes
1 answer
23 views

ROS2 Service call inside Lifecycle configure state change

I am working on a simulation environment that uses ROS2 to execute different components and sensors. We currently launch each node with a manager that uses fork/exec. The issue I was having was ...
Tim Swierzewski's user avatar
0 votes
1 answer
30 views

ROS2 services: do they block server node execution?

I'm interested in writing a node which subscribes to some topics and does stuff, as part of this node a service will be offered that dictates how the node interacts with some other topics. Basically, ...
FourierFlux's user avatar
0 votes
0 answers
10 views

Ros1 topic_tools::ShapeShifter for Service callbacks?

I am working in ros melodic and I have a node that creates a ros::ServiceServer and binds it to a service callback. I want this service callback to be generic since I would always access the same ...
xaruvi13's user avatar
-1 votes
1 answer
38 views

Error while implementing a ROS Service

I am implementing a ROS Service to input two numbers but an error keeps occuring. File "/home/atharva/arduinobot_ws/devel/lib/testing_ros/service_client_example.py", line 15, in exec(...
VelvetThunder_06's user avatar
1 vote
1 answer
404 views

rclcpp wait for a list of service/action servers to start before proceeding further

I have a list of services and a list of actions that I need to wait for to start before I can proceed further. Is there some sort of inbuilt function in rclcpp or <...
ssarkar's user avatar
  • 638
0 votes
1 answer
7 views

ROS Services in Python

Hi I create not ROS python code for the server and the client. But need some help in implementing the ROS part for both of them. The Server only need to print a message as a list starting with 3 ...
user avatar
0 votes
1 answer
4 views

Can not get the data from ROS Services, only entering the server but data is not out, why?

Hi I need to read data ( lets say pressure) from serial Port Microcontroller by Client Request. I check the tutorial for ROS Services in Python but still my code is not giving the data value to to ...
user avatar
0 votes
1 answer
17 views

ROS service server and client node to publish on serial port

Hi I need to create ROS SERVICE server and client node that check lets say IMU sensor data and publish the IMU value on serial port. So I though the only way is to create two separates nodes for ...
user avatar
0 votes
1 answer
5 views

ROS Services working with ROSJava on Android

I have written an Android app. to control a squad of robots using ROSJava. I can create nodes, publish and subscribe to ROS topics, but I am having difficulty in connecting to ROS Services. I have ...
user avatar
0 votes
1 answer
122 views

How can I check if a service exists from Python?

This question has an answer for roscpp; what is the equivalent solution for Python? EDIT: I do not want to wait for the service. I want to take one action if the service exists and a different action ...
user avatar
0 votes
1 answer
36 views

Is there any actual difference between a topic and a service?

http://wiki.ros.org/ROS/Technical%20Overview#Message_serialization_and_msg_MD5_sums The above link quotes that: Establishing a topic connection: Putting it all together, the sequence by which two ...
user avatar
0 votes
1 answer
16 views

Reasoning for using Pub/Sub vs Service

I'm struggling to determine when I should use the various communication methods ROS offers, like the publish/subscriber model, service, or action. I figure, sensors should be publishers, short running ...
user avatar
0 votes
1 answer
4 views

How can I interpret the documentation of this serviceClient method?

Hello, I am trying to build a service client. I went to the reference of the node handle class [here] (http://docs.ros.org/jade/api/roscpp/html/classros_1_1NodeHandle.html#...
user avatar
0 votes
1 answer
2 views

ROS-i ABB Unable to access some members of industrial_msgs/CmdJointTrajectory

Dear all, I am basically trying to subscribe to the rostopic which broadcast the sensor_msgs/JointState and then call the ...
user avatar
0 votes
1 answer
8 views

action server vs publisher + service

When would you use a Publisher + Service Node vs an Action Node? As far as I can tell they seem equivalent, besides the fact that anything can subscribe to the publisher, while only the client gets ...
user avatar
0 votes
1 answer
2 views

can a node act as server and client?

Can a node act as a server by advertising a service and at the same time act as a client by calling some other service? Originally posted by xhsio on ROS Answers with karma: 15 on 2016-10-12 Post ...
user avatar
0 votes
1 answer
27 views

ros service dead lock?

This is the situation: Node A has a service client which calls a service server defined in node B for all the time. In the meanwhile, node B also has a service client which calls a service server ...
user avatar
0 votes
1 answer
10 views

Check if service advertised successfully

Hi, is there a way to check (ex. get a bool returned) if a service has been successfully advertised? My node advertises multiple services, and it would be usefull to be able to check, if every ...
user avatar
0 votes
1 answer
46 views

Advertising multiple services from a single node

Hi, I'm writing a node, that advertises multiple services. Should I use a diffrent object name for each service, or the same name (see below)? As I understand it, this results in either multiple ...
user avatar
0 votes
1 answer
18 views

Exception thrown while processing service call: Time is out of dual 32-bit range

I am doing a very simple implementation of ROS service. There are two nodes, server and client node and the only main variable is that I am using rosbags for streaming data used by callback method on ...
user avatar
0 votes
1 answer
4 views

Is it bad practice to create and shutdown services during runtime?

Hi all! I'm trying to connect my robot to a webserver using a node communication node. This node creates the service "/get_webdata" when the connection is established and authenticated. When ...
user avatar
0 votes
1 answer
10 views

What happens to service client when service server crashes?

If I create a service server node and then, for whatever reason, the node crashes, what happens to all of the clients which were connected to the server? If the server node respawns at some point, can ...
user avatar
0 votes
1 answer
29 views

Best way to pass parameters to a service

Hi, It may seem a trivial question, but I couldn't find a good answer in the internet. I would like to write a service (NOT a node) that receives some parameters in input, but I couldn't find a way to ...
user avatar
0 votes
1 answer
5 views

Moveit Forward Kinematics for Empty Joint State

I'm using the /compute_fk service from moveit to calculate forward kinematics. This works as I expected except for the case of an empty joint state given as the current joint state to the service. In ...
user avatar
0 votes
1 answer
59 views

Cannot import custom service

Hi everyone! I made a custom service following this tutorial: http://wiki.ros.org/ROS/Tutorials/CreatingMsgAndSrv#Common_step_for_msg_and_srv I edited the CMakeLists.txt and package.xml files as ...
user avatar
0 votes
1 answer
4 views

How to call a service .srv from Terminal

A short question: I have a service defined like this: (navigate.srv) string[] path --- bool command_processed I would like to call it by a terminal with a command like: rosservice call /navigate ......
Jose Luis Rivero's user avatar
0 votes
1 answer
4 views

Many to many service communication

Hi all, as far as I understood a service can be used by different clients as long as in the source code the ServiceServer and the ServiceClient are declared with the same service name (see code below, ...
user avatar