Biorbd Release_1.13.0
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
8namespace BIORBD_NAMESPACE {
9namespace internal_forces {
13class BIORBD_API WrappingSphere : public WrappingObject {
14 public:
19
28 const utils::Scalar& x,
29 const utils::Scalar& y,
30 const utils::Scalar& z,
31 const utils::Scalar& diameter);
32
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
62
67 void DeepCopy(const WrappingSphere& other);
68
72 virtual void wrapPoints(
73 const utils::RotoTrans&,
74 const utils::Vector3d&,
75 const utils::Vector3d&,
78 utils::Scalar* = nullptr) {}
79
83 virtual void wrapPoints(
86 const utils::Vector3d&,
87 const 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,
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
virtual void wrapPoints(const utils::RotoTrans &, const utils::Vector3d &, const utils::Vector3d &, utils::Vector3d &, utils::Vector3d &, utils::Scalar *=nullptr)
Not yet implemented.
WrappingSphere DeepCopy() const
Deep copy of the wrapping sphere.
virtual void wrapPoints(rigidbody::Joints &, const rigidbody::GeneralizedCoordinates &, const utils::Vector3d &, const utils::Vector3d &, utils::Vector3d &, utils::Vector3d &, utils::Scalar *=nullptr)
Not yet implemented.
std::shared_ptr< utils::Scalar > m_dia
Diameter of the wrapping sphere.
const utils::Scalar & diameter() const
Return the diameter of the wrapping sphere.
virtual void wrapPoints(utils::Vector3d &, utils::Vector3d &, utils::Scalar *=nullptr)
Not yet implemented.
This is the core of the musculoskeletal model in biorbd.
Definition Joints.h:48
const String & name() const
Return the name of the node.
Definition Node.cpp:43
Homogenous matrix to describe translations and rotations simultaneously.
Definition RotoTrans.h:33
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