micro-ROS/micro_ros_stm32cubemx_utils

Reducing STREAM_HISTORY from 4 to 2 makes publishers return error code 1 ROS2:Humble

luukWeFab opened this issue · 1 comments

Hey, I was trying to reduce the STREAM_HISTORY variable in the colcon.meta file to reduce RAM usage. These are the lines I use to initialize the publisher and print the return code.
image

When I use STREAM_HISTORY = 4 everything works fine, and I can echo the publisher results with ros2 topic echo /test_publisher.
However when I reduce STREAM_HISTORY from 4 to 2, and then build again I get return code 1 from the rclc_publisher_init_default function. I also tried 1 but that also didn't work. I was wondering why this isn't possible? Or do I also need to rebuild the microROS agent or something else?

Ps: I'm using FreeRTOS as OS, and the humble version of microROS.

Okay when I tried to replicate the problem this morning it seems to work fine. So I'm still confused as to what I changed that fixed it. But it is working now, sorry for the inconvenience.