Biorbd Release_1.13.0
Loading...
Searching...
No Matches
SoftContactSphere.h
1#ifndef BIORBD_RIGIDBODY_SOFT_CONTACT_SPHERE_H
2#define BIORBD_RIGIDBODY_SOFT_CONTACT_SPHERE_H
3
4#include "biorbdConfig.h"
5
6#include "RigidBody/SoftContactNode.h"
7
8namespace BIORBD_NAMESPACE {
9
10namespace rigidbody {
11
16 public:
21
27
41 const utils::Scalar& x,
42 const utils::Scalar& y,
43 const utils::Scalar& z,
44 const utils::Scalar& radius,
45 const utils::Scalar& stiffness,
46 const utils::Scalar& damping,
47 const utils::Scalar& muStatic,
48 const utils::Scalar& muDynamic,
49 const utils::Scalar& muViscous);
50
62 const utils::Vector3d& other,
63 const utils::Scalar& radius,
64 const utils::Scalar& stiffness,
65 const utils::Scalar& damping,
66 const utils::Scalar& muStatic,
67 const utils::Scalar& muDynamic,
68 const utils::Scalar& muViscous);
69
86 const utils::Scalar& x,
87 const utils::Scalar& y,
88 const utils::Scalar& z,
89 const utils::Scalar& radius,
90 const utils::Scalar& stiffness,
91 const utils::Scalar& damping,
92 const utils::Scalar& muStatic,
93 const utils::Scalar& muDynamic,
94 const utils::Scalar& muViscous,
95 const utils::String& name,
96 const utils::String& parentName,
97 int parentID);
98
113 const utils::Vector3d& node,
114 const utils::Scalar& radius,
115 const utils::Scalar& stiffness,
116 const utils::Scalar& damping,
117 const utils::Scalar& muStatic,
118 const utils::Scalar& muDynamic,
119 const utils::Scalar& muViscous,
120 const utils::String& name,
121 const utils::String& parentName,
122 int parentID);
123
129
134 void DeepCopy(const SoftContactSphere& other);
135
140 void setRadius(const utils::Scalar& radius);
141
146 utils::Scalar radius() const;
147
152 void setStiffness(const utils::Scalar& stiffness);
153
158 utils::Scalar stiffness() const;
159
164 void setDamping(const utils::Scalar& damping);
165
170 utils::Scalar damping() const;
171
176 void setMuStatic(const utils::Scalar& muStatic);
177
182 utils::Scalar muStatic() const;
183
188 void setMuDynamic(const utils::Scalar& muDynamic);
189
194 utils::Scalar muDynamic() const;
195
200 void setMuViscous(const utils::Scalar& muViscous);
201
206 utils::Scalar muViscous() const;
207
212 void setTransitionVelocity(const utils::Scalar& transitionVelocity);
213
218 utils::Scalar transitionVelocity() const;
219
230 const utils::Vector3d& x,
231 const utils::Vector3d& dx,
232 const utils::Vector3d& angularVelocity) const;
233
239 virtual utils::Vector3d applicationPoint(const utils::Vector3d& x) const;
240
241 protected:
245 void setType();
246
247 std::shared_ptr<utils::Scalar>
249 std::shared_ptr<utils::Scalar>
251 std::shared_ptr<utils::Scalar>
253
254 std::shared_ptr<utils::Scalar>
256 std::shared_ptr<utils::Scalar>
258 std::shared_ptr<utils::Scalar>
260 std::shared_ptr<utils::Scalar>
263};
264
265} // namespace rigidbody
266} // namespace BIORBD_NAMESPACE
267
268#endif // BIORBD_RIGIDBODY_SOFT_CONTACT_SPHERE_H
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.
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.
Definition Node.cpp:43
Wrapper around the std::string class with augmented functionality.
Definition String.h:18
Wrapper around Eigen Vector3d and attach it to a parent.
Definition Vector3d.h:27