How can I access all msg fields recursively in a message_generator?
Hallo,
I am trying to create a message_generator. For this purpose I need to access all message fields recursively until I reach the level of pure primitive types (for which I have basic templates). What I would like to do is to process all fields in a msggen.MsgSpec.parsed_fields() and for each of them that is not "is_builtin" I would like to get the corresponding msggen.MsgSpec class and go on in a recursive way. Does this make sense? How can I do this? Another possibility that I explored would be to use rosmsg.get_msg_text on the non-primitive types but this seems more complicated since I have to parse the message description myself. Thanks for your help.
Riccardo