Closed minggangw closed 3 years ago
Thx for the enhancement. I did a quick read thru of the code and it looks good to me. Qualifier: my C is a little rusty so will defer to other reviewers.
The Publisher#publish() method declaration in types/publisher.d.ts needs to be updated to support the new alternative Buffer parameter type, i.e., publisher(message: Message | Buffer) : void
. Do you want to include this in this PR?
Do you want to include this in this PR?
@wayneparrott Would you please help to submit a separate PR for the ts declaration? I will merge it once this PR lands.
I have tested the implementation with the rclpy client and will add a unit test when the subscription part is done, thanks!
This patch implements the feature that a publisher can publish a raw message, and an example is added.
Fix #646