registerService method
- String service
inherited
The following section is an implementation of the Master API from here: http://wiki.ros.org/ROS/Master_API
2
2.1 register / unregister methods
Registers node by nodeName as a provider of the specified service
service
is the fully qualified name of the service
serviceAPI
is the ROSRPC Service URI
xmlRpcUri is the XML-RPC URI of the caller node
Returns an int that can be ignored
Implementation
/// Registers node by [nodeName] as a provider of the specified [service]
///
/// [service] is the fully qualified name of the service
/// `serviceAPI` is the ROSRPC Service URI
/// [xmlRpcUri] is the XML-RPC URI of the caller node
///
/// Returns an int that can be ignored
Future<void> registerService(
String service,
) async {
await _call('registerService', [
nodeName,
service,
NetworkUtils.formatServiceUri(tcpRosPort),
xmlRpcUri
]);
}