Robotics StackExchange | Archived questions

In ROS2 is there a way to determine the publisher's name in a subscription callback?

I believe in ROS1 there's an alternate callback form for subscriptions which provides the node name of the publisher via an additional object containing metadata about the message. Is such a mechanism available in ROS2? I've been looking through subscription options and IntraProcessManager (looks like it may be experimental class), but haven't really found something.

Asked by jeremya on 2022-03-31 13:24:32 UTC

Comments

Answers