micro-ROS / micro-ROS-demos

Sample code using rclc and rclcpp implementations.
Apache License 2.0
84 stars 24 forks source link

demo for publishing diagnostic status message #70

Closed patrickwasp closed 1 year ago

patrickwasp commented 1 year ago

Can we get a demo for publishing a diagnostic message with a key value sequence?

I'm not sure how to allocate, initialize, and assign diagnostic_msgs/msg/KeyValue[] values

https://docs.ros2.org/foxy/api/diagnostic_msgs/msg/DiagnosticStatus.html

pablogs9 commented 1 year ago

Hello @patrickwasp, here you have documentation on how to init memory for types in micro-ROS: https://docs.vulcanexus.org/en/latest/rst/tutorials/micro/memory_management/memory_management.html#message-memory