Questions tagged [rosservice]
The rosservice tag has no usage guidance.
110 questions
1
vote
0
answers
45
views
Debugging ROS2 rclpy Service Call
I have a project using ROS2 Humble running on Ubuntu 22.04. I’m looking for advice on debugging a issue with a synchronous service call.
middleware: rmw_fastrtps_cpp
Context
I’ve completed a large ...
1
vote
1
answer
182
views
Clear difference between /reset_world and /reset_simulation
What is the clear difference between /reset_simulation and /reset_world. I initially was using /reset_simulation to reset the state of my environment periodically (in the context of RL).
This worked ...
0
votes
0
answers
16
views
roscpp: How to get ROS service type from string?
Is it possible to get service type from name of the service or from a service type string? I would want something like this:
...
0
votes
1
answer
73
views
where is the beginner_tutorials.srv file in the add_two_ints tutorial?
I am learning ros noetic on the page (https://wiki.ros.org/rospy_tutorials/Tutorials/WritingServiceClient)In the scripts/add_two_ints_server.py file within the beginner_tutorials package, there is a ...
0
votes
0
answers
56
views
Messed up service request in ROS2 service node with direct DDS request
I have the problem that I need to communicate with a ROS2 application via DDS from another application that is not a ROS2 application itself, but only uses DDS (Opensplice).
I have managed to send DDS ...
0
votes
1
answer
75
views
How to query Quality of Service (QoS) Parameters of a ROS 2 Service from Command line
I know how to list ROS 2 services using the following command:
ros2 service list
I also know that we can display the QoS properties of a ROS 2 topic using the ...
0
votes
0
answers
40
views
Open Manipulator python API documentation, or Examples
As stated by the title, is there a way I can access to the python API documentation of the Open Manipulator package? Right now all I can find are service definition such as:
https://emanual.robotis....
0
votes
1
answer
659
views
How to create timeout to ROS2 async client service?
Following this example how do i create an async timeout to service? I want client to wait for 5s asynchronously to get response, if it is not received log something and clear request.
0
votes
2
answers
500
views
nav2 interactive_waypoint_follower example can not get robot_localization state
I am trying to run the Interactive GPS Waypoint Follower.
I have launch these instruction:
TERMINAL 1:
...
0
votes
1
answer
163
views
Custom ROS Service Cannot be Imported
I have created a simple custom ROS service for ROS Noetic. My import line is:
from fishbot_ros.srv import chess_service, chess_serviceResponse
The file structure ...
0
votes
1
answer
412
views
ROS2 node unable to receive new service calls after first call
I'm currently working on a node that has a service that calls other services within that service. Something like this:
Node A:
Service A
Calls service B of Node B
waits for service B to complete (...
0
votes
1
answer
20
views
Datatype issue while calling setBool service from JS client
I 'm using this service server in Python:
...
0
votes
1
answer
51
views
client must wait until service callback finish?
As title, I have the following two python codes,
...
0
votes
1
answer
197
views
Calling a rosservice with args from a launch file
Hello there ! Hope u are doing well,
I'm trying to call a rosservice directly from a launch file, i used this questions to write my own node and it turned out like that:
...
0
votes
1
answer
56
views
Configuring moveit_servo for use with tmr_ros1 (techman robot)
Hi everyone. I have a problem and I hope you can help me.
I'm using ROS Noetic and the tmr_ros1 pkg.
Right now I am trying to use the realtime servoing functionnality for Moveit, see this.
...
0
votes
1
answer
38
views
How to call the "switch controller" service correctly
I'm using the abb_robot_driver package to control YuMi IRB 14000, and I want to switch the controller from inside the python script, and not the terminal, to do so I have tried the following solution ...
0
votes
1
answer
45
views
How to print out multiple responses from service
Hello, I'm currently trying to create a service which can send multiple responses. I edited the tutorial service ( http://wiki.ros.org/ROS/Tutorials/WritingServiceClient%28python%29 ) to:
...
0
votes
1
answer
67
views
create a service with multiple responses
Hi I would like to write a service in python as described in the .srv file.
I read the tutorial but I don't understand how to get multiple response in one service.
...
0
votes
1
answer
4
views
how to build dependant packages across multiple machines
I have a package running a service (package A) and another running a client for that service (package B) both implemented in c++. Package B has build/exec dependency on package A for that service. ...
0
votes
1
answer
68
views
How to use ros::service::call()
I want to call a service in code. The command line form is "rosservice call /move_base_node/clear_costmaps".
It has type std_srvs/Empty
There is function ros::service::call(const std::string ...
0
votes
1
answer
11
views
What is the best way to determine the time it takes a service to return?
Hi,
I am using ROS Melodic on Ubuntu 18.04
Is there some ROS function that returns the execution duration of a ROS service?
Or is the easiest way to get the execution duration to ...
0
votes
1
answer
51
views
Can't find service header files
I can build my project and running rosservice show benchmark_suite/status will reveal it has indeed been declared. But I cannot for the life of me find the header ...
0
votes
1
answer
94
views
How to pass number as a string to a rosservice?
I have a rosservice that takes a string as an argument. That string may be an integer (or rather, the string representation of an integer). However, when I try to call the service with the number, it ...
0
votes
1
answer
4
views
How to pass message into rosservice using args
Please refer to the package
ethzasl_icp_mapper's node matcher_service
Matcher Service node offers a Service match_clouds, which is by description:
<...> takes two
sensor_msgs/PointCloud2 ...
0
votes
1
answer
4
views
Service server and client in python following tutorial does not work
I'm trying to make a service that I could call to change a pose of a robotic arm using MoveIt!. I follow this tutorial, but I get an error:
...
0
votes
2
answers
27
views
Calling predefined service from python script
Hi all,
I am wondering how to pass an arguments when trying to call rosservice from python script.
I have this server called bcap_service which takes 2 arguments. (This is bcap.srv)
...
1
vote
1
answer
250
views
rosservice geometry_msgs/Posearray example
So, I'm getting an array of poses from the robot(from a python script say script1.py). And I want this array of poses to be used in another python script(script2.py). I would like to use rosservice to ...
0
votes
1
answer
4
views
catkin_make issue updating .srv and .cpp file simultaneously
Think of a situation where rosnode (written in c++) is using messages generated by a .srv file. You want to add a field to the .srv file and use it in the rosnode. If you make these changes ...
0
votes
1
answer
6
views
ROS Service global name not defined
I am trying to make my node a ROS service which gets triggered when it receives boolean value of true, thus I have added the following to its constructor:
...
0
votes
1
answer
51
views
How to delete the default turtle that is created using turtlesim in ros?
How do I proceed to do that? I would like to use
rosservice call /kill " 'name_of_the_turtle' "
Where do I find the name of the turtle?
Originally ...
0
votes
1
answer
1
view
Can rosservice commands be used on topics
I saw the following line in this wiki tutorial on ROS services and parameters:
rosservice has many commands that can be used on topics, as shown below:
I think this is a typo as rosservice commands ...
0
votes
1
answer
169
views
ERROR: Service [/spawn] is not available
I have the following launch file:
...
0
votes
1
answer
9
views
Error on calling a rosservice
Im trying to enable hector_quadrotor motors' on throught code:
...
0
votes
1
answer
34
views
Proper way of calling service in rospy
I have designed a service and I am using it without any problem. However, I am having doubt about the client implementation in rospy. I am calling this service many times and hence, I am concerned ...
0
votes
1
answer
21
views
0
votes
1
answer
15
views
How to get IK response for user provided pose in MoveIt(Baxter)
Below is the code snippet of ik_service_client.py provided for Baxter SDK
...
0
votes
1
answer
68
views
What arguments for rospy.ServiceProxy?
Hello,
I would want to call a service using python. Currently this command line is working :
rosservice call /camera/start_capture
but I can't figure out how to do ...
0
votes
1
answer
21
views
Changing parameters with Python
Hi
I am trying to change 1 parameter on the launch of my scripts to avoid doing this every time before launching it. The parameter I am trying to change is the "SYSID_MYGCS" which has to be ...
0
votes
1
answer
4
views
How to ask to ros the service parameter data type
I am learning ROS from the Wiki site and doing some commandos on the terminal to improve my understanding about it:
I would like to know what are the parameters of a Rosservice, I am doing something ...
0
votes
1
answer
4
views
How to generate service .class files in rosjava?
I am new to ros and rosjava. I am going through basic tutrials of ros and rosjava. I have followed below steps.
Created a rosjava pakage.
mkdir -p myjava/src
cd myjava/src
catkin_create_rosjava_pkg ...
0
votes
1
answer
4
views
How to call a custom service?
My service (AddTask.srv) is defined as:
...
0
votes
1
answer
16
views
Return array in service in c++
Hi people!
I'm starting with ROS and I have a problem implementing a client and server. I used the files created in the tutorials of ROS but I would like to return an array of strings and I don't know ...
0
votes
1
answer
11
views
How do you change a rosservice parameter in python?
I'm using the robot_localization package, specifically the ekf_localization and ...
0
votes
1
answer
14
views
What is the proper approach to create a dynamic *number* of subscribers/services?
I have n number of robots, and I want to gather each of their positions. Each robot is under a different namespace so I have the topics:
...
0
votes
2
answers
62
views
How do you use the navsat_transform set_datum service?
I'm trying to use navsat_transform and I'm having difficulty with the global frame origin not matching the latitude and longitude I'm setting it to in the launch ...
0
votes
1
answer
2
views
When I try to do a client of a service of ROS, Matlab and ROS give me an error!
Hello! I'm trying to interface Matlab and ROS. I've a service in ROS and I want to do a client of this service in Matlab but when I do:
...
0
votes
1
answer
3
views
How to call a service with a char argument
How do you pass a char to rosservice call?
I have a srv file like:
uint8 id
string data
---
exposed as ...
0
votes
1
answer
114
views
Apply a body wrench in a local frame in a link
Hi everybody,
I am trying to apply a body wrench to a simple gazebo model written in SDF. I am running Ubuntu 14.4, with Gazebo 6 and ROS indigo.
I am applying this wrench by calling the rosservice /...
0
votes
2
answers
7
views
How to make call to multiple services in parallel?
I have 4 services which have are completely independent of each other.
I want to call them in parallel from another ros node.
But the all service call end consuming the time that they would use in ...
0
votes
1
answer
9
views
Timeout error in service defined in matlab
Hi all!
I am using ROS support from MATLAB, and came across an issue which seems strange to me, and would really appreciate your input on this.
In short, I am creating a service (and its callback) ...