AGX Dynamics
2.37.2.0
PrismaticUniversalJoint.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2024. Algoryx Simulation AB.
3
4
All AGX source code, intellectual property, documentation, sample code,
5
tutorials, scene files and technical white papers, are copyrighted, proprietary
6
and confidential material of Algoryx Simulation AB. You may not download, read,
7
store, distribute, publish, copy or otherwise disseminate, use or expose this
8
material unless having a written signed agreement with Algoryx Simulation AB, or having been
9
advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10
valid commercial license from Algoryx Simulation AB.
11
12
Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13
from using this software, unless otherwise stated in written agreements with
14
Algoryx Simulation AB.
15
*/
16
17
#ifndef AGX_PRISMATIC_UNIVERSAL_JOINT_H
18
#define AGX_PRISMATIC_UNIVERSAL_JOINT_H
19
20
#include <
agx/AngularJointBase.h
>
21
22
namespace
agx
23
{
28
class
AGXPHYSICS_EXPORT
PrismaticUniversalJoint
:
public
agx::AngularJointBase
29
{
30
public
:
31
36
enum
DOF
{
37
ALL_DOF = -1,
38
ROTATIONAL_1 = 0,
39
TRANSLATIONAL_1 = 1,
40
TRANSLATIONAL_2 = 2,
41
NUM_DOF = 3
42
};
43
50
enum
CONTROLLER_DOF
{
51
NUM_CONTROLLER_OFFSET = 1,
52
ROTATIONAL_CONTROLLER_1 = 0 + NUM_CONTROLLER_OFFSET,
53
ROTATIONAL_CONTROLLER_2 = 1 + NUM_CONTROLLER_OFFSET,
54
TRANSLATIONAL_CONTROLLER_1 = 2 + NUM_CONTROLLER_OFFSET,
55
NUM_CONTROLLER_DOF = 3
56
57
};
58
67
PrismaticUniversalJoint
(
agx::RigidBody
* rb1,
agx::Frame
* rb1AttachmentFrame,
agx::RigidBody
* rb2 =
nullptr
,
agx::Frame
* rb2AttachmentFrame =
nullptr
);
68
72
virtual
int
getNumDOF()
const override
;
73
86
virtual
UInt
getNumControllerOffset()
const override
;
87
91
virtual
int
getNumControllers()
const override
;
92
93
AGXSTREAM_DECLARE_SERIALIZABLE
(
agx::PrismaticUniversalJoint
);
94
95
protected
:
96
PrismaticUniversalJoint
();
97
virtual
~
PrismaticUniversalJoint
();
98
99
};
100
101
typedef
ref_ptr<PrismaticUniversalJoint>
PrismaticUniversalJointRef
;
102
103
104
105
}
// namespace agx
106
#endif
agx::AngularJointBase
An angular joint is defined by having 2 rotational degrees of freedom.
Definition:
AngularJointBase.h:31
agx::PrismaticUniversalJoint::DOF
DOF
Enum used for specifying which Degree of Freedom (DOF) that should be accessed in calls to for exampl...
Definition:
PrismaticUniversalJoint.h:36
AGXPHYSICS_EXPORT
#define AGXPHYSICS_EXPORT
agx::PrismaticUniversalJoint
A Prismatic Universal Joint has two translational dof's constrained.
Definition:
PrismaticUniversalJoint.h:28
agx::UInt
uint32_t UInt
Definition:
Integer.h:34
agx
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
Definition:
AddedMassInteraction.h:22
agx::ref_ptr
Smart pointer for handling referenced counted objects.
Definition:
ref_ptr.h:29
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:54
agx::PrismaticUniversalJoint::CONTROLLER_DOF
CONTROLLER_DOF
Enum to access the controllers for unconstrained DOF's of the constraint.
Definition:
PrismaticUniversalJoint.h:50
agx::PrismaticUniversalJointRef
ref_ptr< PrismaticUniversalJoint > PrismaticUniversalJointRef
Definition:
PrismaticUniversalJoint.h:101
agx::Frame
The object defining a frame of reference and providing transformations operations.
Definition:
Frame.h:67
AGXSTREAM_DECLARE_SERIALIZABLE
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
Definition:
Serializable.h:207
AngularJointBase.h
include
agx
PrismaticUniversalJoint.h
Generated on Sun Jan 28 2024 11:19:33 for AGX Dynamics by
1.8.13