AGX Dynamics  2.37.3.2
Steering.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 #pragma once
18 #include <agxVehicle/export.h>
20 #include <agx/Constraint.h>
21 
22 namespace agxVehicle
23 {
29 
30  class WheelJoint;
31 
46  {
47  public:
48 
54  void setSteeringAngle(agx::Real angle);
55 
59  agx::Real getSteeringAngle() const;
60 
64  agx::Real getMaximumSteeringAngle(agx::UInt side) const;
65 
70  const agxVehicle::SteeringParameters& getSteeringParameters() const;
71 
75  void render(class agxRender::RenderManager* mgr, float scale) const override;
76 
80  int getNumDOF() const override;
81 
83 
84  protected:
85  Steering();
86  virtual ~Steering();
87  class SteeringImplementation* m_impl;
88  };
89 
90 
91 
93  {
94  public:
101  BellCrank(WheelJoint* leftWheel, WheelJoint* rightWheel,
103 
104  BellCrank() = default;
106 
107  protected:
108  virtual ~BellCrank();
109  };
110 
111 
112 
114  {
115  public:
122  RackPinion(WheelJoint* leftWheel, WheelJoint* rightWheel,
124 
125  RackPinion() = default;
127 
128  protected:
129  virtual ~RackPinion();
130  };
131 
132 
133 
135  {
136  public:
144  Davis(WheelJoint* leftWheel, WheelJoint* rightWheel,
146 
147  Davis() = default;
149 
150  protected:
151  virtual ~Davis();
152  };
153 
154 
155 
157  {
158  public:
166  Ackermann(WheelJoint* leftWheel, WheelJoint* rightWheel,
168 
169  int getNumDOF() const override;
170 
171  Ackermann() = default;
173 
174  protected:
175  virtual ~Ackermann();
176  };
177 }
static SteeringParameters Davis()
Davis steering configuration parameters: phi0: 1.815 l: 0.14 alpha0: 1.32645 lc: -2.0 lr: 0.75 gear: 1.0 side: 0.
#define AGXVEHICLE_EXPORT
The base class for a constraint.
Definition: Constraint.h:88
#define AGX_DECLARE_POINTER_TYPES(type)
Definition: Referenced.h:254
static SteeringParameters RackPinion()
RackPinion steering configuration parameters: phi0: -1.885 l: 0.14 alpha0: 0.0 lc: 1...
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc...
A Steering mechanism is designed to align wheels simultaneously to minimize the slip, making them move along the tangents of concentric circles with radii determined by the distances between the wheels, and the distance between front and rear.
Definition: Steering.h:45
static SteeringParameters Ackermann()
Ackermann steering configuration parameters: phi0: -2.007 l: 0.16 alpha0: 0.0 lc: 0...
uint32_t UInt
Definition: Integer.h:34
The wheel constraint is designed to attach two bodies such that one of them is free to rotate about a...
Definition: WheelJoint.h:73
static SteeringParameters BellCrank()
Bell Crank steering configuration parameters: phi0: -1.885 l: 0.14 alpha0: 0.0 lc: 1...
This namespace contains classes related to vehicles dynamics.
class SteeringImplementation * m_impl
Definition: Steering.h:87
#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
double Real
Definition: Real.h:42