Questions tagged [subscribe]
The subscribe tag has no summary.
132 questions
0 votes
1 answer
103 views
fast_lio_mapping node (FAST-LIO) not subscribing to IMU and LiDAR topics (ROS2 Humble)
I am working with the FAST-LIO SLAM algorithm for my system: https://github.com/hku-mars/FAST_LIO. I cloned the repo, and I am using it with ROS2 Humble. I then downloaded the sample ROS bag (2020-09-...
0 votes
0 answers
13 views
Optimum way to do multiple (similar) msg subscrition in multiple nodes?
Tuesday Tangle I was wondering what can be the optimum way to solve the following. (Not even sure if it affects the system performance. I am not worried about the delays and other factors, just ...
0 votes
0 answers
42 views
Implementing topic callback and action callback in ROS2
I want to implement and action server that uses data received from a topic subscription callback. In order to achieve it, I had to add ...
1 vote
1 answer
98 views
Unable to subscribe topic from ( ros2 + docker ) in remote device
I installed docker in my remote device which is RPI (raspian as OS) to make it able to run ros2 humble in it. I pulled the humble-rose-base. I started the container ...
0 votes
0 answers
199 views
How to subscribe Joy topic with micro-ROS on ESP32
I'm writing a micro-ROS subscriber for the sensor_msgs/msg/Joy message type, running on an ESP32 board. I'm trying to display characters on the serial monitor of the Arduino IDE in response to the ...
1 vote
0 answers
41 views
Do subscribers in ROS2 have to subscribe to the same data types as publishers?
I would like to modify the message posted by the publisher directly from the subscriber side. So I tried the following method: pass reference to modify directly on subscriber side, but it doesn't ...
0 votes
2 answers
100 views
using action client and subscriber in the same script
I am using the nav2 api which calls for me to create a node and not use rclpy.spin() on it, because inside some of their ...
2 votes
1 answer
103 views
ROS2 rclcpp subscriber callback uses same shared_ptr for each new message
I have an rclcpp node with some message data coming in (images, scans, etc). I would like to apply temporal filtering to this data, and therefore store a copy of each incoming message. I assumed ...
0 votes
2 answers
329 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
0 answers
185 views
Read topic message from subscription without executing callback
"Reading data from subscription without executing callback" is considered to be one of the common use cases of ROS 2. However, I wonder why there is less description about this use case in ...
0 votes
1 answer
75 views
Calling ROS2 subscriber callback function from another function
I try to use x and y in timer_callback function but I get ‘x’ was not declared in this scope I don't know how can I do this ...
0 votes
1 answer
309 views
C++ Publisher and Subscriber in ROS2
I use Ubuntu 20.04 and Ros2 Galactic when I run the code I'm able to get subscribe information and pub this information and also I can see publisher information on topic echo continuously but when I ...
0 votes
0 answers
94 views
Does rclpy supports intraprocess communication?
I wanted to know if rclpy supports intraprocess communication or is there a way to do intraprocess in rclpy with python based libraries? Thanks,
0 votes
0 answers
90 views
Subscriber in python to std_msgs.msg.Float32 crashes when the maximum float-32bits is sent
Setup: a publisher in c++ of std_msgs/msg/Float32 sends the maximum float-32bits (using std::numeric_limits::max()) a subcriber in c++ to the topic above works just fine a subcriber in python to the ...
0 votes
1 answer
295 views
Subscribe to geometry_msgs/TransformStamped (tf) Message with message_filters ApproximateTime subscriber
I am trying to use a message_filters::sync::ApproximateTime subscriber in a C++ node that must subscribe to 2 custom messages (which have a Header each), nav_msgs/OccupancyGrid Message, and a tf/...