Skip to content

Commit

Permalink
Update all scenes not providing compliance info (or some 0 value)
Browse files Browse the repository at this point in the history
  • Loading branch information
hugtalbot committed Oct 24, 2023
1 parent 7ffd1eb commit c328f9f
Show file tree
Hide file tree
Showing 12 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion examples/tutorials/CableGripper/details/step0.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def createScene(rootNode):
volume=20,
inertiaMatrix=[1000.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 1000.0],
translation=[0.0, -130.0, 10.0])
cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

return rootNode
2 changes: 1 addition & 1 deletion examples/tutorials/CableGripper/details/step6.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,6 @@ def createScene(rootNode):
volume=20,
inertiaMatrix=[1000.0, 0.0, 0.0, 0.0, 1000.0, 0.0, 0.0, 0.0, 1000.0],
translation=[0.0, -130.0, 10.0])
cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

return rootNode
2 changes: 1 addition & 1 deletion examples/tutorials/FirstSteps/details/step1.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ def createScene(rootNode):
cube = Cube(rootNode, translation=[0.0, 0.0, 0.0],
uniformScale=20.0)

cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

return rootNode
2 changes: 1 addition & 1 deletion examples/tutorials/FirstSteps/details/step3.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def createScene(rootNode):
cube.addObject('UniformMass', name="vertexMass", vertexMass=[totalMass, volume, inertiaMatrix[:]])

# Material behaviour when submitted to constraints
cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

# Time integration and solver

Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/FirstSteps/details/step4.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ def createScene(rootNode):
translation=[-210 + c * 70, 0.0, 0.0],
color=[c / 10.0, c * 0.7 / 10.0, 0.9, 1.0],
uniformScale=20.0)
cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

return rootNode
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def createScene(rootNode):
cube.addObject('SparseLDLSolver', name='linearSolver')
cube.addObject('MechanicalObject', template='Rigid3', position=[-100, 70, 0, 0, 0, 0, 1])
cube.addObject('UniformMass', totalMass=0.001)
cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

# collision
cubeCollis = cube.addChild('cubeCollis')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ def createScene(rootNode):
Floor(rootNode, **floorParam)

cube = Cube(rootNode, **cubeParam)
cube.addObject('UncoupledConstraintCorrection')
cube.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

for i in range(len(fingersParameters)):
finger = ElasticMaterialObject(attachedTo=rootNode,
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/details/maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ def createScene(rootNode):
effector.addObject('MechanicalObject', template='Rigid3', name='goalMO', position=[0, 40, 0, 0, 0, 0, 1],
showObject=True, showObjectScale=10)
effector.addObject('RestShapeSpringsForceField', points=0, angularStiffness=1e5, stiffness=1e5)
effector.addObject('UncoupledConstraintCorrection', compliance='1e-10 1e-10 0 0 1e-10 0 1e-10 ')
effector.addObject('UncoupledConstraintCorrection', compliance='1e-10 1e-10 1e-10 1e-10 1e-10 1e-10 1e-10 ')

# Open maze planning from JSON file
data = json.load(open('mazeplanning.json'))
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/details/step6.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ def createScene(rootNode):
uniformScale=13.,
totalMass=0.032,
isAStaticObject=True)
sphere.addObject('UncoupledConstraintCorrection')
sphere.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

scene.Simulation.addChild(sphere)
scene.Simulation.addChild(tripod)
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/myproject/maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def createScene(rootNode):
effector.addObject('MechanicalObject', template='Rigid3', name='goalMO', position=[0, 40, 0, 0, 0, 0, 1],
showObject=True, showObjectScale=10)
effector.addObject('RestShapeSpringsForceField', points=0, angularStiffness=1e5, stiffness=1e5)
effector.addObject('UncoupledConstraintCorrection', compliance='1e-10 1e-10 0 0 1e-10 0 1e-10 ')
effector.addObject('UncoupledConstraintCorrection', compliance='1e-10 1e-10 1e-10 1e-10 1e-10 1e-10 1e-10 ')

# Open maze planning from JSON file
data = json.load(open('mazeplanning.json'))
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/myproject/parts/maze.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def createScene(rootNode):
effector.addObject('MechanicalObject', template='Rigid3', name='goalMO', position=[0, 40, 0, 0, 0, 0, 1],
showObject=True, showObjectScale=10)
effector.addObject('RestShapeSpringsForceField', points=0, angularStiffness=1e5, stiffness=1e5)
effector.addObject('UncoupledConstraintCorrection', compliance='1e-10 1e-10 0 0 1e-10 0 1e-10 ')
effector.addObject('UncoupledConstraintCorrection', compliance='1e-10 1e-10 1e-10 1e-10 1e-10 1e-10 1e-10 ')

# Open maze planning from JSON file
data = json.load(open('../mazeplanning.json'))
Expand Down
2 changes: 1 addition & 1 deletion examples/tutorials/Tripod/myproject/step6.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def createScene(rootNode):
uniformScale=13.,
totalMass=0.032,
isAStaticObject=True)
sphere.addObject('UncoupledConstraintCorrection')
sphere.addObject('UncoupledConstraintCorrection', defaultCompliance="0.00001")

scene.Simulation.addChild(sphere)
scene.Simulation.addChild(tripod)

0 comments on commit c328f9f

Please sign in to comment.