Biorbd Release_1.13.0
Loading...
Searching...
No Matches
SoftContactNode.h
1#ifndef BIORBD_RIGIDBODY_SOFT_CONTACT_NODE_H
2#define BIORBD_RIGIDBODY_SOFT_CONTACT_NODE_H
3
4#include "biorbdConfig.h"
5
6#include "RigidBody/NodeSegment.h"
7#include "rbdl/rbdl_math.h"
8
9namespace BIORBD_NAMESPACE {
10
11namespace utils {
12class SpatialVector;
13}
14
15namespace rigidbody {
16class Joints;
19
23class BIORBD_API SoftContactNode : public rigidbody::NodeSegment {
24 public:
29
37 const utils::Scalar& x,
38 const utils::Scalar& y,
39 const utils::Scalar& z);
40
45 SoftContactNode(const utils::Vector3d& other);
46
57 const utils::Scalar& x,
58 const utils::Scalar& y,
59 const utils::Scalar& z,
60 const utils::String& name,
61 const utils::String& parentName,
62 int parentID);
63
72 const utils::Vector3d& node,
73 const utils::String& name,
74 const utils::String& parentName,
75 int parentID);
76
81 void DeepCopy(const SoftContactNode& other);
82
93 Joints& model,
95 const GeneralizedVelocity& Qdot,
96 bool updateKin = true);
97
108 const utils::Vector3d& x,
109 const utils::Vector3d& dx,
110 const utils::Vector3d& angularVelocity) const = 0;
111
118
119 protected:
123 void setType();
124
125 std::shared_ptr<std::pair<utils::Vector3d, utils::Vector3d>>
128};
129
130} // namespace rigidbody
131} // namespace BIORBD_NAMESPACE
132
133#endif // BIORBD_RIGIDBODY_SOFT_CONTACT_NODE_H
This is the core of the musculoskeletal model in biorbd.
Definition Joints.h:48
A point attached to a segment, generally speaking a skin marker.
Definition NodeSegment.h:20
std::shared_ptr< std::pair< utils::Vector3d, utils::Vector3d > > m_contactPlane
virtual utils::Vector3d computeForce(const utils::Vector3d &x, const utils::Vector3d &dx, const utils::Vector3d &angularVelocity) const =0
Get the force in a spatial vector at the center of mass of the underlying segment.
virtual utils::SpatialVector computeForceAtOrigin(Joints &model, const GeneralizedCoordinates &Q, const GeneralizedVelocity &Qdot, bool updateKin=true)
Get the force in a spatial vector at the origin of the world base coordinates.
virtual utils::Vector3d applicationPoint(const utils::Vector3d &x) const =0
Get the application point relative to the plane.
void setType()
Set the type of the contact node.
void DeepCopy(const SoftContactNode &other)
Deep copy of the contact node.
const String & name() const
Return the name of the node.
Definition Node.cpp:43
Wrapper of the Eigen::Matrix<double, 6, 1> or Casadi::MX(6, 1).
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