Closed martonmiklos closed 1 year ago
Dawg. The ROS_HANDLE_NUM needed to be adjusted in the
rclc_executor_init(&executor, &support.context, ROS_HANDLE_NUM, &allocator);
call.
https://github.com/ros2/rclc/blob/master/rclc/src/rclc/executor.c#L221
Sorry for the noise, but it took me a while to figure this out.
Hi folks,
I am trying to use this library on an STM32F411 Discovery.
I added the following subscribers:
The
ret = rclc_executor_add_subscription(&executor, &motorBRSubscriber, &msg_motor_br, &motor_velocity_br_callback, ON_NEW_DATA);
andret = rclc_executor_add_subscription(&executor, &motorEnableSubscriber, &msg_motor_enable, &motor_enable_callback, ON_NEW_DATA);
are returning with 1.I have increased the RMW_UXRCE_MAX_SUBSCRIPTIONS to 10, rebuilt the libmicroros.a but it does not changed the behavior (it changed hash of the .a file so the parameter really changed something) https://github.com/micro-ROS/micro_ros_stm32cubemx_utils/blob/humble/microros_static_library_ide/library_generation/colcon.meta#L45
The rclc_executor_add_subscription calls do not generate anything in the host side, only the rclc_subscription_init_default calls.
The first rclc_subscription_init_default of the failing rclc_executor_add_subscription call has this in the output: