Difference between revisions of "Autodock Model Tutorial"

From OpenMBD
Jump to: navigation, search
(Created page with "This page is a walk through of the simulation and 3D animation of the Autodocking procedure for a single-articulated vehicle. The page will explain the functionality of the Si...")
 
Line 1: Line 1:
This page is a walk through of the simulation and 3D animation of the Autodocking procedure for a single-articulated vehicle. The page will explain the functionality of the Simulation model and its components, and the connection between the 3D animation model and the simulation results. The result of this walk through is a visually attractive animation in which the 3-dimensional objects (tractor and trailer) visualise the results of the simulation model.  
+
This page is a walk through of the simulation and 3D animation of the Autodocking procedure for a single-articulated vehicle. The page will explain the functionality of the Simulation model and its components, and the connection between the 3D animation model and the simulation results. The result of this walk through is a visually attractive animation in which the 3-dimensional objects (tractor and trailer) visualise the results of the simulation model. The goal of the simulation model is to have the vehicle (truck) follow the reference path, which is an input to the system.  
  
== Top-Layer of the Model ==
+
== Simulation Model ==
 +
First, open the Simulink model (SAV_anim_semi_trailer.slx). The model will open at the top-layer. The top-layer of the model shows the four main components: Test, Control, Plant Model, and Animation model. The first three are part of the simulation model, and the fourth is the animation model. This can be seen below.
 +
 
 +
[[File:top_layer_sim_anim.jpeg|800px]]
 +
 
 +
=== Test ===
 +
Inside the test sub-component, several parameters are controlled that are specific to this situation. The vehicle follows a pre-defined reference path. Linked to this reference path, are the starting point, the switching point from forwards to reverse control, and the final location of the vehicle. For information about each of the components inside the test sub-component, descriptions have been added to the simulation model. (Double-click on the test block)
 +
 
 +
=== Control ===
 +
Inside the control sub-component, the steering angle required to follow the reference path is calculated. There are two controllers: forwards control and reverse control. As these controllers are nearly exactly the same, only the forwards control will be elaborated. To open the sub-component 'Controller_For_SAV', click the arrow in the bottom-left corner.
 +
 
 +
Here, there are three areas:
 +
* Semi_pos: This is where the steer-axle and the drive-axle are determined. For forwards are reverse, these are the inverse of each other. The steer-axle (the axle
 +
* Driver Forwards: This is the driver of this model. The inputs are velocity of the trailer, the position of the trailer, and the heading of the trailer. These inputs are then used to calculate the steering angle (at the steer-axle) necessary to keep the rear-axle of the trailer on the reference path. So, the goal of the controller is to let the real-axle of the trailer follow the path.
 +
**Inside the Driver Forwards component (double-click on the grey area), there are two errors defined. The lateral error (distance from the vehicle to the path) and heading error (difference between the reference heading and the vehicle heading).
 +
* Inverse Kinematics Forwards: The output from the controller is a steering angle for the rear-axle of the trailer. This axle, however, is not steerable. Therefore, the steering angle must be translated to the front axle of the tractor, which is steerable. The translation is done on the basis of kinematic equations. These equations will not be handled during this tutorial.
 +
 
 +
The first part of the simulation is in forwards control. Then, after t_for, the steering angle is taken from the reverse controller.
 +
 
 +
=== Plant Model ===

Revision as of 12:41, 16 May 2018

This page is a walk through of the simulation and 3D animation of the Autodocking procedure for a single-articulated vehicle. The page will explain the functionality of the Simulation model and its components, and the connection between the 3D animation model and the simulation results. The result of this walk through is a visually attractive animation in which the 3-dimensional objects (tractor and trailer) visualise the results of the simulation model. The goal of the simulation model is to have the vehicle (truck) follow the reference path, which is an input to the system.

Simulation Model

First, open the Simulink model (SAV_anim_semi_trailer.slx). The model will open at the top-layer. The top-layer of the model shows the four main components: Test, Control, Plant Model, and Animation model. The first three are part of the simulation model, and the fourth is the animation model. This can be seen below.

Top layer sim anim.jpeg

Test

Inside the test sub-component, several parameters are controlled that are specific to this situation. The vehicle follows a pre-defined reference path. Linked to this reference path, are the starting point, the switching point from forwards to reverse control, and the final location of the vehicle. For information about each of the components inside the test sub-component, descriptions have been added to the simulation model. (Double-click on the test block)

Control

Inside the control sub-component, the steering angle required to follow the reference path is calculated. There are two controllers: forwards control and reverse control. As these controllers are nearly exactly the same, only the forwards control will be elaborated. To open the sub-component 'Controller_For_SAV', click the arrow in the bottom-left corner.

Here, there are three areas:

  • Semi_pos: This is where the steer-axle and the drive-axle are determined. For forwards are reverse, these are the inverse of each other. The steer-axle (the axle
  • Driver Forwards: This is the driver of this model. The inputs are velocity of the trailer, the position of the trailer, and the heading of the trailer. These inputs are then used to calculate the steering angle (at the steer-axle) necessary to keep the rear-axle of the trailer on the reference path. So, the goal of the controller is to let the real-axle of the trailer follow the path.
    • Inside the Driver Forwards component (double-click on the grey area), there are two errors defined. The lateral error (distance from the vehicle to the path) and heading error (difference between the reference heading and the vehicle heading).
  • Inverse Kinematics Forwards: The output from the controller is a steering angle for the rear-axle of the trailer. This axle, however, is not steerable. Therefore, the steering angle must be translated to the front axle of the tractor, which is steerable. The translation is done on the basis of kinematic equations. These equations will not be handled during this tutorial.

The first part of the simulation is in forwards control. Then, after t_for, the steering angle is taken from the reverse controller.

Plant Model