AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
RotationalTranslationalConnector.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
22
23namespace agxPowerLine
24{
25
36 {
37 public:
42
43 virtual bool postUpdate(agx::Real timeStep) override;
44
46 const agx::Real timeStep, agx::Real& compliance, agx::Real& damping) override;
47
48 using Connector::connect;
49
55
59 void setShaftRadius(agx::Real shaftRadius);
60 virtual agx::Real getShaftRadius() const;
61
64
68 virtual bool store(agxStream::StorageStream& str) const override;
69
73 virtual bool restore(agxStream::StorageStream& str) override;
74
76
77 protected:
79#ifndef SWIGPYTHON
80 virtual bool connect( PhysicalDimension* inputDimension, Side inputSide, Side outputSide, PhysicalDimension* outputDimension ) override;
81#endif
82 protected:
86 };
87
89
90
91
97 {
98 public:
103
105
106 virtual agx::Real calculateViolation( ) const override;
107
111 virtual bool store( agxStream::StorageStream& str ) const override;
112
116 virtual bool restore( agxStream::StorageStream& str ) override;
117
119 };
120
122
123}
#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
#define AGXMODEL_EXPORT
Links two connections together.
Definition: Connector.h:53
Constraint implementation for constraining a number of physical dimensions of the same type.
Constrains a rotational degree of freedom with a translational degree of freedom with a non-holonomic...
void setShaftRadius(agx::Real shaftRadius)
Set the radius of the shaft.
virtual bool postUpdate(agx::Real timeStep) override
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculate the compliance and damping according to the connector properties (efficiency,...
virtual bool connect(PhysicalDimension *inputDimension, Side inputSide, Side outputSide, PhysicalDimension *outputDimension) override
virtual agxPowerLine::PhysicalDimensionMultiBodyConstraintImplementation * createConstraint() override
Create the constraint.
RotationalTranslationalConnector()
Create a connector connecting a RotationalDimension with a TranslationalDimension.
This class can be used to connect the position of a rotational and a positional unit.
virtual agx::RegularizationParameters::VariableType calculateComplianceAndDamping(const agx::Real timeStep, agx::Real &compliance, agx::Real &damping) override
Calculate the compliance and damping according to the connector properties (efficiency,...
virtual bool store(agxStream::StorageStream &str) const override
Stores internal data into stream.
RotationalTranslationalHolonomicConnector()
Create a connector connecting a RotationalDimension with a TranslationalDimension.
virtual agx::Real calculateViolation() const override
calculate violation for constraint
virtual bool restore(agxStream::StorageStream &str) override
Restores internal data from stream.
Abstract base class for storing/restoring a line/drums with version control.
Definition: StorageStream.h:49
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:30
agxPowerLine contains a collection of connected components that transport power across a system.
Definition: MotorUnit.h:24
agx::ref_ptr< RotationalTranslationalHolonomicConnector > RotationalTranslationalHolonomicConnectorRef
agx::ref_ptr< RotationalTranslationalConnector > RotationalTranslationalConnectorRef
double Real
Definition: Real.h:41