Ask Your Question
0

Using Micro ROS over serial link?

asked 2020-11-08 19:24:00 -0500

chrisalbertson gravatar image

updated 2020-11-09 11:42:20 -0500

I'm new to Micro ROS. I want to use it with STM32 to connect to Foxy on Ubunto 20.

My understanding is I need to have an IP network connection from STM32 to Linux. The typical STM32 chip has SPI, I2C, USB, and Async serial. It requires a larger development board to get Ethernet or WiFi.

Is there a way to configure DDS-XRCE to use a point-to-point serial link?

Yes, I know I could simply use ROS-Serial on the STM32 and then the ROS1-ROS2 bridge on the Linux system. But that means not using micro-ROS at all.

(I have no preference for which RTOS is used, whichever solves the problem.)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-11-10 00:52:35 -0500

Pablogs gravatar image

Hello, micro-ROS supports UART transports for communicating with ROS 2. Please follow this demo guide to see one example of an SMT32 running micro-ROS in a serial port.

If you have any other doubt do not hesitate to open an issue in any of the micro-ROS repos in Github.

edit flag offensive delete link more

Comments

Is it possible to use I2C or SPI? I would prefer to have mechanism to implement the transport over arbitrary protocol.

lukicdarkoo gravatar image lukicdarkoo  ( 2020-11-12 16:36:57 -0500 )edit
1

Is completely possible to customize the transport layer of micro-ROS.

Pablogs gravatar image Pablogs  ( 2020-11-13 02:46:17 -0500 )edit

Nice! What about Micro XRCE DDS Agent, do you may know if we can make it work with the other protocols?

lukicdarkoo gravatar image lukicdarkoo  ( 2020-11-13 15:06:40 -0500 )edit
1

The Micro XRCE-DDS Agent also has customizable transport layers check the code here. Another solution we use with some protocols (such as ShockBurst radio links) is creating small Python bridges between these protocols and UDP or serial. Usually works nice.

Pablogs gravatar image Pablogs  ( 2020-11-16 01:07:21 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2020-11-08 19:24:00 -0500

Seen: 715 times

Last updated: Nov 09 '20