AGX Dynamics
2.38.0.2
TranslationalActuatorConnector.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 AGXPOWERLINE_TRANSLATIONAL_ACTUATOR_CONNECTOR_H
18
#define AGXPOWERLINE_TRANSLATIONAL_ACTUATOR_CONNECTOR_H
19
20
#include <
agxPowerLine/ActuatorConnector.h
>
21
23
24
namespace
agxPowerLine
25
{
26
class
TranslationalActuator;
27
28
namespace
detail
29
{
30
AGX_DECLARE_POINTER_TYPES
(TranslationalActuatorConnector);
31
32
class
AGXMODEL_EXPORT
TranslationalActuatorConnector :
public
agxPowerLine::ActuatorConnector
33
{
34
public
:
35
TranslationalActuatorConnector(
agxPowerLine::TranslationalActuator
* actuator);
36
37
virtual
bool
getReverseOrder()
const override
;
38
39
AGXSTREAM_DECLARE_SERIALIZABLE
(agxPowerLine::detail::TranslationalActuatorConnector);
40
41
42
// Methods called by the rest of the PowerLine framework.
43
public
:
44
virtual
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
* createConstraint()
override
;
45
46
virtual
agx::RegularizationParameters::VariableType
calculateComplianceAndDamping(
47
const
agx::Real
timeStep,
agx::Real
& compliance,
agx::Real
& damping)
override
;
48
49
virtual
agx::Real
calculateViolation()
const override
;
50
51
virtual
bool
store(
agxStream::StorageStream
&
out
)
const override
;
52
virtual
bool
restore(
agxStream::StorageStream
&
in
)
override
;
53
54
protected
:
55
TranslationalActuatorConnector();
56
virtual
~TranslationalActuatorConnector() {}
57
58
private
:
59
agx::observer_ptr<agxPowerLine::TranslationalActuator>
m_translationalActuator;
60
};
61
}
62
}
63
65
66
#endif
agx::Real
double Real
Definition:
Real.h:42
agx::RegularizationParameters::VariableType
VariableType
Definition:
RegularizationParameters.h:32
agxStream::out
OutputRef< Serializable > out(const char *name, const Serializable *obj)
Return an object that contain the name and the object that should be serialized to an archive.
Definition:
OutputArchive.h:412
agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation
Constraint implementation for constraining a number of physical dimensions of the same type.
Definition:
PowerLineConstraints.h:149
agxStream::StorageStream
Abstract base class for storing/restoring a line/drums with version control.
Definition:
StorageStream.h:48
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
agx::observer_ptr
Smart pointer for observed objects, that automatically set pointers to them to null when they deleted...
Definition:
observer_ptr.h:60
agxStream::in
InputRef< T > in(const char *name, T &obj)
Create an object with a name and a reference to the object that should be restored (usually a pointer...
Definition:
InputArchive.h:399
ActuatorConnector.h
agxPowerLine::ActuatorConnector
Definition:
ActuatorConnector.h:40
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:254
agxPowerLine
agxPowerLine contains a collection of connected components that transport power across a system.
Definition:
MotorUnit.h:23
agxPowerLine::TranslationalActuator
Definition:
Actuator1DOF.h:512
AGXMODEL_EXPORT
#define AGXMODEL_EXPORT
Definition:
agxModel/export.h:42
include
agxPowerLine
detail
TranslationalActuatorConnector.h
Generated on Sun Sep 1 2024 11:18:58 for AGX Dynamics by
1.8.17