Package org.ros.node.service
Interface ServiceServer<T,S>
- Type Parameters:
T- thisServiceServerresponds to requests of this typeS- thisServiceServerreturns responses of this type
- All Known Implementing Classes:
DefaultServiceServer
public interface ServiceServer<T,S>
Provides a ROS service.
- Author:
- damonkohler@google.com (Damon Kohler)
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddListener(ServiceServerListener<T, S> listener) Add aServiceServerListener.getName()getUri()voidshutdown()Stops the service and unregisters it.
-
Method Details
-
getName
GraphName getName()- Returns:
- the name of the
ServiceServer
-
getUri
URI getUri()- Returns:
- the
URIfor thisServiceServer
-
shutdown
void shutdown()Stops the service and unregisters it. -
addListener
Add aServiceServerListener.- Parameters:
listener- theServiceServerListenerto add
-