Skip to main content

Questions tagged [rosservice]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
1 vote
0 answers
37 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 ...
AlexandreBorowczyk's user avatar
1 vote
1 answer
48 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 ...
nohacks's user avatar
  • 15
0 votes
0 answers
12 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: ...
Kien Tran's user avatar
0 votes
1 answer
44 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 ...
Yongxue Law's user avatar
0 votes
0 answers
47 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 ...
T3 K14's user avatar
  • 1
0 votes
1 answer
52 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 ...
NINAD PREMDAS RATHOD's user avatar
0 votes
0 answers
28 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....
Ezeuz's user avatar
  • 1
0 votes
1 answer
403 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.
JesterHead77's user avatar
0 votes
0 answers
38 views

TurtleControlNode.call_set_pen_service() missing 4 required positional arguments

I have been trying to learn ROS2 humble and was studying about service. I have create a Node with pub and sub with a service. pub - for controlling turtle in turtlesim, sub - for current position of ...
Keshav Bhardwaj's user avatar
0 votes
2 answers
342 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: ...
Cristian_wp's user avatar
0 votes
0 answers
34 views

Rospy subscriber calling only one thread

I am using python for programming the scripts in my ROS package, for a project. As part of the project, I need to implement a service client, which also subscribes to a topic. Specifically, the node ...
noobcoder's user avatar
0 votes
0 answers
219 views

robot_state_publisher service not available, but listed in service list

I'm trying to update a ROS2 package working on Foxy with Turtlebot3 to Humble with Turtlebot4. So I'm sure my code is working there. While starting a gazebo simulation with a script (that works on ...
robot_lab's user avatar
0 votes
1 answer
137 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 ...
sheep_skins's user avatar
0 votes
1 answer
295 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 (...
Eric's user avatar
  • 1
0 votes
1 answer
17 views

Datatype issue while calling setBool service from JS client

I 'm using this service server in Python: ...
user avatar
0 votes
1 answer
39 views

client must wait until service callback finish?

As title, I have the following two python codes, ...
user avatar
0 votes
1 answer
160 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: ...
user avatar
0 votes
1 answer
38 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. ...
user avatar
0 votes
1 answer
26 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 ...
user avatar
0 votes
1 answer
27 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: ...
user avatar
0 votes
1 answer
48 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. ...
user avatar
0 votes
1 answer
3 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. ...
user avatar
0 votes
1 answer
51 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 ...
user avatar
0 votes
1 answer
8 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 ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
0 votes
1 answer
71 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 ...
user avatar
0 votes
1 answer
2 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 ...
user avatar
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: ...
user avatar
0 votes
2 answers
16 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) ...
user avatar
1 vote
1 answer
186 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 ...
user avatar
0 votes
1 answer
2 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 ...
user avatar
0 votes
1 answer
5 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: ...
user avatar
0 votes
1 answer
40 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 ...
user avatar
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 ...
user avatar
0 votes
1 answer
108 views

ERROR: Service [/spawn] is not available

I have the following launch file: ...
user avatar
0 votes
1 answer
8 views

Error on calling a rosservice

Im trying to enable hector_quadrotor motors' on throught code: ...
user avatar
0 votes
1 answer
24 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 ...
ravi's user avatar
  • 1,391
0 votes
1 answer
19 views

IK - Invalid pose every single time for Baxter

...
user avatar
0 votes
1 answer
14 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 ...
user avatar
0 votes
1 answer
54 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 ...
user avatar
0 votes
1 answer
13 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 ...
user avatar
0 votes
1 answer
3 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 ...
user avatar
0 votes
1 answer
3 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 ...
user avatar
0 votes
1 answer
4 views

How to call a custom service?

My service (AddTask.srv) is defined as: ...
user avatar
0 votes
1 answer
13 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 ...
user avatar
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 ...
user avatar
0 votes
1 answer
10 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: ...
user avatar
0 votes
2 answers
42 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 ...
user avatar
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: ...
user avatar
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 ...
user avatar