Main Page
Namespaces
Classes
Files
File List
File Members
include
franka_hw
trigger_rate.h
Go to the documentation of this file.
1
// Copyright (c) 2017 Franka Emika GmbH
2
// Use of this source code is governed by the Apache-2.0 license, see LICENSE
3
#pragma once
4
5
#include <
ros/time.h
>
6
7
namespace
franka_hw
{
8
9
class
TriggerRate
{
10
public
:
11
explicit
TriggerRate
(
double
rate = 30.0);
12
bool
operator()
();
13
14
private
:
15
ros::Time
time_stamp_
;
16
double
period_
;
17
};
18
19
};
// namespace franka_hw
time.h
ros::Time
franka_hw
Definition:
control_mode.h:8
franka_hw::TriggerRate::period_
double period_
Definition:
trigger_rate.h:16
franka_hw::TriggerRate::time_stamp_
ros::Time time_stamp_
Definition:
trigger_rate.h:15
franka_hw::TriggerRate::TriggerRate
TriggerRate(double rate=30.0)
Definition:
trigger_rate.cpp:7
franka_hw::TriggerRate
Definition:
trigger_rate.h:9
franka_hw::TriggerRate::operator()
bool operator()()
Definition:
trigger_rate.cpp:9
franka_hw
Author(s): Franka Emika GmbH
autogenerated on Fri Oct 23 2020 03:47:05