Closed samiamlabs closed 1 year ago
Your executor only has one handle:
RCCHECK(rclc_executor_init(&executor, &support.context, 1, &allocator));
The add timer method shall work but you shouldn't be able to add the subscription.
Just increase the number of handles in rclc_executor_init
Ok, thanks! I'm pretty sure I learned that last time I tried micro-ROS last time but it is apparently pretty easy to forget about.
Issue template
Steps to reproduce the issue
Replace microros_app.c in the micro_ros_udp_freertos with this:
Expected behavior
The subscription_callback should run when publishing to it through the agent on my PC.
Actual behavior
The subscription callback does not run when you publish to the node. (The timer callback and publisher seem to work though.)