20 #ifndef CYLINDRICAL_GEAR_H_
21 #define CYLINDRICAL_GEAR_H_
23 #include "mbsim/contours/rigid_contour.h"
24 #include "mbsim/utils/boost_parameters.h"
25 #include "mbsim/utils/openmbv_utils.h"
26 #include <openmbvcppinterface/cylindricalgear.h>
45 void init(
InitStage stage,
const InitConfigSet &config)
override;
49 void setNumberOfTeeth(
int N_) { N = N_; }
50 int getNumberOfTeeth() {
return N; }
51 void setWidth(
double w_) { w = w_; }
52 double getWidth() {
return w; }
53 void setHelixAngle(
double be_) { be = be_; }
54 double getHelixAngle() {
return be; }
55 void setModule(
double m_) { m = m_; }
56 double getModule() {
return m; }
57 void setPressureAngle(
double al_) { al = al_; }
58 double getPressureAngle() {
return al; }
59 void setBacklash(
double b_) { b = b_; }
60 double getBacklash() {
return b; }
61 void setExternalToothed(
bool ext_=
true) { ext = ext_; }
62 bool getExternalToothed()
const {
return ext; }
65 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBV, tag, (optional (diffuseColor,(
const fmatvec::Vec3&),
"[-1;1;1]")(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
70 void initializeUsingXML(xercesc::DOMElement *element)
override;
77 double al{0.349065850398866};
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: cylindrical_gear.cc:33
basic class for rigid contours
Definition: rigid_contour.h:37
RigidContour(const std::string &name, Frame *R_=nullptr)
constructor
Definition: rigid_contour.h:43
Definition: openmbv_utils.h:49
~CylindricalGear() override=default
destructor
cylindrical gear contour
Definition: cylindrical_gear.h:34
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:235
cartesian frame on bodies used for application of e.g. links and loads
Definition: frame.h:39
Frame * R
coordinate system of contour
Definition: rigid_contour.h:130