RobotsIO
Loading...
Searching...
No Matches
SpatialVelocityBuffer.h
1/*
2 * Copyright (C) 2020 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#ifndef ROBOTSIO_SPATIALVELOCITYBUFFER_H
9#define ROBOTSIO_SPATIALVELOCITYBUFFER_H
10
11#include <Eigen/Dense>
12
13#include <RobotsIO/Utils/SpatialVelocity.h>
14
15namespace RobotsIO {
16 namespace Utils {
17 class SpatialVelocityBuffer;
18 }
19}
20
21
23{
24public:
26
27 virtual ~SpatialVelocityBuffer();
28
29 bool freeze(const bool blocking) override;
30
31 void set_twist(const Eigen::Vector3d& linear_velocity, const Eigen::Vector3d& angular_velocity, const double& elapsed_time = 0.0);
32
33 double elapsed_time() override;
34
35protected:
36 Eigen::VectorXd twist() override;
37
38 Eigen::VectorXd twist_;
39
40 double elapsed_time_;
41};
42
43#endif /* ROBOTSIO_SPATIALVELOCITYBUFFER_H */