nros C++ API
Lightweight ROS 2 client for embedded real-time systems (C++ headers)
Loading...
Searching...
No Matches
future.hpp File Reference

rclcpp::Future<T> — single-shot deferred result. More...

#include <cstdint>
#include <cstddef>
#include "rclcpp/result.hpp"
#include "rclcpp/size_bound.hpp"
#include "rclcpp/logging.hpp"
Include dependency graph for future.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  rclcpp::Future< T, Cap >
struct  rclcpp::detail::PendingList

Namespaces

namespace  rclcpp
namespace  rclcpp::detail
namespace  rclcpp_action

Typedefs

typedef int nros_cpp_ret_t
using rclcpp::detail::PumpFn = nros_cpp_ret_t (*)(void*)
using rclcpp::detail::TakeSeqFn = nros_cpp_ret_t (*)(void*, uint8_t*, size_t, size_t*, int64_t*)

Functions

nros_cpp_ret_t nros_cpp_spin_once (void *handle, int32_t timeout_ms)
uint64_t nros_cpp_time_ns (void)

Variables

constexpr int rclcpp::detail::MAX_STALE_DRAIN_PER_POLL = 8
constexpr int64_t rclcpp::detail::SEQUENCE_ID_UNKNOWN = (-9223372036854775807LL - 1)

Detailed Description

rclcpp::Future<T> — single-shot deferred result.

Typedef Documentation

◆ nros_cpp_ret_t

typedef int nros_cpp_ret_t

Function Documentation

◆ nros_cpp_spin_once()

nros_cpp_ret_t nros_cpp_spin_once ( void * handle,
int32_t timeout_ms )

◆ nros_cpp_time_ns()

uint64_t nros_cpp_time_ns ( void )

Monotonic time in nanoseconds. Used by Future::wait() to budget its spin loop by wall-clock, not iteration count (Phase 89.2).