Skip to content

Commit

Permalink
[scenes] Fix warnings due to aliases
Browse files Browse the repository at this point in the history
  • Loading branch information
epernod committed Jul 9, 2024
1 parent 8d6dc6b commit c12c21e
Show file tree
Hide file tree
Showing 14 changed files with 46 additions and 46 deletions.
16 changes: 8 additions & 8 deletions examples/HAvatar_ArticulatedDeviceEmulator.scn
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
<RequiredPlugin name="SofaHapticAvatar"/>

<BruteForceDetection />
<DefaultContactManager />
<DefaultPipeline />
<CollisionResponse />
<CollisionPipeline />
<MinProximityIntersection alarmDistance="1" contactDistance="0.2"/>
<VisualStyle displayFlags="showVisualModels showBehaviorModels showCollisionModels" />

Expand Down Expand Up @@ -38,7 +38,7 @@
<ArticulatedSystemMapping input1="@../Articulations" output="@DOFs" />

<Node name="Device_base">
<MeshObjLoader filename="./mesh/Haptic_device_base.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/Haptic_device_base.obj" name="loader"/>
<MechanicalObject template="Vec3d" position="@loader.position" />
<MeshTopology src="@loader"/>

Expand All @@ -51,7 +51,7 @@


<Node name="Device_head">
<MeshObjLoader filename="./mesh/Haptic_device_head.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/Haptic_device_head.obj" name="loader"/>
<MechanicalObject template="Vec3d" position="@loader.position" />
<MeshTopology src="@loader"/>
<RigidMapping input="@.." output="@." index="1"/>
Expand All @@ -62,7 +62,7 @@
</Node>

<Node name="Device_portal">
<MeshObjLoader filename="./mesh/Haptic_device_portal.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/Haptic_device_portal.obj" name="loader"/>
<MechanicalObject template="Vec3d" position="@loader.position" />
<MeshTopology src="@loader"/>
<RigidMapping input="@.." output="@." index="2"/>
Expand All @@ -73,7 +73,7 @@
</Node>

<Node name="Grasper_shaft">
<MeshObjLoader filename="./mesh/Haptic_grasper_shaft.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/Haptic_grasper_shaft.obj" name="loader"/>
<MechanicalObject template="Vec3d" position="@loader.position" />
<MeshTopology src="@loader"/>

Expand All @@ -90,7 +90,7 @@


<Node name="Grasper_jaws_up">
<MeshObjLoader filename="./mesh/Haptic_grasper_jaws_up.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/Haptic_grasper_jaws_up.obj" name="loader"/>
<MechanicalObject template="Vec3d" position="@loader.position" />
<MeshTopology src="@loader"/>

Expand All @@ -107,7 +107,7 @@


<Node name="Grasper_jaws_down">
<MeshObjLoader filename="./mesh/Haptic_grasper_jaws_down.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/Haptic_grasper_jaws_down.obj" name="loader"/>
<MechanicalObject template="Vec3d" position="@loader.position" />
<MeshTopology src="@loader"/>

Expand Down
4 changes: 2 additions & 2 deletions examples/HAvatar_ArticulatedGrasper_Bench-01-motion.scn
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<RequiredPlugin name='SofaHaptics'/>
<RequiredPlugin name="SofaHapticAvatar"/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
4 changes: 2 additions & 2 deletions examples/HAvatar_ArticulatedGrasper_Bench-02_RigidFloor.scn
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
4 changes: 2 additions & 2 deletions examples/HAvatar_ArticulatedGrasper_Bench-03_RigidCube.scn
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand All @@ -40,7 +40,7 @@
<MechanicalObject src="@../grid_2" name="Volume" />

<BoxROI name="boxRoi1" box="-100 100 -1 100 300 1" drawBoxes="1"/>
<FixedConstraint indices="@boxRoi1.indices" />
<FixedProjectiveConstraint indices="@boxRoi1.indices" />

<TetrahedronSetTopologyContainer name="Tetra_topo" />
<TetrahedronSetTopologyModifier name="Modifier" />
Expand Down
6 changes: 3 additions & 3 deletions examples/HAvatar_ArticulatedGrasper_Bench-05_RigidCactus.scn
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand All @@ -28,7 +28,7 @@

<!-- Add obstacles -->
<Node name="Cactus">
<MeshObjLoader name="loader" filename="./mesh/cactus.obj" translation="0 130 100" rotation="90 0 0" scale3d="1.2 1.2 1.2"/>
<MeshOBJLoader name="loader" filename="./mesh/cactus.obj" translation="0 130 100" rotation="90 0 0" scale3d="1.2 1.2 1.2"/>
<MechanicalObject name="CollisModel" position="@loader.position" />
<MeshTopology src="@loader"/>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand All @@ -33,7 +33,7 @@

<!-- Add obstacles -->
<Node name="Cactus">
<MeshObjLoader name="loader" filename="./mesh/cactus.obj" translation="0 130 100" rotation="90 0 0" scale3d="1.2 1.2 1.2"/>
<MeshOBJLoader name="loader" filename="./mesh/cactus.obj" translation="0 130 100" rotation="90 0 0" scale3d="1.2 1.2 1.2"/>
<SparseGridRamificationTopology name="grid" n="10 10 10" src="@./loader" nbVirtualFinerLevels="3" finestConnectivity="0"/>

<Node name="Cactus">
Expand All @@ -47,7 +47,7 @@
<Hexa2TetraTopologicalMapping input="@../grid" output="@Tetra_topo" />

<BoxROI name="boxRoi1" box="-100 100 20 100 200 80" drawBoxes="1"/>
<FixedConstraint indices="@boxRoi1.indices" />
<FixedProjectiveConstraint indices="@boxRoi1.indices" />

<TetrahedronFEMForceField name="FEM" youngModulus="3500" poissonRatio="0.3" method="large" />
<UniformMass totalMass="1.0" />
Expand Down
6 changes: 3 additions & 3 deletions examples/HAvatar_ArticulatedGrasper_Bench-07_Liver.scn
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContactConstraint" />
<CollisionResponse name="response" response="FrictionContactConstraint" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand All @@ -43,7 +43,7 @@
<TetrahedronSetGeometryAlgorithms template="Vec3d" name="GeomAlgo" />

<BoxROI name="boxRoi1" box="0 -25 0 50 25 60" drawBoxes="1"/>
<FixedConstraint indices="@boxRoi1.indices" />
<FixedProjectiveConstraint indices="@boxRoi1.indices" />

<FastTetrahedralCorotationalForceField name="FEM" youngModulus="2000" poissonRatio="0.3" method="large"/>
<DiagonalMass massDensity="0.1" />
Expand Down
4 changes: 2 additions & 2 deletions examples/HAvatar_Dual_ArticulatedGrasper_Bench-01-motion.scn
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@
<RequiredPlugin name='SofaHaptics'/>
<RequiredPlugin name="SofaHapticAvatar"/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContact" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContact" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContact" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContact" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand All @@ -42,7 +42,7 @@
<MechanicalObject src="@../grid_2" name="Volume" />

<BoxROI name="boxRoi1" box="-100 -100 -1 100 100 1" drawBoxes="1"/>
<FixedConstraint indices="@boxRoi1.indices" />
<FixedProjectiveConstraint indices="@boxRoi1.indices" />

<TetrahedronSetTopologyContainer name="Tetra_topo" />
<TetrahedronSetTopologyModifier name="Modifier" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@
<RequiredPlugin name="SofaHapticAvatar"/>
<RequiredPlugin name='SofaHaptics'/>

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceBroadPhase />
<BVHNarrowPhase />
<DefaultContactManager name="response" response="FrictionContact" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="2" contactDistance="0.5" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="10000"/>
Expand Down
16 changes: 8 additions & 8 deletions examples/HAvatar_Emulator.scn
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<RequiredPlugin name='SofaSparseSolver'/>
<VisualStyle displayFlags="showVisualModels showBehaviorModels hideCollisionModels" />

<DefaultPipeline name="pipeline" depth="6" verbose="0"/>
<CollisionPipeline name="pipeline" depth="6" verbose="0"/>
<BruteForceDetection name="detection" />
<DefaultContactManager name="response" response="FrictionContact" />
<CollisionResponse name="response" response="FrictionContact" />
<LocalMinDistance name="proximity" alarmDistance="0.15" contactDistance="0.05" angleCone="0.0" />
<FreeMotionAnimationLoop/>
<LCPConstraintSolver tolerance="0.001" maxIt="1000"/>
Expand Down Expand Up @@ -50,7 +50,7 @@
<ArticulatedSystemMapping input1="@../Articulations" output="@DOFs" />

<Node name="CollisionModel" tags="toolCollision">
<MeshObjLoader filename="./mesh/grasper_shaft_collision_light.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/grasper_shaft_collision_light.obj" name="loader"/>
<MeshTopology src="@loader" name="InstrumentCollisionModel" />
<MechanicalObject src="@loader" name="instrumentCollisionState" dy="0" rz="0" dz="0" tags="toolPosition"/>
<SphereCollisionModel name="instrumentPoint" radius="2" contactStiffness="10" group="0"/>
Expand All @@ -60,13 +60,13 @@
</Node>

<Node name="Shaft_visu" >
<MeshObjLoader name="meshLoader_1" filename="./mesh/grasper_shaft.obj" handleSeams="1" />
<MeshOBJLoader name="meshLoader_1" filename="./mesh/grasper_shaft.obj" handleSeams="1" />
<OglModel name="InstrumentVisualModel" src="@meshLoader_1"/>
<RigidMapping name="MM->VM mapping" input="@.." output="@InstrumentVisualModel" index="3"/>
</Node>

<Node name="JawUp_collision" tags="toolCollision">
<MeshObjLoader filename="./mesh/grasper_jaws_up_collision_light.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/grasper_jaws_up_collision_light.obj" name="loader"/>
<MeshTopology src="@loader" name="InstrumentCollisionModel" />
<MechanicalObject src="@loader" name="instrumentCollisionState" ry="0" rz="0" dy="0" />
<SphereCollisionModel name="instrumentPoint" radius="1" group="0" contactStiffness="100000"/>
Expand All @@ -75,13 +75,13 @@
</Node>

<Node name="JawUp_visu" >
<MeshObjLoader name="meshLoader_1" filename="./mesh/grasper_jaws_up.obj" handleSeams="1" />
<MeshOBJLoader name="meshLoader_1" filename="./mesh/grasper_jaws_up.obj" handleSeams="1" />
<OglModel name="InstrumentVisualModel" src="@meshLoader_1"/>
<RigidMapping name="MM->VM mapping" input="@.." output="@InstrumentVisualModel" index="4"/>
</Node>

<Node name="JawDown_collision" tags="toolCollision">
<MeshObjLoader filename="./mesh/grasper_jaws_down_collision_light.obj" name="loader"/>
<MeshOBJLoader filename="./mesh/grasper_jaws_down_collision_light.obj" name="loader"/>
<MeshTopology src="@loader" name="InstrumentCollisionModel" />
<MechanicalObject src="@loader" name="instrumentCollisionState" ry="0" rz="0" dy="0" />
<SphereCollisionModel name="instrumentPoint" radius="1" group="0" contactStiffness="100000"/>
Expand All @@ -90,7 +90,7 @@
</Node>

<Node name="JawDown_visu" >
<MeshObjLoader name="meshLoader_1" filename="./mesh/grasper_jaws_down.obj" handleSeams="1" />
<MeshOBJLoader name="meshLoader_1" filename="./mesh/grasper_jaws_down.obj" handleSeams="1" />
<OglModel name="InstrumentVisualModel" src="@meshLoader_1"/>
<RigidMapping name="MM->VM mapping" input="@.." output="@InstrumentVisualModel" index="5"/>
</Node>
Expand Down

0 comments on commit c12c21e

Please sign in to comment.