Biorbd
Release_1.13.0
Toggle main menu visibility
Loading...
Searching...
No Matches
WrappingSphere.h
1
#ifndef BIORBD_MUSCLES_WRAPPING_SPHERE_H
2
#define BIORBD_MUSCLES_WRAPPING_SPHERE_H
3
4
#include "biorbdConfig.h"
5
6
#include "InternalForces/WrappingObject.h"
7
8
namespace
BIORBD_NAMESPACE {
9
namespace
internal_forces {
13
class
BIORBD_API
WrappingSphere
:
public
WrappingObject
{
14
public
:
18
WrappingSphere
();
19
27
WrappingSphere
(
28
const
utils::Scalar& x,
29
const
utils::Scalar& y,
30
const
utils::Scalar& z,
31
const
utils::Scalar&
diameter
);
32
42
WrappingSphere
(
43
const
utils::Scalar& x,
44
const
utils::Scalar& y,
45
const
utils::Scalar& z,
46
const
utils::Scalar&
diameter
,
47
const
utils::String
&
name
,
48
const
utils::String
& parentName);
49
55
WrappingSphere
(
const
utils::Vector3d
& v,
const
utils::Scalar&
diameter
);
56
61
WrappingSphere
DeepCopy
()
const
;
62
67
void
DeepCopy
(
const
WrappingSphere
& other);
68
72
virtual
void
wrapPoints
(
73
const
utils::RotoTrans
&,
74
const
utils::Vector3d
&,
75
const
utils::Vector3d
&,
76
utils::Vector3d
&,
77
utils::Vector3d
&,
78
utils::Scalar* =
nullptr
) {}
79
83
virtual
void
wrapPoints
(
84
rigidbody::Joints
&,
85
const
rigidbody::GeneralizedCoordinates
&,
86
const
utils::Vector3d
&,
87
const
utils::Vector3d
&,
88
utils::Vector3d
&,
89
utils::Vector3d
&,
90
utils::Scalar* =
nullptr
) {}
91
95
virtual
void
96
wrapPoints
(
utils::Vector3d
&,
utils::Vector3d
&, utils::Scalar* =
nullptr
) {}
97
105
const
utils::RotoTrans
& RT(
106
rigidbody::Joints
& model,
107
const
rigidbody::GeneralizedCoordinates
& Q,
108
bool
updateKin =
true
);
109
114
void
setDiameter(
const
utils::Scalar& val);
115
120
const
utils::Scalar& diameter()
const
;
121
122
protected
:
123
std::shared_ptr<utils::Scalar>
m_dia
;
124
};
125
126
}
// namespace internal_forces
127
}
// namespace BIORBD_NAMESPACE
128
129
#endif
// BIORBD_MUSCLES_WRAPPING_SPHERE_H
BIORBD_NAMESPACE::internal_forces::WrappingObject::WrappingObject
WrappingObject()
Construct a wrapping object.
Definition
WrappingObject.cpp:9
BIORBD_NAMESPACE::internal_forces::WrappingSphere::wrapPoints
virtual void wrapPoints(const utils::RotoTrans &, const utils::Vector3d &, const utils::Vector3d &, utils::Vector3d &, utils::Vector3d &, utils::Scalar *=nullptr)
Not yet implemented.
Definition
WrappingSphere.h:72
BIORBD_NAMESPACE::internal_forces::WrappingSphere::WrappingSphere
WrappingSphere()
Construct a wrapping sphere.
Definition
WrappingSphere.cpp:9
BIORBD_NAMESPACE::internal_forces::WrappingSphere::DeepCopy
WrappingSphere DeepCopy() const
Deep copy of the wrapping sphere.
Definition
WrappingSphere.cpp:47
BIORBD_NAMESPACE::internal_forces::WrappingSphere::wrapPoints
virtual void wrapPoints(rigidbody::Joints &, const rigidbody::GeneralizedCoordinates &, const utils::Vector3d &, const utils::Vector3d &, utils::Vector3d &, utils::Vector3d &, utils::Scalar *=nullptr)
Not yet implemented.
Definition
WrappingSphere.h:83
BIORBD_NAMESPACE::internal_forces::WrappingSphere::m_dia
std::shared_ptr< utils::Scalar > m_dia
Diameter of the wrapping sphere.
Definition
WrappingSphere.h:123
BIORBD_NAMESPACE::internal_forces::WrappingSphere::diameter
const utils::Scalar & diameter() const
Return the diameter of the wrapping sphere.
Definition
WrappingSphere.cpp:71
BIORBD_NAMESPACE::internal_forces::WrappingSphere::wrapPoints
virtual void wrapPoints(utils::Vector3d &, utils::Vector3d &, utils::Scalar *=nullptr)
Not yet implemented.
Definition
WrappingSphere.h:96
BIORBD_NAMESPACE::rigidbody::GeneralizedCoordinates
Class GeneralizedCoordinates.
Definition
GeneralizedCoordinates.h:15
BIORBD_NAMESPACE::rigidbody::Joints
This is the core of the musculoskeletal model in biorbd.
Definition
Joints.h:48
BIORBD_NAMESPACE::utils::Node::name
const String & name() const
Return the name of the node.
Definition
Node.cpp:43
BIORBD_NAMESPACE::utils::RotoTrans
Homogenous matrix to describe translations and rotations simultaneously.
Definition
RotoTrans.h:33
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
InternalForces
WrappingSphere.h
Generated by
1.18.0