EmptyServiceClient QML Type
Qt service client for the Empty ROS 2 service. More...
| Import Statement: | import QtRos2.StdSrvs |
| Inherits: | |
| Status: | Experimental Extension |
Signals
- callFailed(string error)
- responseReceived()
Methods
- QJSValue callService()
Detailed Description
EmptyServiceClient calls a ROS 2 service. Set the topic and node properties, then call callService() to invoke the service.
Signal Documentation
callFailed(string error)
Emitted when the service call fails. error contains the error message.
Note: The corresponding handler is onCallFailed.
responseReceived()
Emitted when the service call completes successfully.
Note: The corresponding handler is onResponseReceived.
Method Documentation
QJSValue callService()
Calls the Empty ROS 2 service. Returns a JS promise that resolves or rejects with an error string. isServiceReady must be true before calling.
© 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.