Questions tagged [callback]
The callback tag has no summary.
263 questions
1
vote
0
answers
36
views
ROS 2 Humble callback function has a delay of 1-2 seconds before being invoked
1. Environment: Ubuntu 22.04 + ROS 2 Humble release; use default fastDDS shm
2. Publisher: On startup, read 100 pieces of point cloud data from a rosbag into memory (read only once) and send them at a ...
0
votes
1
answer
51
views
Need service node to not send response before recieving a msg on a topic
i have the following issue;
Node is a service node, and a subscriber. When the service recieves a request, i want it to wait for a msg on the topic it subscribes to before the service returns the ...
0
votes
1
answer
174
views
Reentrant vs Mutually Exclusive Callbacks Confusion
I'm confused about the callback types when using MultiThreadedExecutor. For example:
I have a subscriber to a pointcloud topic ...
0
votes
0
answers
35
views
Cannot manage callbacks properly
ROS2 Distro: Humble
When I call self.motorrak_mugitu2(), it's executed partially (the subscriber node executes partiallyy) as it seems that ...
0
votes
0
answers
15
views
Unable to get real-time data from topic when executing an action callback
Goal: I want to turn my robot using an IMU. Motors are moved by publishing in their related topics, and IMU data is read by subscribing to its topic. The turn is started by calling an action. The node ...
0
votes
1
answer
35
views
message_filters ApproximateTimeSynchronizer blocked by service callback
The ApproximateTimeSynchronizer subscriber callback is never called, can you please guide me on how to solve this problem? here is a minimal example to reproduce:
<...
0
votes
1
answer
107
views
ROS2 - Problem with multiple service calls
I use ROS 2 Huble and I am struggeling calling a service from the callback of another service.
I have three nodes:
Move with a service client
Controller with two services and a service client and a ...
0
votes
0
answers
64
views
How to use multiple services in ROS2? Call a service from the callback of another service
I use ROS2 and have the following scenario. I have a node with a service A and a client A, written in python. I also have a service B that is to be called by client A. Now I want to trigger another ...
0
votes
0
answers
35
views
Handling long running service calls
Assume there is a node that has a bunch of services.
Each call to a service could take a few seconds to minute to complete.
Some of these services(eg, A and B) would need to run concurrently, meaning ...
0
votes
0
answers
20
views
Joint Trajectory Controller misses subscriber callback
I tested the Joint Trajectory Controller (JTC) on the UR10 robot in simulation and encountered a rare bug with the controller subscriber (joint_command_subscriber_) ...
0
votes
1
answer
87
views
ROS2-Same callback for multiple topics types
I would like to use the same callback for subscriptions to different topics with different types. I have searched on the internet and could not a wokring approach.
My idea was to templetize the ...
0
votes
2
answers
333
views
Multiple subscriptions in a single callback
I want to do parallel process of multiple subscriptions in a single callback. I have been looking for information, but there is barely any information regarding this in ROS 2 Humble. I found callback ...
1
vote
1
answer
325
views
How to add an additional argument in a ROS2 cpp callback
I want to add an additional argument in a callback function for rclcpp, e.g. callback(msg, additional_argument).
I can do it in ...
0
votes
2
answers
2k
views
How to wait for an action to be complete inside a callback?
I'm controlling a mobile robot and I'd like to set up an action (call it back_and_forth) that commands the robot to move forward 1 meter, then move backwards one meter. The interface that I'm using (...
0
votes
1
answer
73
views
When will subscriber status callbacks be available in ROS2?
What are the plans for implementing rclcpp subscriber status callbacks (connect/disconnect) in ROS2? I found this ROS1 feature quite handy.
Note that this question has been asked before but since that ...