Support publishing loaned messages in LifecyclePublisher#2159
Support publishing loaned messages in LifecyclePublisher#2159clalancette merged 5 commits intoros2:rollingfrom
Conversation
|
thanks for opening PR! there is build failure https://build.ros2.org/job/Rpr__rclcpp__ubuntu_jammy_amd64/746/console, can you address it? |
fujitatomoya
left a comment
There was a problem hiding this comment.
it would be better to add unit test in test_lifecycle_publisher.cpp to make sure if loaned messae can be published with lifecycle states.
Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
bb98e3f to
a2b28be
Compare
|
Hey, @fujitatomoya, thanks for taking a look at this! I don't think the build failure is related to my changes, since last merged PR has the same issue. Added tests. |
Yeah, right now the Rpr jobs aren't going to work (we expect to have that fixed this week). We have to rely on the regular CI jobs from https://ci.ros2.org . |
|
@fujitatomoya can you help me figure out the CI failure, please? |
|
something goes wrong during building cyclonedds, https://ci.ros2.org/job/ci_linux/18545/console, could be temporary. I will restart the CI. CI: |
|
CI unstable failures are not related to this PR. |
|
@iuhilnehc-ynos @Barry-Xu-2018 can i request another review on this? |
|
LGTM |
|
@fujitatomoya Assuming I'm good to merge with 3 approves, how do I merge/proceed if there's a build failure? |
Hm, but we do not see these failures on the nightlies: https://ci.ros2.org/view/nightly/job/nightly_linux_release/2616/ |
|
@ros-pull-request-builder retest this please |
|
@clalancette yay, it passes now, thanks! This PR is ready to be merged, then.
|
Sorry, I don't think so. There are failures in the jobs in #2159 (comment) that we don't see elsewhere. |
|
ah, ok, I though those were unrelated:
I don't see anything related to my changes in the CI logs, is there any way I can replicate the issue locally? |
Actually, it might be enough for you to rebase this PR onto the latest |
Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
|
@clalancette thanks for restarting CI! |
* Support loaned messages in LifecyclePublisher Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
* Support loaned messages in LifecyclePublisher Signed-off-by: Michael Babenko <mbabenko@wayve.ai>
Problem
Right now LifecyclePublisher doesn't support publishing
LoanedMessages.Solution
Override publish for loaned message, implementation is the same as in other overloads, check if publisher is activated and if so, pass message to base publisher