📄 doublewishbonevr.mdl
字号:
SrcPort RConn1
DstBlock "Body"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Adj Sph"
SrcPort RConn1
DstBlock "Spherical"
DstPort LConn1
}
Line {
LineType "Connection"
SrcBlock "Dis Sph"
SrcPort RConn1
Points [0, 0]
DstBlock "Disassembled Spherical"
DstPort RConn1
}
Line {
LineType "Connection"
SrcBlock "Body"
SrcPort RConn1
Points [0, -5]
DstBlock "Disassembled Spherical"
DstPort LConn1
}
Line {
SrcBlock "Subsystem1"
SrcPort 1
DstBlock "VR 6"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "Subsystem1"
SrcPort LConn1
Points [-30, 0; 0, -135; 15, 0; 0, -15]
DstBlock "Body"
DstPort LConn2
}
}
}
Block {
BlockType SubSystem
Name "Upper Arm"
Ports [0, 2, 0, 0, 0, 2, 1]
Position [85, 29, 195, 91]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Upper Arm"
Location [103, 157, 447, 420]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0.5000"
"00]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Spherical"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [80, 25, 130, 75]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Joints/Spherical"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "spherical"
PrimitiveProps "S$INERTIAL$[0 0 0]$spherical"
ClassName "Joint"
DialogClass "JointBlock"
SAxis "[0 0 0]"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1, 0, 0, 0, 2, 1]
Position [175, 40, 255, 80]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
MaskPromptString "Radius (in)|Height (in)|Material De"
"nsity (lbm/in^3)|Rotation [Rx, Ry, Rz] (degrees)"
MaskStyleString "edit,edit,edit,edit"
MaskTunableValueString "on,on,on,on"
MaskCallbackString "|||"
MaskEnableString "on,on,on,on"
MaskVisibilityString "on,on,on,on"
MaskToolTipString "on,on,on,on"
MaskVarAliasString ",,,"
MaskVariables "r=@1;h=@2;rho=@3;Rot=@4;"
MaskIconFrame on
MaskIconOpaque on
MaskIconRotate "none"
MaskIconUnits "autoscale"
MaskValueString "0.25|ULink|0.05|[0 0 -90]"
MaskTabNameString ",,,"
System {
Name "Subsystem"
Location [401, 167, 834, 504]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0."
"500000]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Body"
Ports [0, 0, 0, 0, 0, 2, 2]
Position [80, 40, 140, 80]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Bodies/Body"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "workingframe"
RightPortType "workingframe"
LConnTagsString "CS1|CG"
RConnTagsString "CS2|CS3"
ClassName "Body"
DialogClass "MechanicalBodyBlock"
Mass "rho*pi*r*r*h"
MassUnits "lbm"
InertiaUnits "lbm*in^2"
Inertia "rho*pi*r*r*h*[(3*r*r + h*h) 0 0;0"
" 6*r*r 0;0 0 (3*r*r + h*h)]/12"
Shape "Cylinder"
ShapeDims "[1 1]"
ShapeUnits "m"
ShapeUse "false"
Density "1"
DensityUnits "kg/m^3"
DensityUse "false"
CG "Left$CG$[0 h/2 0]$CS1$CS1$in$[0 0"
" 0]$Euler X-Y-Z$deg$CS1$true"
WorkingFrames "Left$CS1$[0 0 0]$ADJOINING$ADJOIN"
"ING$in$Rot$Euler X-Y-Z$deg$ADJOINING$true#Right$CS2$[0 h/2 0]$CG$CG$in$[0 0 0"
"]$Euler X-Y-Z$deg$CG$true#Right$CS3$[0 0 0]$CS2$CS2$m$[0 0 0]$Euler X-Y-Z$deg"
"$CS2$true"
CGPos "[0 h/2 0]"
CGRot "[0 0 0]"
CS0Pos "[]"
CS0Rot "[]"
CS1Pos "[0 0 0]"
CS1Rot "Rot"
CS2Pos "[0 h/2 0]"
CS2Rot "[0 0 0]"
CS3Pos "[0 0 0]"
CS3Rot "[0 0 0]"
CS4Pos "[]"
CS4Rot "[]"
CS5Pos "[]"
CS5Rot "[]"
CS6Pos "[]"
CS6Rot "[]"
CS7Pos "[]"
CS7Rot "[]"
CS8Pos "[]"
CS8Rot "[]"
CS9Pos "[]"
CS9Rot "[]"
CS10Pos "[]"
CS10Rot "[]"
CS11Pos "[]"
CS11Rot "[]"
CS12Pos "[]"
CS12Rot "[]"
CS13Pos "[]"
CS13Rot "[]"
CS14Pos "[]"
CS14Rot "[]"
CS15Pos "[]"
CS15Rot "[]"
CS16Pos "[]"
CS16Rot "[]"
CS17Pos "[]"
CS17Rot "[]"
CS18Pos "[]"
CS18Rot "[]"
CS19Pos "[]"
CS19Rot "[]"
CS20Pos "[]"
CS20Rot "[]"
}
Block {
BlockType Reference
Name "Revolute"
Ports [0, 0, 0, 0, 0, 1, 1]
Position [205, 25, 255, 75]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Joints/Revolute"
SourceType "msb"
PhysicalDomain "mechanical"
SubClassName "Unknown"
LeftPortType "blob"
RightPortType "blob"
LConnTagsString "__newl0"
RConnTagsString "__newr0"
NumSAPorts "0"
CutJoint "off"
MarkAsCut "off"
Primitives "revolute"
PrimitiveProps "R1$Base$[1 0 0]$revolute"
ClassName "Joint"
DialogClass "JointBlock"
R1Axis "[1 0 0]"
}
Block {
BlockType SubSystem
Name "Subsystem"
Ports [0, 1, 0, 0, 0, 1]
Position [140, 192, 205, 228]
MinAlgLoopOccurrences off
RTWSystemCode "Auto"
FunctionWithSeparateData off
MaskHideContents off
System {
Name "Subsystem"
Location [353, 355, 905, 693]
Open off
ModelBrowserVisibility off
ModelBrowserWidth 200
ScreenColor "white"
PaperOrientation "landscape"
PaperPositionMode "auto"
PaperType "usletter"
PaperUnits "inches"
TiledPaperMargins "[0.500000, 0.500000, 0.500000, 0."
"500000]"
TiledPageScale 1
ShowPageBoundaries off
ZoomFactor "100"
Block {
BlockType Reference
Name "Body Sensor"
Ports [0, 2, 0, 0, 0, 1]
Position [85, 35, 125, 75]
DialogController "MECH.DynMechDlgSource"
SourceBlock "mblibv1/Sensors & \nActuators/Bod"
"y Sensor"
SourceType "msb"
ShowPortLabels on
SystemSampleTime "-1"
FunctionWithSeparateData off
RTWMemSecFuncInitTerm "Inherit from model"
RTWMemSecFuncExecute "Inherit from model"
RTWMemSecDataConstants "Inherit from model"
RTWMemSecDataInternal "Inherit from model"
RTWMemSecDataParameters "Inherit from model"
PhysicalDomain "Mechanical"
PortType "blob"
Muxed "off"
Pose "on"
Angle "on"
AngleUnits "deg"
ArcVelocity "off"
ArcVelocityUnits "deg/s"
ArcAcceleration "off"
ArcAccelerationUnits "deg/s^2"
CoordPosition "on"
CoordPositionUnits "in"
Velocity "off"
VelocityUnits "m/s"
Acceleration "off"
AccelerationUnits "m/s^2"
Quaternion "on"
QuaternionDT "off"
QuaternionDDT "off"
QuaternionUnits "off"
OutputVector "[ 3 9 ]"
ActiveIO "on"
Width "12"
ClassName "BodySensor"
DialogClass "MechanicalSensorBlock"
ReferenceFrame "Absolute (World)"
Port {
PortNumber 1
Name "Translation"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType BusCreator
Name "Bus\nCreator"
Ports [4, 1]
Position [420, 26, 435, 184]
ShowName off
DisplayOption "bar"
}
Block {
BlockType Reference
Name "Convert from Rotation Matrix to\n"
"Virtual Reality Toolbox"
Tag "Pose2VR"
Ports [1, 1]
Position [170, 66, 310, 104]
SourceBlock "mblibv1/Utilities/Convert from Ro"
"tation Matrix to\nVirtual Reality Toolbox"
SourceType "RotationMatrix2VR"
Port {
PortNumber 1
Name "Rotation"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Height"
Position [270, 145, 300, 175]
Value "h"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
Port {
PortNumber 1
Name "Height"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType Constant
Name "Radius"
Position [270, 210, 300, 240]
Value "r"
VectorParams1D on
SamplingMode "Sample based"
OutDataTypeMode "Inherit from 'Constant value'"
OutDataType "sfix(16)"
ConRadixGroup "Use specified scaling"
OutScaling "2^0"
SampleTime "inf"
FramePeriod "inf"
Port {
PortNumber 1
Name "Radius"
RTWStorageClass "Auto"
DataLoggingNameMode "SignalName"
}
}
Block {
BlockType PMIOPort
Name "CG"
Position [25, 48, 55, 62]
Port "1"
Side "Left"
}
Block {
BlockType Outport
Name "VR"
Position [465, 98, 495, 112]
IconDisplay "Port number"
BusOutputAsStruct off
}
Line {
SrcBlock "Bus\nCreator"
SrcPort 1
DstBlock "VR"
DstPort 1
}
Line {
Name "Radius"
Labels [0, 0]
SrcBlock "Radius"
SrcPort 1
Points [100, 0]
DstBlock "Bus\nCreator"
DstPort 4
}
Line {
Name "Height"
Labels [0, 0]
SrcBlock "Height"
SrcPort 1
Points [45, 0; 0, -35]
DstBlock "Bus\nCreator"
DstPort 3
}
Line {
Name "Rotation"
Labels [0, 0]
SrcBlock "Convert from Rotation Matrix to\n"
"Virtual Reality Toolbox"
SrcPort 1
DstBlock "Bus\nCreator"
DstPort 2
}
Line {
Name "Translation"
Labels [0, 0]
SrcBlock "Body Sensor"
SrcPort 1
DstBlock "Bus\nCreator"
DstPort 1
}
Line {
LineType "Connection"
SrcBlock "CG"
SrcPort RConn1
DstBlock "Body Sensor"
DstPort LConn1
}
Line {
SrcBlock "Body Sensor"
SrcPort 2
Points [15, 0; 0, 20]
DstBlock "Convert from Rotation Matrix to\n"
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -