Skip to content

Publish "client_count" topic #38

@jhurliman

Description

@jhurliman

Taken from rosbridge:

# Publisher for number of connected clients
# QoS profile with transient local durability (latched topic in ROS 1).
client_count_qos_profile = QoSProfile(
    depth=10,
    durability=DurabilityPolicy.TRANSIENT_LOCAL,
)

RosbridgeWebSocket.client_count_pub = self.create_publisher(
    Int32, "client_count", qos_profile=client_count_qos_profile
)
RosbridgeWebSocket.client_count_pub.publish(Int32(data=0))

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions