How to use the createService function from bindings

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

85
86
87
88
89
90
91
92
93
94
  );
}

static createService(nodeHandle, serviceName, typeClass, options, callback) {
  let type = typeClass.type();
  let handle = rclnodejs.createService(
    nodeHandle,
    serviceName,
    type.interfaceName,
    type.pkgName,
fork icon65
star icon248
watch icon27

+ 5 other calls in file

86
87
88
89
90
91
92
93
94
95
  debug(`Service has processed the ${this._serviceName} request and sent the response.`);
}

static createService(nodeHandle, serviceName, typeClass, options, callback) {
  let type = typeClass.type();
  let handle = rclnodejs.createService(nodeHandle, serviceName, type.interfaceName, type.pkgName, options.qos);
  return new Service(handle, serviceName, typeClass, options, callback);
}

/**
fork icon65
star icon1
watch icon5

85
86
87
88
89
90
91
92
93
94
  debug(`Service has processed the ${this._serviceName} request and sent the response.`);
}

static createService(nodeHandle, serviceName, typeClass, callback, qos) {
  let type = typeClass.type();
  let handle = rclnodejs.createService(nodeHandle, serviceName, type.interfaceName, type.pkgName, qos);
  return new Service(handle, serviceName, typeClass, callback, qos);
}

/**
fork icon65
star icon0
watch icon2

Other functions in bindings

Sorted by popularity

function icon

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