Skip to main content

Questions tagged [callbackqueue]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
26 views

Executor multithread doesnt work

Im having problems to execute tasks from 2 nodes using the multithreadExecutors and the call_back groups. I'm running 1 node with 2 classes: ...
Juan Miguel Sequeira Da Silva's user avatar
0 votes
1 answer
30 views

Seeking clarity regarding callback queues and ros::spin()

Let's say that we have initialized 2 different nodes inside 2 different main functions. Also assume that each of these two nodes ...
skpro19's user avatar
  • 314
0 votes
1 answer
54 views

Messages drop on slow subscriber although queue not full / empty

Problem Setup: ROS noetic, Ubuntu20. I have a slow pose estimation node which subscribes to incoming images with a low frequency of only 2Hz. The images are ...
user avatar
0 votes
1 answer
97 views

How to check callback queue?

Hello, I have a node that subscribes to 3 topics that are being published by individual nodes. In the subscriber node, I have 3 callbacks, one for each. I would like to know if it is possible to know ...
user avatar
0 votes
1 answer
4 views

SubscribeOptions for image_transport subscriber

I would like my image_transport subscriber to use a different callback queue than the global queue so that when ros::spingOnce() is called my image_transport callback is not triggered. Normally I ...
user avatar
0 votes
1 answer
5 views

ROS not calling callbacks fast enough

EDIT: Here's a basic talker/listener example that reproduces the problem, if anyone else wants to try it. The talker is sending msgs of type gazebo_msgs::LinkStates,...
user avatar
0 votes
1 answer
9 views

Rospy subscriber needs sleep (some time) until the first message is received

Hi guys, I noticed following somehow strange behaviour. A topic subscriber is not ready to receive messages directly after its creation and needs some time until the first message can be received. The ...
user avatar
0 votes
1 answer
6 views

does callbacks get drop from queue when it is exceeded it expected execution time by too much

Current I have a application with a timer which triggers at a fixed interval to grab a frame from a camera stream. This works fine when only two camera streaming at 720p are running. When all 3 of my ...
user avatar
0 votes
1 answer
6 views

One Global callbackqueue for each node?

From what I know: If we do not specify, by default the subscribe is going to global callbackqueue on that node. I assume that each node has 1 global callbackqueue However I read question&ans ...
user avatar
0 votes
1 answer
4 views

Which data is thrown away in queue if publish and spinonce rate is different?

I read that SpinOnce does not only make callback, but it will also clean the queue if possible. is that right? Let's say publisher publish alphabets (a,b,c,...) at 9hz, and subscriber call Spinonce at ...
user avatar
0 votes
1 answer
6 views

multiple callback queues

Hello, I'm using a ROS node to read from several topics calling ros::spinOnce in a loop. Every time I call spinOnce it checks every topic to which the node is subscribed, what I want instead is to ...
user avatar
0 votes
1 answer
2 views

How to invoke callback functions sequentially

This is how my main looks like: ...
user avatar
0 votes
1 answer
22 views

Using CallbackQueue

Hi, I have a code where I have already subscribed to the following topics ...
user avatar
0 votes
1 answer
9 views

ROS MultiThreading example

Hello, I'm currently working on a node that provides a service to other nodes but I noticed that being a server blocks the execution of the node until a Request. As my node needs to handle some ...
user avatar
0 votes
1 answer
102 views

Using Controller Manager and getting it to work

Hi all I'm trying to get a controller to run in a ros_control controller manager and followed the general principles listed on the ros_control git wiki. Now in the controller manager runs in a non-...
user avatar
0 votes
1 answer
1 view

If publishes faster than calling SpinOnce, would CallBack Queue be filled up eventually?

If we have a publisher publishing at 40Hz, and the subscriber is calling SpinOnce at 20Hz, would our CallBack Queue be filled up eventually? Originally posted by Dumpsomer on ROS Answers with karma: ...
user avatar
0 votes
1 answer
3 views

Does new Callbacks overwrite Callback queue when full or they get rejected?

When the Global Callback queue is full, if there is a new Callback coming in, would it overwrite the the old Callbacks or would the new Callback simply get dropped? If it get dropped, what would be ...
user avatar
0 votes
1 answer
3 views

What's the meaning of global in getGlobalCallbackQueue()?

Hi there! Does the getGlobalCallbackQueue function return a pointer to a queue shared by all the nodes? or does it return a pointer to a queue intended global within the node? Thanks a lot. ...
user avatar
0 votes
1 answer
3 views

waitForMessage functionality for TimeSyncronizer

Hi I am interested to get new sensor values (published to a topic) while in a service callback. For a single topic I was able to do this using ros::topic::waitForMessage. Unfortunately I am actually ...
user avatar