AGXDynamics
2.31.1.0
ElementarySteeringConstraint.h
Go to the documentation of this file.
1
/*
2
Copyright 2007-2021. 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
#pragma once
18
19
#include <
agx/ElementaryConstraint.h
>
20
21
namespace
agx
22
{
23
24
AGX_DECLARE_POINTER_TYPES
(
ElementaryAckermannSteering
);
25
26
class
ElementaryAckermannSteering
:
public
agx::ElementaryConstraint
27
{
28
public
:
29
ElementaryAckermannSteering
();
30
31
UInt
getJacobian
(
agx::Jacobian6DOFElement
*
/* G */
,
agx::UInt
/* numBlocks */
,
agx::UInt
/* row */
,
32
agx::GWriteState::Enum
/* writeState */
)
override
33
{
34
return
0;
35
}
36
37
UInt
getJacobian
(
agx::Jacobian6DOFElement
* G,
const
agx::Vec3u
writeIndices,
const
RigidBody
* wheel1Rb,
38
const
RigidBody
* wheel2Rb,
const
RigidBody
* chassisRb,
Vec3
n_31,
Vec3
n_32,
Real
f_1,
Real
f_2);
39
40
UInt
getViolation
(
agx::Real
* g,
agx::UInt
row)
override
;
41
42
protected
:
43
agx::RegularizationParameters
m_regParams
[1];
44
agx::Real
m_forces
[1];
45
agx::RangeReal
m_bounds
[1];
46
};
47
48
}
49
ElementaryConstraint.h
agx::ElementaryConstraint
Elementary constraint base class with interface and global constraint functionality.
Definition:
ElementaryConstraint.h:53
agx::Jacobian6DOFElementT
Definition:
Jacobian.h:104
agx::ElementaryAckermannSteering
Definition:
ElementarySteeringConstraint.h:26
agx::ElementaryAckermannSteering::getViolation
UInt getViolation(agx::Real *g, agx::UInt row) override
Returns the violation of this elementary constraint.
agx::ElementaryAckermannSteering::ElementaryAckermannSteering
ElementaryAckermannSteering()
AGX_DECLARE_POINTER_TYPES
#define AGX_DECLARE_POINTER_TYPES(type)
Definition:
Referenced.h:248
agx::ElementaryAckermannSteering::getJacobian
UInt getJacobian(agx::Jacobian6DOFElement *, agx::UInt, agx::UInt, agx::GWriteState::Enum) override
Returns the Jacobian of this elementary constraint.
Definition:
ElementarySteeringConstraint.h:31
agx::UInt
uint32_t UInt
Definition:
Integer.h:34
agx
Namespace agx contains the dynamics/math part of the AGX Dynamics API.
Definition:
AckermannSteering.h:21
agx::ElementaryAckermannSteering::m_forces
agx::Real m_forces[1]
Definition:
ElementarySteeringConstraint.h:44
agx::ElementaryAckermannSteering::m_bounds
agx::RangeReal m_bounds[1]
Definition:
ElementarySteeringConstraint.h:45
agx::Range< Real >
agx::RigidBody
The rigid body class, combining a geometric model and a frame of reference.
Definition:
RigidBody.h:52
agx::Vec3T
A class holding 3 dimensional vectors and providing basic arithmetic.
Definition:
Vec3Template.h:45
agx::RegularizationParameters
All ghost variables have compliance and damping attributes.
Definition:
RegularizationParameters.h:29
agx::Real
double Real
Definition:
Real.h:42
agx::ElementaryAckermannSteering::m_regParams
agx::RegularizationParameters m_regParams[1]
Definition:
ElementarySteeringConstraint.h:43
include
agx
ElementarySteeringConstraint.h
Generated on Thu Jan 13 2022 19:49:28 for AGXDynamics by
1.8.13