[Documentation] [TitleIndex] [WordIndex

Services

services

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:

ServiceNS instances

info(service.foo)

str(service.foo)

rostype(service.foo)

services.foo(req)

services.foo(key1=value1, key2=value2)

services.foo(arg1, arg2...argN)

ServiceInfo instances

ServiceInfo instances are returned when you call info() on a ServiceNS instance.

str(service_info)

service_info.name

service_info.node

service_info.uri


2022-05-28 12:58