modelPartialTrajectoryModel

This model collects all the common parameters and interfaces of the trajectory models
Diagram of PartialTrajectoryModel

Parameters

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Types.RotationSequenceoutputSequencegp.defaultSequenceSequence of rotations in which the output pose is defined
Real[3]directionnormalize(stopPosition - startPosition)Unit vector that indicates the direction of motion
SI.DistancetotalDistancenorm(stopPosition - startPosition)Distance from initial point to final point
Frames.OrientationR_rel_startif rotationType_start == Modelica.Mechanics.MultiBody.Types.RotationTypes.RotationAxis then Frames.planarRotation(Modelica.Math.Vectors.normalizeWithAssert(n_start), from_deg(angle_start), 0) else if rotationType_start == Modelica.Mechanics.MultiBody.Types.RotationTypes.TwoAxesVectors then Frames.from_nxy(n_x_start, n_y_start) else Frames.axesRotations(sequence_start, from_deg(angles_start), zeros(3))Start: fixed rotation object from base frame to platform frame
Frames.OrientationR_rel_stopif rotationType_stop == Modelica.Mechanics.MultiBody.Types.RotationTypes.RotationAxis then Frames.planarRotation(Modelica.Math.Vectors.normalizeWithAssert(n_stop), from_deg(angle_stop), 0) else if rotationType_stop == Modelica.Mechanics.MultiBody.Types.RotationTypes.TwoAxesVectors then Frames.from_nxy(n_x_stop, n_y_stop) else Frames.axesRotations(sequence_stop, from_deg(angles_stop), zeros(3))Stop: fixed rotation object from base frame to platform frame
SI.Angle[3]startAnglesFrames.axesRotationsAngles(R_rel_start, outputSequence)Start: initial values of angles to rotate base frame around 'Sequence' axes into platform frame
SI.Angle[3]stopAnglesFrames.axesRotationsAngles(R_rel_stop, outputSequence)Stop: initial values of angles to rotate base frame around 'Sequence' axes into platform frame
SI.TimestopTimestartTime + transitionTimeoutput = stopPosition for time>=stopTime
Position
SI.Position[3]startPositiongp.initPlatformPosInitial platform position resolved in base frame
SI.Position[3]stopPositionstartPositionFinal platform position resolved in base frame
Orientation › Initial orientation
Modelica.Mechanics.MultiBody.Types.RotationTypesrotationType_startModelica.Mechanics.MultiBody.Types.RotationTypes.PlanarRotationSequenceStart: type of rotation description
Orientation › if rotationType_start = RotationAxis
Modelica.Mechanics.MultiBody.Types.Axisn_start{1, 0, 0}Start: axis of rotation in base frame (= same as in platform frame)
NonSI.Angle_degangle_start0Start: angle to rotate base frame around axis n_start into platform frame
Orientation › if rotationType_start = TwoAxesVectors
Modelica.Mechanics.MultiBody.Types.Axisn_x_start{1, 0, 0}Start: vector along x-axis of platform frame resolved in base frame
Modelica.Mechanics.MultiBody.Types.Axisn_y_start{0, 1, 0}Start: vector along y-axis of platform frame resolved in base frame
Orientation › if rotationType_start = PlanarRotationSequence
Modelica.Mechanics.MultiBody.Types.RotationSequencesequence_startgp.initSequenceStart: sequence of rotation axes
NonSI.Angle_deg[3]angles_startto_deg(gp.initAngles)Start: rotation angles around the axes defined in 'sequence_start'
Orientation › Final orientation
Modelica.Mechanics.MultiBody.Types.RotationTypesrotationType_stopModelica.Mechanics.MultiBody.Types.RotationTypes.PlanarRotationSequenceStop: type of rotation description
Orientation › if rotationType_stop = RotationAxis
Modelica.Mechanics.MultiBody.Types.Axisn_stopn_startStop: axis of rotation in base frame (= same as in platform frame)
NonSI.Angle_degangle_stopangle_startStop: angle to rotate base frame around axis n_stop into platform frame
Orientation › if rotationType_stop = TwoAxesVectors
Modelica.Mechanics.MultiBody.Types.Axisn_x_stopn_x_startStop: vector along x-axis of platform frame resolved in base frame
Modelica.Mechanics.MultiBody.Types.Axisn_y_stopn_y_startStop: vector along y-axis of platform frame resolved in base frame
Orientation › if rotationType_stop = PlanarRotationSequence
Modelica.Mechanics.MultiBody.Types.RotationSequencesequence_stopsequence_startStop: sequence of rotation axes
NonSI.Angle_deg[3]angles_stopangles_startStop: rotation angles around the axes defined in 'sequence_stop'
Time
SI.TimestartTime0output = startPosition for time<=startTime
SI.TimetransitionTime1Time required for the motion

Connectors

TypeNameDefaultDescription
Interfaces.Posepose

Components

TypeNameDefaultDescription
StewartPlatform.Components.GlobalParametersgpObject with all global parameters
SI.Position[3]positionCurrent position vector
SI.PositiondistanceCurrent distance from 'startPosition' to the current position
SI.Angle[3]anglesCurrent angles
Interfaces.PoseMuxmux
Modelica.Blocks.Sources.Constantconst_startTime
Modelica.Blocks.Sources.Constantconst_stopTime