asyncx_ros2.ros_to_aio_future
- asyncx_ros2.ros_to_aio_future(future, *, loop=None)[source]
Wrap a
rclpy.task.Futureobject in aasyncio.Future.- Parameters
future (ROSFuture) – A
rclpy.task.Futureobjectloop (Optional[asyncio.AbstractEventLoop]) – An event loop to wait for the completion of future
- Returns
A
asyncio.Futureobject that wraps the given future- Return type
asyncio.Future[Any]