micro-ROS / micro_ros_arduino

micro-ROS library for Arduino
Apache License 2.0
435 stars 112 forks source link

Float Multiarray Publisher #1538

Open ErikParkerrr opened 11 months ago

ErikParkerrr commented 11 months ago

Issue template

Expected behavior

Micro ros publishes an array of 32bit floats

Actual behavior

ESP32 boot loops, publishes nothing, or code doesn't compile

Additional information

Hi All,

I've spent the last few days trying to get micro ros to publish a float array. I'm simply looking for some example code that shows me how to publish to a topic with a Float32MultiArray Message and how to publish data to the different array elements.

I'm pretty sure my issue lies in the memory allocation area. I don't have any useful code to share as it's a conglomeration of broken things I've found all over the internet.

I really just need help with a quick example script to publish a Float32MultiArray.

Thank you

pablogs9 commented 11 months ago

Have you followed the guidelines exposed in this document? https://docs.vulcanexus.org/en/latest/rst/tutorials/micro/memory_management/memory_management.html#message-memory