classRR

RR Mechanism

Extends from Servomechanisms.Utilities.IconNameB.

Information

General

This class models a 2R mechanism. It is intended to be used as a RR planar mechanism also known as planar elbow manipulator.

Implementation

It uses RLink element and it's based on the next scheme:

Notes

  • The first joint is fixed in the origin.
  • By default the joint axis is the z axis (rotation axis in direction
    n=[0,0,1]
    ) and gravity is in direction
    n=[0,-1,0]
  • The generalized coordinates theta1 and theta2 are the angles of each joint in radians as shown in the figure.
  • The interfaces are Modelica.Mechanics.Rotational
  • The mechanical parameters of each link are editable (dimensions, mass, etc)
  • The World element is included in the model.

Parameters

TypeNameDefaultDescription
Stringshape1"box"shape of visualizer:"shape", "box", "cylinder"
Modelica.Mechanics.MultiBody.Types.Axisn1{0, 0, 1}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_rotational1
Modelica.Mechanics.Rotational.Interfaces.Flange_aflange_rotational2

Components

TypeNameDefaultDescription
Servomechanisms.Mechanism.RLinkrotational2
Servomechanisms.Mechanism.RLinkrotational1
Modelica.Mechanics.MultiBody.Parts.Fixedfixed1