modelPathPlanning6

Generate reference angles for fastest kinematic movement

Extends from Blocks.Icons.Block (Basic graphical layout of input/output block).

Information

Given

  • start and end angles of every axis
  • maximum speed of every axis
  • maximum acceleration of every axis

this component computes the fastest movement under the given constraints. This means, that:

  1. Every axis accelerates with the maximum acceleration until the maximum speed is reached.
  2. Drives with the maximum speed as long as possible.
  3. Decelerates with the negative of the maximum acceleration until rest.

The acceleration, constant velocity and deceleration phase are determined in such a way that the movement starts form the start angles and ends at the end angles. The output of this block are the computed angles, angular velocities and angular acceleration and this information is stored as reference motion on the controlBus of the r3 robot.

Parameters

TypeNameDefaultDescription
Integernaxis6Number of driven axis
Modelica.Units.NonSI.Angle_deg[naxis]angleBegDegzeros(naxis)Start angles
Modelica.Units.NonSI.Angle_deg[naxis]angleEndDegones(naxis)End angles
SI.AngularVelocity[naxis]speedMaxfill(3, naxis)Maximum axis speed
SI.AngularAcceleration[naxis]accMaxfill(2.5, naxis)Maximum axis acceleration
SI.TimestartTime0Start time of movement
SI.TimeswingTime0.5Additional time after reference motion is in rest before simulation is stopped
SI.Angle[:]angleBegCv.from_deg(angleBegDeg)Start angles
SI.Angle[:]angleEndCv.from_deg(angleEndDeg)End angles

Connectors

TypeNameDefaultDescription
ControlBuscontrolBus

Components

TypeNameDefaultDescription
Modelica.Blocks.Sources.KinematicPTP2path
PathToAxisControlBuspathToAxis1
PathToAxisControlBuspathToAxis2
PathToAxisControlBuspathToAxis3
PathToAxisControlBuspathToAxis4
PathToAxisControlBuspathToAxis5
PathToAxisControlBuspathToAxis6
Blocks.Logical.TerminateSimulationterminateSimulation