How to use the getServiceName function from bindings

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

99
100
101
102
103
104
105
106
107

  /**
   * @type {string}
   */
  get serviceName() {
    const fullServiceName = rclnodejs.getServiceName(this._handle); // returns /my_node/myservice
    return fullServiceName.split('/').pop();
  }
}
fork icon65
star icon248
watch icon27

+ 5 other calls in file

Other functions in bindings

Sorted by popularity

function icon

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