fastcat 0.13.15
C++ EtherCAT Device Command & Control Library
Loading...
Searching...
No Matches
fts.h
Go to the documentation of this file.
1#ifndef FASTCAT_FTS_H_
2#define FASTCAT_FTS_H_
3
4// Include related header (for cc files)
5
6// Include c then c++ libraries
7
8// Include external then project includes
9#include "fastcat/device_base.h"
10
11#define FC_FTS_N_DIMS 6
12
13namespace fastcat
14{
18class Fts : public DeviceBase
19{
20 public:
21 Fts();
27 bool ConfigFromYaml(const YAML::Node& node) override;
32 bool Read() override;
37 FaultType Process() override;
45 bool Write(DeviceCmd& cmd) override;
46
47 protected:
48 std::vector<std::vector<double>>
51 0};
53 0};
54
56 double max_force_[3] = {
57 0, 0, 0};
59 double max_torque_[3] = {
60 0, 0, 0};
62};
63
64} // namespace fastcat
65
66#endif
Definition device_base.h:20
Class implementing force-torque sensor through fastcat.
Definition fts.h:19
double sig_offset_[FC_FTS_N_DIMS]
Double array for storing tare offsets.
Definition fts.h:52
Fts()
Fts constructor.
Definition fts.cc:12
double max_torque_[3]
Definition fts.h:59
double max_force_[3]
these values, the entire fastcat system will fault.
Definition fts.h:56
bool ConfigFromYaml(const YAML::Node &node) override
Parses input yaml file to set sensor parameters.
Definition fts.cc:18
FaultType Process() override
Checks if forces and torques have exceeded acceptable maxima.
Definition fts.cc:135
bool Write(DeviceCmd &cmd) override
Commands device. Only FtsTareCmd is accepted currently.
Definition fts.cc:161
std::vector< std::vector< double > > calibration_
Calibration matrix of doubles for wrench calculation.
Definition fts.h:49
bool enable_fts_guard_fault_
Definition fts.h:55
bool Read() override
Calculates wrench (forces and torques) from input signals.
Definition fts.cc:102
double wrench_[FC_FTS_N_DIMS]
Array where wrench values are stored.
Definition fts.h:50
#define FC_FTS_N_DIMS
Definition fts.h:11
Definition device_base.h:18