Title: Connectivity Drop with More Than 5 Devices in Micro-ROS Agent on Docker (Raspberry Pi 5) · Issue #233 · micro-ROS/micro-ROS-Agent · GitHub
Open Graph Title: Connectivity Drop with More Than 5 Devices in Micro-ROS Agent on Docker (Raspberry Pi 5) · Issue #233 · micro-ROS/micro-ROS-Agent
X Title: Connectivity Drop with More Than 5 Devices in Micro-ROS Agent on Docker (Raspberry Pi 5) · Issue #233 · micro-ROS/micro-ROS-Agent
Description: Description: I am running a micro-ROS agent in a Docker container using the prebuilt image (humble) on a Raspberry Pi 5. I have several ESP32 devices with micro-ROS (Humble). When I attempt to connect more than five devices to the agent,...
Open Graph Description: Description: I am running a micro-ROS agent in a Docker container using the prebuilt image (humble) on a Raspberry Pi 5. I have several ESP32 devices with micro-ROS (Humble). When I attempt to conn...
X Description: Description: I am running a micro-ROS agent in a Docker container using the prebuilt image (humble) on a Raspberry Pi 5. I have several ESP32 devices with micro-ROS (Humble). When I attempt to conn...
Opengraph URL: https://github.com/micro-ROS/micro-ROS-Agent/issues/233
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Connectivity Drop with More Than 5 Devices in Micro-ROS Agent on Docker (Raspberry Pi 5)","articleBody":"**Description:**\r\nI am running a micro-ROS agent in a Docker container using the prebuilt image (humble) on a Raspberry Pi 5. I have several ESP32 devices with micro-ROS (Humble). When I attempt to connect more than five devices to the agent, I experience connectivity dropouts, where some devices fail to stay connected. With 5 devices, they are successful in subscribing to topics.\r\n\r\nI suspect this issue might be related to the configuration flags in the micro-ROS build, particularly those related to client and resource limits. I came across the following parameters:\r\n\r\n- `RMW_UXRCE_MAX_CLIENTS`\r\n- `RMW_UXRCE_MAX_SUBSCRIPTIONS`\r\n- `RMW_UXRCE_MAX_SESSIONS`\r\n- `RMW_UXRCE_MAX_NODES`\r\n- `RMW_UXRCE_MAX_PUBLISHERS`\r\n- `RMW_UXRCE_MAX_SERVICES`\r\n- `RMW_UXRCE_MAX_WAIT_SETS`\r\n- `RMW_UXRCE_MAX_GUARD_CONDITION`\r\n- `RMW_UXRCE_MAX_TOPICS`\r\n\r\nThese parameters seem critical to configuring the agent, especially as I'm dealing with multiple devices where each subscribes to three topics. I suspect increasing the `RMW_UXRCE_MAX_CLIENTS` value might help, but I'm not entirely sure.\r\n\r\n**What I've Tried:**\r\n- I attempted to experiment by manually setting `RMW_UXRCE_MAX_CLIENTS` to 1 (as a test), but it did not yield the expected results, as multiple clients could still connect.\r\n- I've tried searching through the documentation, including [Vulcanexus](https://docs.vulcanexus.org/en/latest/rst/tutorials/micro/memory_management/memory_management.html#:~:text=RMW_UXRCE_MAX_NODES%20%3A%20Maximum%20number%20of%20micro,Default%20value%3A%204) for guidance, but I haven't been able to solve the issue.\r\n\r\n**Question:**\r\nIn order to adjust these flags and rebuild the micro-ROS agent from source, do I need to modify the build configuration in the following file?\r\n- [`src/micro_ros_setup/config/host/generic/client-host-colcon.meta`](https://github.com/micro-ROS/micro_ros_setup/blob/jazzy/config/host/generic/client-host-colcon.meta)\r\n\r\nOr should the changes be made in this file instead?\r\n- [`src/uros/rmw_microxrcedds/rmw_microxredds_c/CMakeLists.txt`](https://github.com/micro-ROS/rmw_microxrcedds/blob/jazzy/rmw_microxrcedds_c/CMakeLists.txt)\r\n\r\nI believe the latter might be where the flags should be set, but I'm uncertain. Has anyone else experienced similar connectivity issues when connecting more than five devices to a micro-ROS agent on Docker? If so, how did you resolve it?\r\n\r\n(I've also noticed a colcon.meta file in the /src folder of my workspace, should the be used?)\r\n\r\nAny guidance on where exactly to set the flags for a manual source installation would be greatly appreciated - Or even the correct approach to setting up an agent to allow for more than 20 clients!\r\n\r\nThanks in advance for your help!\r\n\r\n**System Details:**\r\n- **Hardware:** Raspberry Pi 5\r\n- **Docker Image:** Prebuilt micro-ROS agent\r\n- **Micro-ROS Version:** Humble on ESP32 devices\r\n- **Number of Devices:** 5+ ESP32 devices\r\n- **Topics per Device:** 3 Topics per device\r\n\r\n**Links to Documentation:**\r\n- [Vulcanexus Documentation on Memory Management](https://docs.vulcanexus.org/en/latest/rst/tutorials/micro/memory_management/memory_management.html)\r\n- [micro_ros_setup Repository](https://github.com/micro-ROS/micro_ros_setup/blob/jazzy/config/host/generic/client-host-colcon.meta)\r\n- [rmw_microxrcedds Repository](https://github.com/micro-ROS/rmw_microxrcedds/blob/jazzy/rmw_microxrcedds_c/CMakeLists.txt)\r\n\r\nThank you!\r\n\r\n","author":{"url":"https://github.com/SpaceBod","@type":"Person","name":"SpaceBod"},"datePublished":"2024-08-22T00:12:53.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":3},"url":"https://github.com/233/micro-ROS-Agent/issues/233"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:4798a8dd-c771-e432-a63a-182928362d11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9E42:3106E:22705D7:2C57E37:69756EB7 |
| html-safe-nonce | c01d00f7f749b967fff3d537f65737d5601cd37e5eca44ab70985b96506b34b6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RTQyOjMxMDZFOjIyNzA1RDc6MkM1N0UzNzo2OTc1NkVCNyIsInZpc2l0b3JfaWQiOiIzODg3MjYyNjUyNDA4NjIyNzc1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a9582d3f7a51698d933a1ead5f43ec9efece12d6924b0adc6a5d9bcd6acf46c7 |
| hovercard-subject-tag | issue:2479454670 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/micro-ROS/micro-ROS-Agent/233/issue_layout |
| twitter:image | https://opengraph.githubassets.com/32789c52ad3fe05969524dc859171e20cf45007b04eaeb19e570d7949a0257ef/micro-ROS/micro-ROS-Agent/issues/233 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/32789c52ad3fe05969524dc859171e20cf45007b04eaeb19e570d7949a0257ef/micro-ROS/micro-ROS-Agent/issues/233 |
| og:image:alt | Description: I am running a micro-ROS agent in a Docker container using the prebuilt image (humble) on a Raspberry Pi 5. I have several ESP32 devices with micro-ROS (Humble). When I attempt to conn... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | SpaceBod |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4a4bf5f4e28041a9d2e5c107d7d20b78b4294ba261cab243b28167c16a623a1f |
| turbo-cache-control | no-preview |
| go-import | github.com/micro-ROS/micro-ROS-Agent git https://github.com/micro-ROS/micro-ROS-Agent.git |
| octolytics-dimension-user_id | 49058602 |
| octolytics-dimension-user_login | micro-ROS |
| octolytics-dimension-repository_id | 156196165 |
| octolytics-dimension-repository_nwo | micro-ROS/micro-ROS-Agent |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 156196165 |
| octolytics-dimension-repository_network_root_nwo | micro-ROS/micro-ROS-Agent |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 488b30e96dfd057fbbe44c6665ccbc030b729dde |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width