# ROS2 C based dynamic typesupport example?

**URL:** <https://discourse.openrobotics.org/t/ros2-c-based-dynamic-typesupport-example/19079>\
**Category:** ROS General\
**Created:** [February 21, 2021, 11:49pm UTC](https://discourse.openrobotics.org/t/ros2-c-based-dynamic-typesupport-example/19079 "2021-02-21T23:49:30Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![gbiggs](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/gbiggs/32/30361_2.png) [@gbiggs](https://discourse.openrobotics.org/u/gbiggs)\
**Post date:** [February 23, 2021, 1:00am UTC](https://discourse.openrobotics.org/t/ros2-c-based-dynamic-typesupport-example/19079/3 "2021-02-23T01:00:26Z")

</div>

Here we go. This repository contains code that uses dynamic type introspection to translate messages between the in-memory representation and a YAML representation. It can go both directions, and all it requires is that you provide the compiled shared library that contains the type support for the messages you want to deal with. For message types distributed with ROS these libraries are already provided. The functions in this code should show you how to dynamically manage types. Feel free to ask if there’s something you don’t understand.

It doesn’t do services or actions (yet), but the principle is the same since each part of a service or action is just a message.

[https://github.com/osrf/dynamic\_message\_introspection](https://github.com/osrf/dynamic_message_introspection)

---

_[View the full topic](https://discourse.openrobotics.org/t/ros2-c-based-dynamic-typesupport-example/19079)._
