micro-ROS / micro_ros_renesas_demos

Demo code for Renesas e2 studio
Apache License 2.0
4 stars 5 forks source link

Issue with micro_ros_uart demo #123

Closed Jackogip closed 1 year ago

Jackogip commented 1 year ago

Issue

Steps to reproduce the issue

Run the standard UART demo connected to Ubuntu 22.04 with the UART micro-ROS Agent

Expected behavior

That the micro-ROS agent would continually publish the incremented msg.data

Actual behavior

The micro-ROS agent only publishes: image

After that it seems to stop publishing data.

Additional information

When there is no UART connection when the micro_ros_uart demo projects starts it will get stuck in the: BSP_ATTRIBUTE_STACKLESS void bsp_prv_software_delay_loop (__attribute__((unused)) uint32_t loop_cnt)

Acuadros95 commented 1 year ago

Did you check if the data is being published on a ROS 2 terminal?

The agent log of your image looks correct. To view logs of actual data publications, you will need to launch the Agent in debug mode, adding the flag -v6.

When there is no UART connection when the micro_ros_uart demo projects starts it will get stuck in the:

The demo is just a simple publisher, which expects the Agent to be present on its initialization. Agent disconnections can be handled with the ping feature, check this tutorial for more details: 4.3. Reconnections and liveliness

Jackogip commented 1 year ago

Yes, my mistake the messages are there.

The demo is just a simple publisher, which expects the Agent to be present on its initialization. Agent disconnections can be handled with the ping feature, check this tutorial for more details: 4.3. Reconnections and liveliness <

Ok thanks