RosRequest

Inherits: RefCounted

A handle for an asynchronous ROS 2 service request.

Description

RosRequest is returned by RosClient.async_send_request(). it acts as a promise or future, allowing you to check if a response has been received or await its completion.

Methods

RosMsg

get_response()

bool

is_completed()


Signals

completed(response: RosMsg) 🔗

Emitted when the service response is received. The response message is passed as an argument.


Method Descriptions

RosMsg get_response() 🔗

Returns the response message received from the service. Returns null if the request is not yet completed.


bool is_completed() 🔗

Returns true if the service response has been received.