modelPR

PR Mechanism

Extends from Servomechanisms.Utilities.IconNameB.

Information

General

This class models a PR mechanism.

Implementation

It uses RLink and PLink elements.

Notes

  • The first joint is fixed in the origin.
  • By default the revolute joint axis is the z axis (rotation axis in direction
    n=[0,0,1]
    ), the prismatic joint axis is the x axis
    n=[1,0,0]
    and gravity is in direction
    n=[0,-1,0]
  • The generalized coordinates theta and d are the angle in radians and distance in meters respectively.
  • The interfaces are Modelica.Mechanics.Rotational and Modelica.Mechanics.Translational
  • The mechanical parameters of each link are editable (dimensions, mass, etc)

Example

Parameters

TypeNameDefaultDescription
Stringshape1"box"shape of visualizer:"shape", "box", "cylinder"
Modelica.Mechanics.MultiBody.Types.Axisn1{1, 0, 0}Axis of rotation resolved in frame_a (= same as in frame_b)
Stringshape2"box"shape of visualizer:"shape", "box", "cylinder"
Modelica.Mechanics.MultiBody.Types.Axisn2{0, 0, 1}Axis of rotation resolved in frame_a (= same as in frame_b)
SI.Accelerationg9.81Constant gravity acceleration
if shape
SI.Position[3]r1Vector from frame_a to frame_b resolved in frame_a
SI.Position[3]r_CM1Vector from frame_a to center of mass, resolved in frame_a
SI.Massm1Mass of rigid body
SI.LengthshapeLength11
SI.DistanceshapeWidth1boxLength1/20
SI.DistanceshapeHeight1boxWidth1
StringshapeType1"modelica://Servomechanisms//Resources//b2.dxf"Type of shape
Realextra11Additional parameter depending on shapeType (see docu of Visualizers.Advanced.Shape)
SI.Position[3]r2Vector from frame_a to frame_b resolved in frame_a
SI.Position[3]r_CM2Vector from frame_a to center of mass, resolved in frame_a
SI.Massm2Mass of rigid body
SI.LengthshapeLength21
SI.DistanceshapeWidth2boxLength2/20
SI.DistanceshapeHeight2boxWidth2
StringshapeType2"modelica://Servomechanisms//Resources//b2.dxf"Type of shape
Realextra21Additional parameter depending on shapeType (see docu of Visualizers.Advanced.Shape)
if shape › Inertia tensor (resolved in center of mass, parallel to frame_a)
SI.InertiaI_1110.001(1,1) element of inertia tensor
SI.InertiaI_2210.001(2,2) element of inertia tensor
SI.InertiaI_3310.001(3,3) element of inertia tensor
SI.InertiaI_2110(2,1) element of inertia tensor
SI.InertiaI_3110(3,1) element of inertia tensor
SI.InertiaI_3210(3,2) element of inertia tensor
SI.InertiaI_1120.001(1,1) element of inertia tensor
SI.InertiaI_2220.001(2,2) element of inertia tensor
SI.InertiaI_3320.001(3,3) element of inertia tensor
SI.InertiaI_2120(2,1) element of inertia tensor
SI.InertiaI_3120(3,1) element of inertia tensor
SI.InertiaI_3220(3,2) element of inertia tensor
if box
SI.LengthboxLength11
SI.DistanceboxWidth1boxLength1/20
SI.DistanceboxHeight1boxWidth1
SI.LengthboxLength21
SI.DistanceboxWidth2boxLength2/20
SI.DistanceboxHeight2boxWidth2
if cylinder
SI.LengthcylinderLength11
SI.DistancecylinderDiameter1cylinderLength1/20
SI.LengthcylinderLength21
SI.DistancecylinderDiameter2cylinderLength2/20
Parameters only for cylinder and box
SI.Densitydensity17700Density of link (e.g., steel: 7700 .. 7900, wood : 400 .. 800)
SI.Densitydensity27700Density of link (e.g., steel: 7700 .. 7900, wood : 400 .. 800)

Connectors

TypeNameDefaultDescription
Modelica.Mechanics.Rotational.Interfaces.Flange_aflange_r2
Modelica.Mechanics.Translational.Interfaces.Flange_aflange_p1

Components

TypeNameDefaultDescription
Modelica.Mechanics.MultiBody.Parts.Fixedfixed1
Servomechanisms.Mechanism.PLinkplink1
Servomechanisms.Mechanism.RLinkrlink1