On this page

GetParameterTypesServiceServer QML Type

Answers rcl_interfaces::srv::GetParameterTypes ROS 2 service requests. More...

Import Statement: import QtRos2.RclInterfaces
Inherits:

ServiceServerBase

Status: Experimental Extension

Properties

Signals

Detailed Description

Set the topic and node properties and provide a handler function to answer requests. The handler is invoked as (request, reply) => response; it may return the response value directly, or return undefined and call reply.send(response) later for work that takes time.

Alternatively, answer declaratively without a handler: bind the response property, and each incoming request is answered with its current value. The binding may depend on request (updated before the response is read) and on state changed in onRequestReceived.

The response is a QByteArray value.

Property Documentation

request : list<string>

The payload of the most recent incoming request. Updated before requestReceived is emitted and before the handler or the response binding runs, so both can rely on it.

response : QByteArray

The declarative response. When no handler is set, each incoming request is answered immediately with the current value of this property. Bindings re-evaluate synchronously, so the expression may depend on request and on state updated in onRequestReceived — both are already up to date when the response is sent. A callable handler takes precedence over this property.

Signal Documentation

requestReceived(list<string> request)

Emitted when a request arrives, before the handler is invoked. request is a list<string> value.

Note: The corresponding handler is onRequestReceived.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.