ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A answers.ros.org
Ask Your Question
0

rclpy.Subscription getting the number of connections

asked 2021-03-10 12:03:54 -0500

Is it possible to get the number of connections from a rclpy.Subscription object? (In ROS1 we had "subscriber.get_num_connections()")

If it is not possible, what is the alternative?

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2021-03-24 14:43:37 -0500

clyde gravatar image

self._my_pub.get_subscription_count()

See https://docs.ros2.org/foxy/api/rclpy/...

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2021-03-10 12:03:54 -0500

Seen: 439 times

Last updated: Mar 24 '21