Skip to main content

Questions tagged [services]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
25 views

ROS 2 Service Future - Why underscored vars _done and _result?

My ROS 2 Humble robot makes an async service request /dock to a "docking_node" and saves the "future" provided at the request. ...
Cyclical Obsessive's user avatar
1 vote
0 answers
33 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
0 votes
0 answers
10 views

Client doesn't revieve response in nested callbacks

I want to create node which provides a action server, this server expects the name of a waypoint and is then able to ask other nodes which calculate the pose of the waypoint for the appropriate ...
NotARobot's user avatar
0 votes
0 answers
27 views

How to use Zero Copy / Loan API when using ROS 2 services

I can see many examples of using the Loan API in a pub/sub manner but can't see how to use it in the context of ROS 2 services (and maybe actions but that could possibly be incompatible)
user19211's user avatar
0 votes
1 answer
95 views

Formatting rosservice response

I'm working on ROS MELODIC. I would like to return as a service response a string containing a list of areas with some data. The problem here is that I wanted to format the output so on the client ...
ÁngeLoGa's user avatar
  • 172
0 votes
2 answers
99 views

Importing and defining custom services in ROS 2 Foxy

I have been trying to use some custom services that I created to read some sensor data in an UR5e. This service is declared in a package called custom_msgs_srvs, inside a folder called srv, with the ...
user avatar
0 votes
1 answer
26 views

Can we call a hidden service?

Hello everyone, I saw that ROS2 use some hidden services. These services can be displayed with the command ros2 service --include-hidden-services list -t When I tried to call one of these services ...
user avatar
0 votes
1 answer
6 views

What are the criteria for selecting services or actions? Did they change in ROS2 due to asynchronous services?

In ROS1, this page says that services should be used for remote procedure calls that terminate quickly should never be used for longer running processes I'm not sure the specific amount of "...
user avatar
0 votes
1 answer
67 views

How to get length of array of geometry_msg:Points in service handle?

I'm trying to find the length of an array of geometry_msg:Point passed to a service handle, so I can iterate over each Point, apply a transform and then push onto a response. when I use sizeof(req....
user avatar
0 votes
1 answer
38 views

service not visible when launched inside class

I'm attempting to implement a service in which the callback is a member function of a class (with reference to the tutorial) My code, as below, builds and runs without error, outputting the expected &...
user avatar
0 votes
1 answer
34 views

[ROS2] calling method in Node class

Hi, I would like to create a node class that keeps calling a Service. ...
user avatar
0 votes
1 answer
44 views

[ROS2] services C++

Hi, I'm trying to use services to work with a ROS2 canopen node. In ROS1 I was able to use this code: ros::ServiceClient init = n.serviceClient< std_srvs::Trigger>("/driver/init"); ...
user avatar
0 votes
1 answer
24 views

ROS Service in C++ not being built

Hi All, I am using ROS Kinetic on ubuntu 16.04. I am trying to write a c++ service to send some multi array data on request from the client from server I wrote the following code for that in c++ ...
user avatar
0 votes
1 answer
1 view

Including entire services directory

I have a srv directory that has all the services I have created. In my main node I am including each individual .hpp manually. Is there a way to include all the .hpp files in one include statement, or ...
user avatar
0 votes
1 answer
88 views

Multiple Service Calls in ROS2

I have a sensor library that I am using ROS2 services to make function calls to that library. Is there a way to have multiple services in one node or do I need to make a new node for each individual ...
user avatar
0 votes
1 answer
2 views

Speed controller, service or subscriber/publisher?

If I am making a PI speed controller for a robot, should I use a service or a subscriber for my Python script? Originally posted by bhejase on ROS Answers with karma: 1 on 2019-07-29 Post score: 0
user avatar
0 votes
1 answer
13 views

Try to use SetBool and getting error

I'm trying to use a simple service to switch a server flag, with this code: ...
user avatar
0 votes
1 answer
4 views

creating a Rosjava Service Client and Server end in failure

Hi everybody, I tried to create a rosjava service following the instruction listed in: http://wiki.ros.org/rosjava_build_tools/Tutorials/indigo/UsingServices Sadly I end up with following error at the ...
user avatar
0 votes
1 answer
9 views

Distinguish Services from different nodes with same name

Hi, I wish to create 2 rosnodes with some services having same name. E.g. rosnode N1 has services S1,S2,S4 and rosnode N2 has services S2,S3,S5. The reason to have services of same name is because ...
user avatar
0 votes
1 answer
4 views

How to pass an image (subscribed from a image publishing topic) using service?

Hello People, I am trying to get image from a camera fitted on a robot and pass them using services. I will use a client to grab images from the server and later process it according to the need. It ...
user avatar
0 votes
1 answer
1 view

Will rosjava be supported on Lunar and future releases?

I found some articles on REST services using rosjava and would like to know the feasibility of this using the latest ROS releases and latest Ubuntu releases. Per http://wiki.ros.org/rosjava, Lunar ...
user avatar
0 votes
1 answer
9 views

Is wait_for_service required before every service call?

Hi, I don't fully understand the mechanics of rospy's wait_for_service function. Are we required to call wait for service every time we want to call the service, or only once when creating the ...
user avatar
0 votes
1 answer
1 view

camera calibration service not available (specific driver for VRMagic)

Hello all; I am using "camera calibration" node to calibrate a stereo system based on a VRMagic D3 stereo camera. The driver I am using to obtain the images from the camera is "...
user avatar
0 votes
1 answer
11 views

Why does a response vector of type geometry_msgs/PoseStamped[] poses in a service always has 24 elements? (c++)

Hi guys, I can't explain what is happening, maybe it is just my compiler, or my ROS version, but every time that I want to use the response vector poses (of type geometry_msgs/PoseStamped[]) it has 24 ...
user avatar
0 votes
1 answer
1 view

ROS operating system services, how?

I'm researching how ROS is implementing operating services like: including hardware abstraction, low-level device control, implementation of commonly-used functionality,message-passing between ...
user avatar
0 votes
1 answer
1 view

Problems building a node which depends on another node

Hopefully someone can help, I've been trying to get this to work for quite a while now. I have a custom node which provides services and messages called dp_ptu47 (it's a pan tilt unit). I'm trying to ...
user avatar
0 votes
1 answer
17 views

Using MoveGroup in different nodes (moveit!)

Hi!, Right now im working with a custom robot and moveit!, and what Im trying to do, is to generate some services nodes, and use them to move my robot using moveit!. The problem is that for ...
user avatar
0 votes
1 answer
1 view

having to compile msgs and srvs first

Hi all, I'm working with a large stack that includes some custom ROS messages and services. Every time I try to compile from scratch, catkin yells at me about not knowing where certain message header ...
user avatar
0 votes
1 answer
2 views

How to use ROS services

I am trying to get data from a gps and use it in a program that I am writing. I read somewhere that ROS services would be an ideal tool for me to use to accomplish my task. I read over the tutorial ...
user avatar
0 votes
1 answer
1 view

How to use "MsgSrvDoc" in wiki

Hello, I have a wiki page for my messages and services but it doesn't work the "MsgSrvDoc" label when I used in a wiki page. I based the structure of my package and the wiki page on ...
user avatar
0 votes
1 answer
8 views

One callback interrupting another, is that possible?

Hi, I built a node with a class in it, the class has two callbacks one is bind to dynamic reconfigure server, the other is bind to a service. Both callbacks are class member. So it is something like ...
user avatar
0 votes
1 answer
4 views

Rospy Services with method class

Hi, How can i use a class method for rospy.Service()? The .srv file is int64 a int64 b --- bool response The code in the server.py is ...
user avatar
0 votes
1 answer
4 views

Calling a multiplexer select from a node

Hi I'm wondering how I would go about calling the multiplexer select from inside a node instead of using the command line tool. Are there any examples on how to accomplish this as I cannot find any? ...
user avatar
0 votes
1 answer
2 views

Set a parameter through ROS services

Hi to everyone, Yesterday I was going through the parameters of my work environment in ROS. One of my colleagues told me that if I need to change a parameter I should do it within rosservice and not ...
user avatar
0 votes
1 answer
3 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
2 answers
3 views

Relation between Services and Nodes

Hello, I have a very simple question. What's the relation between services and nodes? Can we say services are functions/methods defined in a node. For example, according to this tutorial: http://wiki....
user avatar
0 votes
2 answers
11 views

design question: topic vs service?

topics seem like the best way for storing "states" of the robot (stateful). so that we can monitor all states/components of the robots like position, temperature, voltage, etc. that makes ...
user avatar
0 votes
1 answer
5 views

catkin can't find python service files

I've got a python node which runs a service server. Catkin builds it fine and builds the service files (works fine for another package in C++ which uses the same .srv file). Even though it builds ...
user avatar
0 votes
1 answer
22 views

Blocking service callbacks

Hello everyone. I have been doing experiments with ROS services and currently I have this: ...
user avatar
0 votes
1 answer
1 view

rosjava services AddTwoInts basic question

Hello, I'm looking at the client code (also the server) of AddTwoInts .. and I came across this code: ...
user avatar
0 votes
1 answer
1 view

using services from android_map_manager and other rapps

I am having some trouble. I have found a resource online for the 'android_map_manager', for example. http://wiki.ros.org/android_map_manager I have figured out how to start the app from my program. ...
user avatar
0 votes
1 answer
3 views

Services, params and actions clients for real time?

Are there any c++ library that contains real-time functionality such as: parameter checking, service calling or action calling? They must be time deterministic in the real time thread. From my ...
Pablo Iñigo Blasco's user avatar
0 votes
1 answer
2 views

services running in a node

Hello I was wondering if its possible to get a list of all services to which a node is connected, either as a client or as a server. Somethis similar to ros::this_node::getSubscribedTopics() http://...
user avatar
0 votes
1 answer
5 views

from testsrv.srv import * [ImportError: No module named testsrv.srv]

Hi. I'm trying to make a ROS service, but I'm getting "ImportError: No module named testsrv.srv". My code is: ...
user avatar
0 votes
2 answers
4 views

Collecting data from multiple topics

I'm designing a node in my system that needs to gather data from two topics (A and B), process it, and publish the results to another topic. I've considered a few implementation alternatives ...
user avatar
0 votes
1 answer
2 views

Using Actionlib for publishing force data in ROS

Hello All! So here is what I want to implement, in a simple list format I want to have a topic which publishes data from my force sensor (serial) onto the network constantly. I want to have a ...
user avatar
0 votes
2 answers
4 views

catkin messages and node in same package

Hi, While working on some ROS node we bumped into the following problem: We got a package containing a library, messages and services, the library is using these messages and services The header files ...
user avatar
0 votes
3 answers
8 views

How to specify dependencies with "foo_msgs" catkin packages

Say I have two catkin packages, foo and foo_msgs, in my workspace. Here's how I currently have them set up: project(foo_msgs) ...
user avatar
0 votes
1 answer
3 views

Standard for PointCloud messages is still PointCloud2?

Hi, After some work with standalone PCL, I'm running the first tests of PCL under ROS. I have a question: I understand that pcl::PointCloud is the preferred type for point clouds, and I was able to ...
user avatar
0 votes
1 answer
20 views

Gazebo - joints control in position

Hi Guys! I'm new of gazebo world. I've build a little arm with 3 links and 2 joints. With the user interface i can assign a forse to a joint or a position too (in degree for example). I cannot find a ...
user avatar