advertise<T extends RosMessage<T>> method

Publisher<T> advertise <T extends RosMessage<T>>(
)

Implementation

Publisher<T> advertise<T extends RosMessage<T>>(
  String topic,
  T typeClass,
  bool latching,
  bool tcpNoDelay,
  int queueSize,
  int throttleMs,
) {
  if (!_publishers.containsKey(topic)) {
    _publishers[topic] = PublisherImpl<T>(
        this, topic, typeClass, latching, tcpNoDelay, queueSize, throttleMs);
  }
  return Publisher<T>(_publishers[topic]);
}