asyncx_ros2.aio_to_ros_future

asyncx_ros2.aio_to_ros_future(future)[source]

Wrap a asyncio.Future object in a rclpy.task.Future.

Parameters

future (asyncio.Future[TResult]) – A asyncio.Future object

Returns

A rclpy.task.Future object that wraps the given future

Return type

ROSFuture