Class ConnectionGraph

Class Documentation

class ConnectionGraph

A connection graph describing a topology of subscribers, publishers, topics, and services.

Connection graph data can be published with WebSocketServer::publishConnectionGraph, and visualized in the Foxglove Topic Graph panel.

Public Functions

ConnectionGraph()
FoxgloveError setPublishedTopic(std::string_view topic, const std::vector<std::string> &publisher_ids)

Set a published topic and its associated publisher ids.

Overwrites any existing topic with the same name.

FoxgloveError setSubscribedTopic(std::string_view topic, const std::vector<std::string> &subscriber_ids)

Set a subscribed topic and its associated subscriber ids.

Overwrites any existing topic with the same name.

FoxgloveError setAdvertisedService(std::string_view service, const std::vector<std::string> &provider_ids)

Set an advertised service and its associated provider ids.

Overwrites any existing service with the same name.