Closed fitocuan closed 2 years ago
The C code does not compile because subscription
and led_msg
are not defined.
Also, you are creating a best effort publisher and a reliable subscriber. Try to create a reliable publisher with rclc_publisher_init_default
.
Hi,
Thank you, I have used the rclc_publisher_init_default and it now works.
Hi,
I have a raspberry pi pico running a float publisher. By using ros2 echo and can read the topic without issues.
However when I create a node which subscribes to this topic and prints a received message as callback, but the node do not get anything. I try to manually publish (ros2 pub) to this topic and the subscriber node did received it and process the callback.
Subscriber Node:
Raspberry pi pico MircoROS Node: