Skip to main content

Questions tagged [callback]

1 vote
0 answers
36 views

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 ...
muye's user avatar
  • 11
0 votes
1 answer
51 views

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 ...
Mads Grimholt's user avatar
0 votes
1 answer
174 views

I'm confused about the callback types when using MultiThreadedExecutor. For example: I have a subscriber to a pointcloud topic ...
Pablo's user avatar
  • 3
0 votes
0 answers
35 views

ROS2 Distro: Humble When I call self.motorrak_mugitu2(), it's executed partially (the subscriber node executes partiallyy) as it seems that ...
Javier Arambarri Calvo's user avatar
0 votes
0 answers
15 views

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 ...
Javier Arambarri Calvo's user avatar
0 votes
1 answer
35 views

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: <...
bhomaidan90's user avatar
0 votes
1 answer
107 views

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 ...
user46151's user avatar
0 votes
0 answers
64 views

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 ...
guest's user avatar
  • 1
0 votes
0 answers
35 views

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 ...
gseq's user avatar
  • 1
0 votes
0 answers
20 views

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_) ...
Davide's user avatar
  • 1
0 votes
1 answer
87 views

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 ...
Mrmara's user avatar
  • 11
0 votes
2 answers
333 views

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 ...
paul's user avatar
  • 1
1 vote
1 answer
325 views

I want to add an additional argument in a callback function for rclcpp, e.g. callback(msg, additional_argument). I can do it in ...
gab's user avatar
  • 113
0 votes
2 answers
2k views

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 (...
Carter Sifferman's user avatar
0 votes
1 answer
73 views

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 ...
Bernd Pfrommer's user avatar

15 30 50 per page
1
2 3 4 5
18