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

rclcpp::Timer — periodic callback driven by the executor. More...

#include <cstdint>
#include <cstddef>
#include "rclcpp/result.hpp"
#include "rclcpp/detail/hosted_block.hpp"
#include "rclcpp/duration.hpp"
#include "rclcpp/detail/nros_cpp_ffi.h"
#include "rclcpp/clock.hpp"
#include "rclcpp/inplace_fn.hpp"
Include dependency graph for timer.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  Timer
class  rclcpp::TimerHandle
struct  rclcpp::TimerInfo
class  rclcpp::TimerOps

Namespaces

namespace  rclcpp
namespace  rclcpp::detail

Typedefs

using rclcpp::TimerBase = ::rclcpp::Timer
using rclcpp::TimerInfoCallbackType = InplaceFn<void(const TimerInfo&)>

Functions

**timer cancel ()
* RCLCPP_TRY (node.create_wall_timer(timer, 1000, on_timer))
*timer reset ()
ClockValuePtr rclcpp::detail::timer_clock (void *executor, size_t handle_id)

Variables

**rclcpp::Timer timer

Detailed Description

rclcpp::Timer — periodic callback driven by the executor.

Function Documentation

◆ cancel()

**timer cancel ( )

◆ RCLCPP_TRY()

* RCLCPP_TRY ( node. create_wall_timertimer, 1000, on_timer)

◆ reset()

*timer reset ( )

Variable Documentation

◆ timer

* * rclcpp::Timer timer