micro_ros_espidf_component icon indicating copy to clipboard operation
micro_ros_espidf_component copied to clipboard

subscription_callback never called

Open JK-Pair opened this issue 9 months ago • 1 comments

Issue template

  • Hardware description: ESP32-C6-WROOM-1
  • Installation type: espidf, component - ESP-IDF 5.5v
  • Version or commit hash: Humble

Steps to reproduce the issue

I have tested the publisher and subscriber from this repository and found that the subscription_callback is never called. On the other hand, the publisher works fine, even with a multithreaded subscriber.

Could anyone help point out any possible issues that might be causing this problem?

JK-Pair avatar Mar 31 '25 08:03 JK-Pair

Hi @JK-Pair Make sure your subscriber is added to an executor and that the executor is regularly spun (e.g., rclc_executor_spin()), and check that the QoS of the publisher and subscriber match. Without the executor running or with incompatible QoS, the callback will not be called. and check number of subscriber on colcon.meta and idf.py clean and rebuild project for testing

you can add more information about error .

Waelhechmi avatar Oct 09 '25 11:10 Waelhechmi