advertise<T extends RosMessage<T> > method
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]);
}