apollo
apollo copied to clipboard
Modify input message in component's Proc() method
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.