Esempio n. 1
0
#   Entity 0: C::E name: body_2 , SW name: Racer3_p04-1 ,  SW ref.type:4 (4)
#   Entity 1: C::E name: body_5 , SW name: Racer3_p05-1 ,  SW ref.type:4 (4)

# Mate constraint: Angle5 [MatePlanarAngleDim] type:6 align:0 flip:True
#   Entity 0: C::E name: body_5 , SW name: Racer3_p05-1 ,  SW ref.type:4 (4)
#   Entity 1: C::E name: body_8 , SW name: Racer3_p06-1 ,  SW ref.type:4 (4)

# Mate constraint: Angle6 [MatePlanarAngleDim] type:6 align:0 flip:False
#   Entity 0: C::E name: body_6 , SW name: Hand_base_and_p07-2 ,  SW ref.type:4 (4)
#   Entity 1: C::E name: body_8 , SW name: Racer3_p06-1 ,  SW ref.type:4 (4)

# Mate constraint: Concentric1 [MateConcentric] type:1 align:0 flip:False
#   Entity 0: C::E name: body_9 , SW name: Racer3_p01-3 ,  SW ref.type:2 (2)
#   Entity 1: C::E name: body_4 , SW name: Racer3_p02-1 ,  SW ref.type:2 (2)

link_1 = chrono.ChLinkMateParallel()
cA = chrono.ChVectorD(0, 0.00211060633115506, 0)
dA = chrono.ChVectorD(0, 1, 0)
cB = chrono.ChVectorD(1.12826897060512e-18, 0.1875, -1.17336522714648e-17)
dB = chrono.ChVectorD(6.01743450989396e-18, 1, -6.25794787811454e-17)
link_1.Initialize(body_9, body_4, False, cA, cB, dA, dB)
link_1.SetName("Concentric1")
exported_items.append(link_1)

link_2 = chrono.ChLinkMateGeneric()
link_2.SetConstrainedCoords(False, True, True, False, False, False)
cA = chrono.ChVectorD(0, 0.00211060633115506, 0)
cB = chrono.ChVectorD(1.12826897060512e-18, 0.1875, -1.17336522714648e-17)
dA = chrono.ChVectorD(0, 1, 0)
dB = chrono.ChVectorD(6.01743450989396e-18, 1, -6.25794787811454e-17)
link_2.Initialize(body_9, body_4, False, cA, cB, dA, dB)
mr[1, 2] = 0
mr[2, 2] = 0
body_4.GetCollisionModel().AddCylinder(
    0.00307962367981624, 0.00307962367981624, 0.012,
    chrono.ChVectorD(0.0119269719437114, -0.166883602750055,
                     -0.000732826431435216), mr)
body_4.GetCollisionModel().BuildModel()
body_4.SetCollide(True)

exported_items.append(body_4)

# Mate constraint: Concentrico1 [MateConcentric]
#   Entity 0: C::E name: body_1 , SW name: escape_wheel^escapement-1 ,  SW ref.type:1
#   Entity 1: C::E name: body_4 , SW name: truss^escapement-1 ,  SW ref.type:2

link_1 = chrono.ChLinkMateParallel()
cA = chrono.ChVectorD(0, -0.0296181804404151, 0)
dA = chrono.ChVectorD(0, -1, 0)
cB = chrono.ChVectorD(0, -0.03, 0)
dB = chrono.ChVectorD(0, 1, 0)
link_1.SetFlipped(True)
link_1.Initialize(body_1, body_4, False, cA, cB, dA, dB)
link_1.SetName("Concentrico1")
exported_items.append(link_1)

link_2 = chrono.ChLinkMateGeneric()
link_2.SetConstrainedCoords(False, True, True, False, False, False)
cA = chrono.ChVectorD(0, -0.0296181804404151, 0)
cB = chrono.ChVectorD(0, -0.03, 0)
dA = chrono.ChVectorD(0, -1, 0)
dB = chrono.ChVectorD(0, 1, 0)
Esempio n. 3
0
mr[0, 2] = 0.678557249221464
mr[1, 2] = 0.734547520266048
mr[2, 2] = 0
body_4.GetCollisionModel().AddBox(
    mat_4, 0.0025, 0.00328030945702575, 0.002,
    chrono.ChVectorD(-0.025136747317793, -0.0859893655741196, 0.0025), mr)
body_4.GetCollisionModel().BuildModel()
body_4.SetCollide(True)

exported_items.append(body_4)

# Mate constraint: Concentrico1 [MateConcentric] type:1 align:1 flip:False
#   Entity 0: C::E name: body_4 , SW name: escape_wheel-1 ,  SW ref.type:1 (1)
#   Entity 1: C::E name: body_2 , SW name: truss-1 ,  SW ref.type:2 (2)

link_1 = chrono.ChLinkMateParallel()
cA = chrono.ChVectorD(0, -0.03, 0)
dA = chrono.ChVectorD(0, -1, 0)
cB = chrono.ChVectorD(0, -0.03, 0)
dB = chrono.ChVectorD(0, 1, 0)
link_1.SetFlipped(True)
link_1.Initialize(body_4, body_2, False, cA, cB, dA, dB)
link_1.SetName("Concentrico1")
exported_items.append(link_1)

link_2 = chrono.ChLinkMateGeneric()
link_2.SetConstrainedCoords(False, True, True, False, False, False)
cA = chrono.ChVectorD(0, -0.03, 0)
cB = chrono.ChVectorD(0, -0.03, 0)
dA = chrono.ChVectorD(0, -1, 0)
dB = chrono.ChVectorD(0, 1, 0)