The services object provides you access to all active ROS services in your system. This object follows the general ROSH convention for converting ROS names, i.e. to access the service /foo/bar/compute_plan, you would use:
You can also use mapping-style lookups on services, which is useful if you are dealing with string names:
Returns ServiceInfo object. Equivalent to rosservice info foo.
Get service definition for service. Equivalent to rosservice type foo | rossrv show.
Get ServiceDefinition class for service.
Call service with req message and return response.
- Call service using keyword arguments to create request message. Returns response.
- Call service using positional arguments to create request message. Returns response.
ServiceInfo instances are returned when you call info() on a ServiceNS instance.
Print user-friendly information about NodeNS instance.
- ROS name of service.
Node that provides service. This can be used like normal NodeNS instances.
- ROSRPC URI of service.