roslibjs icon indicating copy to clipboard operation
roslibjs copied to clipboard

Add a `getPublishers` method to the ROS class

Open hello-amal opened this issue 1 year ago • 0 comments

Public API Changes

Add a getPublishers method to the Ros class, which returns all publishers for a topic.

Description

rosapi in rosbridge exposes a /rosapi/publishers service to get all the publishers for a topic. This change exposes that functionality to the ROSlib client.

Note: I tested this in a separate fork with ROS2, which is what I use. I haven't tested it in ROS1 -- hopefully the CI is sufficient for that.

hello-amal avatar Jul 17 '24 00:07 hello-amal