-
Notifications
You must be signed in to change notification settings - Fork 117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workaround for micro-ros_publisher_wifi example hanging after 90 seconds #1499
Comments
If you remove the ping and the subscription, and include the publisher inside a timer and spin an executor, does it solve the isuee? |
I have tried publishing inside a timer and spinning the executor in loop() - no, it doesn't resolve the issue. It still freezes exactly the same like the original example - 90 seconds after connecting to the agent. Here is the timer-and-executor-spin code for your reference:
The
And here is the Micro-ROS agent output FYI
|
|
Simply changing
|
Could you check if this PR solves this issue: micro-ROS/rmw_microxrcedds#305 ? |
I'm afraid it's not obvious for me what and how to rebuild to get that PR in. I tried searching rmw_microxrcedds package in index.ros.org to see which packages depend on it and have to be rebuilt, but it's not listed. I've tried looked at micro_ros_setup .sh built scripts and it appears to be the right place, but still far from obvious. |
Issue template
I'd like to share a workaround for micro-ros_publisher_wifi example hanging after 90 seconds.
Steps to reproduce the issue
Once ESP32 connects to WiFi and Micro-ROS agent, I launch another bash and run
Expected behavior
micro-ros_publisher_wifi example keeps running indefinitely long, until powered down
Actual behavior
After received 90 seconds.
ros2 topic echo int32pub
hangs, does not output message data anymore.Additional information
I've fixed this behavior by having ESP32 ping Micro-ROS agent periodically. Please see the code below.
I have also fixed this by
Either of the fixes work, but the ping one is the most convenient for me.
The text was updated successfully, but these errors were encountered: