20 #ifndef _INVERSE_KINEMATICS_CONSTRAINT_OBSERVER_H__ 21 #define _INVERSE_KINEMATICS_CONSTRAINT_OBSERVER_H__ 23 #include "mbsim/observers/observer.h" 25 #include <mbsim/utils/boost_parameters.h> 26 #include <mbsim/utils/openmbv_utils.h> 30 class InverseKinematicsConstraint;
35 std::string saved_constraint;
36 std::shared_ptr<OpenMBVArrow> ombv;
37 std::vector<std::shared_ptr<OpenMBV::Arrow>> openMBVForce, openMBVMoment;
42 double evalNone(
int i) {
return 1; }
43 double evalAbsoluteForce(
int i);
44 double evalAbsoluteMoment(
int i);
50 void init(
InitStage stage,
const InitConfigSet &config)
override;
52 void initializeUsingXML(xercesc::DOMElement *element)
override;
54 BOOST_PARAMETER_MEMBER_FUNCTION( (
void), enableOpenMBV, tag, (optional (scaleLength,(
double),1)(scaleSize,(
double),1)(referencePoint,(OpenMBVArrow::ReferencePoint),OpenMBVArrow::toPoint)(colorRepresentation,(OpenMBVArrow::ColorRepresentation),OpenMBVArrow::none)(minimalColorValue,(
double),0)(maximalColorValue,(
double),1)(diffuseColor,(
const fmatvec::Vec3&),fmatvec::Vec3(std::vector<double>{-1,1,1}))(transparency,(
double),0)(pointSize,(
double),0)(lineWidth,(
double),0))) {
55 ombv = std::shared_ptr<OpenMBVArrow>(
new OpenMBVArrow(scaleLength,scaleSize,OpenMBVArrow::toHead,referencePoint,colorRepresentation,minimalColorValue,maximalColorValue,diffuseColor,transparency,pointSize,lineWidth));
Definition: openmbv_utils.h:79
InitStage
The stages of the initialization.
Definition: element.h:62
void plot() override
plots time dependent data
Definition: inverse_kinematics_constraint_observer.cc:97
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: inverse_kinematics_constraint_observer.cc:45
std::string name
name of element
Definition: element.h:235
Definition: inverse_kinematics_constraint_observer.h:32
Inverse kinematics contraint.
Definition: inverse_kinematics_constraint.h:36
Definition: observer.h:26
namespace MBSim
Definition: eigenanalyzer.cc:47