modelFullRobot

Six degree of freedom robot with path planning, controllers, motors, brakes, gears and mechanics

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example animates a motion of a detailed model of the robot with predefined axes' angles over time. For animation, CAD data is used. Translate and simulate with the default settings (default simulation stop time = 2 s).

The path planning block incorporates a simulation termination condition. Thus, the simulation can be terminated before reaching the stop time. The condition depends on the start and end positions of the joints, and on their reference speeds and reference accelerations. For current settings, the termination condition should indeed be fulfilled right before the simulation stops.

model Examples.Systems.RobotR3.FullRobot

Parameters

TypeNameDefaultDescription
SI.MassmLoad15Mass of load
SI.Position[3]rLoad{0.1, 0.25, 0.1}Distance from last flange to load mass
SI.Accelerationg9.81Gravity acceleration
SI.TimerefStartTime0Start time of reference motion
SI.TimerefSwingTime0.5Additional time after reference motion is in rest before simulation is stopped
Reference › Start angles
Modelica.Units.NonSI.Angle_degstartAngle1-60Start angle of axis 1
Modelica.Units.NonSI.Angle_degstartAngle220Start angle of axis 2
Modelica.Units.NonSI.Angle_degstartAngle390Start angle of axis 3
Modelica.Units.NonSI.Angle_degstartAngle40Start angle of axis 4
Modelica.Units.NonSI.Angle_degstartAngle5-110Start angle of axis 5
Modelica.Units.NonSI.Angle_degstartAngle60Start angle of axis 6
Reference › End angles
Modelica.Units.NonSI.Angle_degendAngle160End angle of axis 1
Modelica.Units.NonSI.Angle_degendAngle2-70End angle of axis 2
Modelica.Units.NonSI.Angle_degendAngle3-35End angle of axis 3
Modelica.Units.NonSI.Angle_degendAngle445End angle of axis 4
Modelica.Units.NonSI.Angle_degendAngle5110End angle of axis 5
Modelica.Units.NonSI.Angle_degendAngle645End angle of axis 6
Reference › Limits
SI.AngularVelocity[6]refSpeedMax{3, 1.5, 5, 3.1, 3.1, 4.1}Maximum reference speeds of all joints
SI.AngularAcceleration[6]refAccMax{15, 15, 15, 60, 60, 60}Maximum reference accelerations of all joints
Controller › Axis 1
Realkp15Gain of position controller
Realks10.5Gain of speed controller
SI.TimeTs10.05Time constant of integrator of speed controller
Controller › Axis 2
Realkp25Gain of position controller
Realks20.5Gain of speed controller
SI.TimeTs20.05Time constant of integrator of speed controller
Controller › Axis 3
Realkp35Gain of position controller
Realks30.5Gain of speed controller
SI.TimeTs30.05Time constant of integrator of speed controller
Controller › Axis 4
Realkp45Gain of position controller
Realks40.5Gain of speed controller
SI.TimeTs40.05Time constant of integrator of speed controller
Controller › Axis 5
Realkp55Gain of position controller
Realks50.5Gain of speed controller
SI.TimeTs50.05Time constant of integrator of speed controller
Controller › Axis 6
Realkp65Gain of position controller
Realks60.5Gain of speed controller
SI.TimeTs60.05Time constant of integrator of speed controller

Components

TypeNameDefaultDescription
Utilities.MechanicalStructuremechanics
Modelica.Mechanics.MultiBody.Examples.Systems.RobotR3.Utilities.PathPlanning6pathPlanning
Utilities.AxisType1axis1
Utilities.AxisType1axis2
Utilities.AxisType1axis3
Utilities.AxisType2axis4
Utilities.AxisType2axis5
Utilities.AxisType2axis6