1#ifndef BIORBD_RIGIDBODY_SOFT_CONTACT_SPHERE_H
2#define BIORBD_RIGIDBODY_SOFT_CONTACT_SPHERE_H
4#include "biorbdConfig.h"
6#include "RigidBody/SoftContactNode.h"
8namespace BIORBD_NAMESPACE {
41 const utils::Scalar& x,
42 const utils::Scalar& y,
43 const utils::Scalar& z,
44 const utils::Scalar&
radius,
63 const utils::Scalar&
radius,
86 const utils::Scalar& x,
87 const utils::Scalar& y,
88 const utils::Scalar& z,
89 const utils::Scalar&
radius,
114 const utils::Scalar&
radius,
146 utils::Scalar
radius()
const;
247 std::shared_ptr<utils::Scalar>
249 std::shared_ptr<utils::Scalar>
251 std::shared_ptr<utils::Scalar>
254 std::shared_ptr<utils::Scalar>
256 std::shared_ptr<utils::Scalar>
258 std::shared_ptr<utils::Scalar>
260 std::shared_ptr<utils::Scalar>
A point attached to a contact node, generally speaking a skin marker.
utils::Scalar damping() const
Return the value of the damping.
std::shared_ptr< utils::Scalar > m_damping
The damping factor of the contact sphere.
SoftContactSphere DeepCopy() const
Deep copy of the contact node.
utils::Scalar muStatic() const
Return the value of the muStatic.
SoftContactSphere()
Construct a contact node.
utils::Scalar radius() const
Return the value of the radius.
void setTransitionVelocity(const utils::Scalar &transitionVelocity)
Set a new value for the transitionVelocity.
virtual utils::Vector3d applicationPoint(const utils::Vector3d &x) const
Get the application point relative to the plane.
std::shared_ptr< utils::Scalar > m_muViscous
Vicous coefficient of friction (mu).
std::shared_ptr< utils::Scalar > m_transitionVelocity
std::shared_ptr< utils::Scalar > m_muStatic
Static coefficient of friction (mu).
utils::Scalar muViscous() const
Return the value of the muViscous.
void setType()
Set the type of the contact node.
void setDamping(const utils::Scalar &damping)
Set a new value for the damping.
utils::Scalar transitionVelocity() const
Return the value of the transitionVelocity.
std::shared_ptr< utils::Scalar > m_radius
The radius of the contact sphere.
std::shared_ptr< utils::Scalar > m_muDynamic
Dynamic coefficient of friction (mu).
void setMuStatic(const utils::Scalar &muStatic)
Set a new value for the muStatic.
void setMuDynamic(const utils::Scalar &muDynamic)
Set a new value for the muDynamic.
void setRadius(const utils::Scalar &radius)
Set a new value for the radius.
utils::Scalar muDynamic() const
Return the value of the muDynamic.
virtual utils::Vector3d computeForce(const utils::Vector3d &x, const utils::Vector3d &dx, const utils::Vector3d &angularVelocity) const
Get the force in a spatial vector at the center of mass of the underlying segment.
void setStiffness(const utils::Scalar &stiffness)
Set a new value for the stiffness.
utils::Scalar stiffness() const
Return the value of the stiffness.
std::shared_ptr< utils::Scalar > m_stiffness
The stiffness of the contact sphere.
void setMuViscous(const utils::Scalar &muViscous)
Set a new value for the muViscous.
const String & name() const
Return the name of the node.
Wrapper around the std::string class with augmented functionality.
Wrapper around Eigen Vector3d and attach it to a parent.