Biorbd
Release_1.13.0
Toggle main menu visibility
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
9
namespace
BIORBD_NAMESPACE {
10
11
namespace
utils {
12
class
SpatialVector
;
13
}
14
15
namespace
rigidbody {
16
class
Joints
;
17
class
GeneralizedCoordinates
;
18
class
GeneralizedVelocity
;
19
23
class
BIORBD_API
SoftContactNode
:
public
rigidbody::NodeSegment
{
24
public
:
28
SoftContactNode
();
29
36
SoftContactNode
(
37
const
utils::Scalar& x,
38
const
utils::Scalar& y,
39
const
utils::Scalar& z);
40
45
SoftContactNode
(
const
utils::Vector3d
& other);
46
56
SoftContactNode
(
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
71
SoftContactNode
(
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
92
virtual
utils::SpatialVector
computeForceAtOrigin
(
93
Joints
& model,
94
const
GeneralizedCoordinates
& Q,
95
const
GeneralizedVelocity
& Qdot,
96
bool
updateKin =
true
);
97
107
virtual
utils::Vector3d
computeForce
(
108
const
utils::Vector3d
& x,
109
const
utils::Vector3d
& dx,
110
const
utils::Vector3d
& angularVelocity)
const
= 0;
111
117
virtual
utils::Vector3d
applicationPoint
(
const
utils::Vector3d
& x)
const
= 0;
118
119
protected
:
123
void
setType
();
124
125
std::shared_ptr<std::pair<utils::Vector3d, utils::Vector3d>>
126
m_contactPlane
;
128
};
129
130
}
// namespace rigidbody
131
}
// namespace BIORBD_NAMESPACE
132
133
#endif
// BIORBD_RIGIDBODY_SOFT_CONTACT_NODE_H
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::rigidbody::GeneralizedVelocity
Class GeneralizedVelocity.
Definition
GeneralizedVelocity.h:15
BIORBD_NAMESPACE::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition
Joints.h:48
BIORBD_NAMESPACE::rigidbody::NodeSegment
A point attached to a segment, generally speaking a skin marker.
Definition
NodeSegment.h:20
BIORBD_NAMESPACE::rigidbody::SoftContactNode::m_contactPlane
std::shared_ptr< std::pair< utils::Vector3d, utils::Vector3d > > m_contactPlane
Definition
SoftContactNode.h:126
BIORBD_NAMESPACE::rigidbody::SoftContactNode::SoftContactNode
SoftContactNode()
Construct a contact node.
Definition
SoftContactNode.cpp:14
BIORBD_NAMESPACE::rigidbody::SoftContactNode::computeForce
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.
BIORBD_NAMESPACE::rigidbody::SoftContactNode::computeForceAtOrigin
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.
Definition
SoftContactNode.cpp:77
BIORBD_NAMESPACE::rigidbody::SoftContactNode::applicationPoint
virtual utils::Vector3d applicationPoint(const utils::Vector3d &x) const =0
Get the application point relative to the plane.
BIORBD_NAMESPACE::rigidbody::SoftContactNode::setType
void setType()
Set the type of the contact node.
Definition
SoftContactNode.cpp:118
BIORBD_NAMESPACE::rigidbody::SoftContactNode::DeepCopy
void DeepCopy(const SoftContactNode &other)
Deep copy of the contact node.
Definition
SoftContactNode.cpp:71
BIORBD_NAMESPACE::utils::Node::name
const String & name() const
Return the name of the node.
Definition
Node.cpp:43
BIORBD_NAMESPACE::utils::SpatialVector
Wrapper of the Eigen::Matrix<double, 6, 1> or Casadi::MX(6, 1).
Definition
SpatialVector.h:21
BIORBD_NAMESPACE::utils::String
Wrapper around the std::string class with augmented functionality.
Definition
String.h:18
BIORBD_NAMESPACE::utils::Vector3d
Wrapper around Eigen Vector3d and attach it to a parent.
Definition
Vector3d.h:27
include
RigidBody
SoftContactNode.h
Generated by
1.18.0