AGXDynamics  2.31.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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 
20 
21 namespace agx
22 {
23 
25 
27  {
28  public:
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:
46  };
47 
48 }
49 
Elementary constraint base class with interface and global constraint functionality.
UInt getViolation(agx::Real *g, agx::UInt row) override
Returns the violation of this elementary constraint.
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:248
UInt getJacobian(agx::Jacobian6DOFElement *, agx::UInt, agx::UInt, agx::GWriteState::Enum) override
Returns the Jacobian of this elementary constraint.
uint32_t UInt
Definition: Integer.h:34
The rigid body class, combining a geometric model and a frame of reference.
Definition: RigidBody.h:52
A class holding 3 dimensional vectors and providing basic arithmetic.
Definition: Vec3Template.h:45
All ghost variables have compliance and damping attributes.
double Real
Definition: Real.h:42
agx::RegularizationParameters m_regParams[1]