AGX Dynamics 2.38.0.2
Loading...
Searching...
No Matches
Steering.h
Go to the documentation of this file.
1/*
2Copyright 2007-2024. 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#include <agxVehicle/export.h>
20#include <agx/Constraint.h>
21
22namespace agxVehicle
23{
29
30 class WheelJoint;
31
46 {
47 public:
48
55
60
65
71
75 void render(class agxRender::RenderManager* mgr, float scale) const override;
76
80 int getNumDOF() const override;
81
83
84 protected:
86 virtual ~Steering();
87 class SteeringImplementation* m_impl;
88 };
89
90
91
93 {
94 public:
101 BellCrank(WheelJoint* leftWheel, WheelJoint* rightWheel,
102 SteeringParameters params = SteeringParameters::BellCrank());
103
104 BellCrank() = default;
106
107 protected:
108 virtual ~BellCrank();
109 };
110
111
112
114 {
115 public:
122 RackPinion(WheelJoint* leftWheel, WheelJoint* rightWheel,
123 SteeringParameters params = SteeringParameters::RackPinion());
124
125 RackPinion() = default;
127
128 protected:
129 virtual ~RackPinion();
130 };
131
132
133
135 {
136 public:
144 Davis(WheelJoint* leftWheel, WheelJoint* rightWheel,
145 SteeringParameters params = SteeringParameters::Davis());
146
147 Davis() = default;
149
150 protected:
151 virtual ~Davis();
152 };
153
154
155
157 {
158 public:
166 Ackermann(WheelJoint* leftWheel, WheelJoint* rightWheel,
167 SteeringParameters params = SteeringParameters::Ackermann());
168
169 int getNumDOF() const override;
170
171 Ackermann() = default;
173
174 protected:
175 virtual ~Ackermann();
176 };
177}
#define AGX_DECLARE_POINTER_TYPES(type)
Definition Referenced.h:254
#define AGXSTREAM_DECLARE_SERIALIZABLE(T)
Use this in a Serializable class to add the required methods Important: Use full namespace in the dec...
#define AGXVEHICLE_EXPORT
Class for managing the rendering of geometries, shapes, rigid bodies, constraints etc.
int getNumDOF() const override
Ackermann(WheelJoint *leftWheel, WheelJoint *rightWheel, SteeringParameters params=SteeringParameters::Ackermann())
Construct the Ackermann steering mechanism.
BellCrank(WheelJoint *leftWheel, WheelJoint *rightWheel, SteeringParameters params=SteeringParameters::BellCrank())
Construct the bell-crank steering geometry.
Davis(WheelJoint *leftWheel, WheelJoint *rightWheel, SteeringParameters params=SteeringParameters::Davis())
Construct the Davis steering mechanism.
RackPinion(WheelJoint *leftWheel, WheelJoint *rightWheel, SteeringParameters params=SteeringParameters::RackPinion())
Construct the Rack-pinion steering mechanism.
A Steering mechanism is designed to align wheels simultaneously to minimize the slip,...
Definition Steering.h:46
agx::Real getSteeringAngle() const
int getNumDOF() const override
agx::Real getMaximumSteeringAngle(agx::UInt side) const
void setSteeringAngle(agx::Real angle)
Set the value of the steering angle.
void render(class agxRender::RenderManager *mgr, float scale) const override
Setup debug rendering of the steering geometry.
const agxVehicle::SteeringParameters & getSteeringParameters() const
Warning: there is no setSteeringParameters() method, since that requires reinitialization.
class SteeringImplementation * m_impl
Definition Steering.h:87
The wheel constraint is designed to attach two bodies such that one of them is free to rotate about a...
Definition WheelJoint.h:73
The base class for a constraint.
Definition Constraint.h:89
This namespace contains classes related to vehicles dynamics.
uint64_t UInt
Definition Integer.h:27
double Real
Definition Real.h:42