ros2service.api package
Module contents
- class ros2service.api.ServiceNameCompleter(*, include_hidden_services_key=None)
Bases:
object
Callable returning a list of service names.
- class ros2service.api.ServicePrototypeCompleter(*, service_type_key=None)
Bases:
object
Callable returning a service prototype.
- class ros2service.api.ServiceTypeCompleter(*, service_name_key=None)
Bases:
object
Callable returning an existing service type or all service types.
- ros2service.api.get_service_class(node: rclpy.node.Node, service_name: str, include_hidden_services: bool)
Load service type module for the given service.
The service should be running for this function to find the service type. :param node: The node object of rclpy Node class. :param service_name: The fully-qualified name of the service. :param include_hidden_services: Whether to include hidden services while finding the list of currently running services. :return: the service class or None
- ros2service.api.get_service_names(*, node, include_hidden_services=False)
- ros2service.api.get_service_names_and_types(*, node, include_hidden_services=False)
- ros2service.api.service_type_completer(**kwargs)
Callable returning a list of service types.