-
Notifications
You must be signed in to change notification settings - Fork 67
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
What about adding UDP transport? #133
Comments
Hello @Hao-Lion-ZJU PR are welcomed, please if you have a functional transport, contribute it. |
@Hao-Lion-ZJU |
Can you tell me more details? And attach a screenshot of your question. |
@Hao-Lion-ZJU Settings on the STM32F767ZI side. /* USER CODE END Header_StartDefaultTask */ rmw_uros_set_custom_transport( oktransport = cubemx_transport_open; rcl_allocator_t freeRTOS_allocator = rcutils_get_zero_initialized_allocator(); if (!rcutils_set_default_allocator(&freeRTOS_allocator)) { rcl_publisher_t publisher; rclc_support_t support; allocator = rcl_get_default_allocator(); //create init_options // create node // create publisher msg.data = 0; for(;;)
} And I set the flags for tracking, rclc_support_init(&support, 0, NULL, &allocator); does not initialize. |
@isomadinow I roughly understand now. Firstly, please ensure that your Jetson/PC can ping your STM32. One issue I encountered while using the H7 series is that the MPU must be correctly enable. Make sure that LwIP has the following configuration:
You can set up an demo of UDP communication to see if the communication is working properly. |
Hello again. @Hao-Lion-ZJU |
@isomadinow |
@Hao-Lion-ZJU |
@isomadinow It seems that need you debug step by step. |
I never had to work with lwIP nor did I study how it works under the hood, but the current the udp transport implementation from the zephyr module instead works flawlessly. I assume it polls for the incoming data without blocking. Would this implementation also work for stm32 in general and can be merged? |
Hello Microros or ROS2 Community,
I recently tried deploying micro-ROS on STM32H743. The project requires me to establish a connection with the Agent using STM32 over the network. Unfortunately, I couldn't find relevant information online, so I attempted to use LWIP to write a custom transport.I imitated the writing style of the custom transport in this repository and referred to the micro-ROS tutorial to write my own
udp_transport.c
. Surprisingly, it worked successfully. I hope the developers will consider submitting UDP transport as an option.It's worth noting that when using UDP, modifications are required in the content ofsimple_main.c
.Detail in
udp_transport.c
:The text was updated successfully, but these errors were encountered: