Skip to content

How to serialize/deserialize message #307

@styczen

Description

@styczen

Hi,

We are working on a solution which utilizes micro-ROS. Currently we do not want to use any publishers, subsribers etc. but only messages serialization and deserialization.

The idea is to serialize ROS 2 message e.g. std_msgs/msg/Float32 on the board, send it (but not using ROS 2 or micro-ROS) and deserialize on the other side using rclcpp::Serialization<T>.

I explored the codebase and found function which is responsible for publishing the data (rmw_publish).

There is the logic for something which resemble serialization but I could not figure out how to extract it and use as standalone function.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions