How to identify service clients coming from the same node ?
I am working on along the same idea of this poster in this topic. Specifically I have a ROS2 server node with multiple services and I need to be able to identify service clients associated with the same client node(name)
I am aware that I can get service client guid with the rclservicet field in the call back, but the problem is , in the client node, each service client are associated with different guids. So I cannot tell if they come from the same node.
super().__init__('client_node')
self.start_cli = self.create_client(Start, 'start')
self.stop_cli = self.create_client(Stop, 'stop')
In the above idea, I need the service server somehow able to identify it's the 'client_node' making the calls to start/stop. Do you have any ideas ?
Thank you !
Asked by don912 on 2023-06-17 01:19:51 UTC
Comments