apollo icon indicating copy to clipboard operation
apollo copied to clipboard

Modify input message in component's Proc() method

Open IvDmNe opened this issue 1 year ago • 0 comments

Hello! I have a general question about using messages in components. Signature of Proc method:

https://github.com/ApolloAuto/apollo/blob/e373b206a0dc0360af826152132a61c85cab295c/cyber/component/component.h#L109

It has const pointer to message. Does it mean that we are allowed to modify the input message and can send it to another channel after it? I want to do it in lidar processing module, where messages are quite large, to avoid copying of the whole message to a new variable.

IvDmNe avatar Apr 04 '24 08:04 IvDmNe