20#ifndef _SINGLE_CONTACT_OBSERVER_H__
21#define _SINGLE_CONTACT_OBSERVER_H__
23#include "mbsim/observers/mechanical_link_observer.h"
24#include <mbsim/utils/openmbv_utils.h>
25#include <openmbvcppinterface/frame.h>
42 std::shared_ptr<OpenMBVInteractionArrow> ombvContact;
43 std::shared_ptr<OpenMBVFrictionArrow> ombvFriction;
48 std::vector<std::shared_ptr<OpenMBV::Arrow>>
contactArrow, frictionArrow;
54 double evalNone() {
return 1; }
55 double evalAbsoluteNormalForce();
56 double evalAbsoluteTangentialForce();
57 double evalStickSlip();
62 void init(
InitStage stage,
const InitConfigSet &config)
override;
65 void setOpenMBVContactPoints(
const std::shared_ptr<OpenMBV::Frame> &frame) {
70 void setOMBVNormalForce(
const std::shared_ptr<OpenMBVInteractionArrow> &arrow) { ombvContact=arrow; }
72 void setOMBVTangentialForce(
const std::shared_ptr<OpenMBVFrictionArrow> &arrow) { ombvFriction=arrow; }
InitStage
The stages of the initialization.
Definition: element.h:62
std::string name
name of element
Definition: element.h:260
Definition: mechanical_link_observer.h:33
static std::shared_ptr< CreateType > create()
namespace MBSim
Definition: bilateral_constraint.cc:30