How to use the expandTopicName function from bindings

Find comprehensive JavaScript bindings.expandTopicName code examples handpicked from public code repositorys.

1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
 * Return the number of publishers on a given topic.
 * @param {string} topic - The name of the topic.
 * @returns {number} - Number of publishers on the given topic.
 */
countPublishers(topic) {
  let expandedTopic = rclnodejs.expandTopicName(
    topic,
    this.name(),
    this.namespace()
  );
fork icon65
star icon244
watch icon27

+ 107 other calls in file

379
380
381
382
383
384
385
386
387
388
 * @param {string} nodeName - Name of the node that this topic is associated with.
 * @param {string} nodeNamespace - Namespace that the topic is within.
 * @return {string} Expanded topic name which is fully qualified.
 */
expandTopicName(topicName, nodeName, nodeNamespace) {
  return rclnodejs.expandTopicName(topicName, nodeName, nodeNamespace);
},

createMessage(type) {
  const typeClass = loader.loadInterface(type);
fork icon65
star icon244
watch icon0

Other functions in bindings

Sorted by popularity

function icon

bindings.createKey is the most popular function in bindings (8616 examples)