File size: 1,227 Bytes
ef17c16 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | // -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
// ex: set filetype=cpp softtabstop=4 shiftwidth=4 tabstop=4 cindent expandtab:
inline-header {
#include <sawIntuitiveResearchKit/generation.h>
}
class {
name arm_configuration;
namespace dvrk;
attribute CISST_EXPORT;
member {
name _generation;
type dvrk::generation;
visibility private;
default GENERATION_UNDEFINED;
accessors none;
}
member {
name kinematic;
type std::string;
visibility public;
}
member {
name mounting_pitch;
type double;
visibility public;
default 0.0;
}
inline-header {
public:
inline void set_generation(const dvrk::generation generation) {
m_generation = generation;
}
inline dvrk::generation generation(void) const {
if (m_generation == dvrk::GENERATION_UNDEFINED) {
CMN_LOG_INIT_ERROR << "dvrk::arm_configuration: trying to access generation before it is set"
<< std::endl;
exit(EXIT_FAILURE);
}
return m_generation;
}
}
}
|