20#ifndef _GENERALIZED_INITIAL_POSITION_H_
21#define _GENERALIZED_INITIAL_POSITION_H_
23#include "mbsim/links/initial_condition.h"
33 std::string objectString;
34 std::vector<Index> indices;
41 void setObject(
Object *object_) {
object = object_; }
42 void setIndices(
const std::vector<Index> &indices_) { indices = indices_; }
43 void setValues(
const fmatvec::Vec &q0_) { q0 <<= q0_; }
45 void calcSize()
override;
47 void calccorrSize(
int j)
override;
49 void updateGeneralizedPositions()
override;
51 void updateg()
override;
52 void updateW(
int i=0)
override;
54 void updateWRef(fmatvec::Mat &WParent,
int j=0)
override;
56 void init(
InitStage stage,
const InitConfigSet &config)
override;
57 void initializeUsingXML(xercesc::DOMElement * element)
override;
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:260
Definition: generalized_initial_position.h:30
void calclaSize(int j) override
calculates size of contact force parameters
Definition: generalized_initial_position.cc:45
void updateWRef(fmatvec::Mat &WParent, int j=0) override
references to contact force direction matrix of dynamic system parent
Definition: generalized_initial_position.cc:73
void init(InitStage stage, const InitConfigSet &config) override
plots time series header
Definition: generalized_initial_position.cc:79
Definition: initial_condition.h:27
class for all objects having own dynamics and mass
Definition: object.h:42
namespace MBSim
Definition: bilateral_constraint.cc:30