micro_ros_arduino icon indicating copy to clipboard operation
micro_ros_arduino copied to clipboard

Float Multiarray Publisher

Open ErikParkerrr opened this issue 2 years ago • 1 comments

Issue template

  • Hardware description: ESP32
  • Installation type: micro_ros_arduino library in legacy Arduino IDE with docker container for agent. USB serial transport
  • Version or commit hash: humble

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

ErikParkerrr avatar Sep 29 '23 21:09 ErikParkerrr

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

pablogs9 avatar Oct 02 '23 05:10 pablogs9