ros2 / ros2_embedded_nuttx

This repository isn't actively being worked on. If you would like to take over maintainership please open a ticket on https://github.com/ros2/ros2
72 stars 34 forks source link

RCL ROS types interface in embedded #20

Open vmayoral opened 10 years ago

vmayoral commented 10 years ago

For now the "ChatMsg" is hardcoded using DDS methods in rcl but it's expetected to create an abstraction that uses rosmsgs.

vmayoral commented 10 years ago

I've been reviewing apps/idl and the code works like a charm generating output .c files that make use of the idl definitions. This will be of great help for us and we will go from ROS msgs -> .idl -> .c files.

Using the code is quite straightforward:

./idlparser -o out.c examples/union.idl

generates out.c that can be used within an embedded application.

./idlparser -o out.c -t examples/union.idl

beside the C types, adding the -t flag produces also a test code in out.c. The code can be indented using make indent (rule defined already in the Makefile).

Since the transformation will be performed in the dev. machine we can probably assume that it's safe to use https://github.com/ros2/rosidl_dds.