Skip to content

Commit 6737905

Browse files
mpetersen94wrangelvid
authored andcommitted
Adjust to deprecated Drake code
1 parent b3f92de commit 6737905

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

models/schunk_wsg_50_welded_fingers.sdf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<geometry>
2121
<mesh>
2222
<scale>1 1 1</scale>
23-
<uri>package://drake/manipulation/models/wsg_50_description/meshes/wsg_body.obj</uri>
23+
<uri>package://drake_models/wsg_50_description/meshes/wsg_body.obj</uri>
2424
</mesh>
2525
</geometry>
2626
<material>
@@ -102,7 +102,7 @@
102102
<geometry>
103103
<mesh>
104104
<scale>1 1 1</scale>
105-
<uri>package://drake/manipulation/models/wsg_50_description/meshes/finger_without_tip.obj</uri>
105+
<uri>package://drake_models/wsg_50_description/meshes/finger_without_tip.obj</uri>
106106
</mesh>
107107
</geometry>
108108
<material>
@@ -181,7 +181,7 @@
181181
<geometry>
182182
<mesh>
183183
<scale>1 1 1</scale>
184-
<uri>package://drake/manipulation/models/wsg_50_description/meshes/finger_without_tip.obj</uri>
184+
<uri>package://drake_models/wsg_50_description/meshes/finger_without_tip.obj</uri>
185185
</mesh>
186186
</geometry>
187187
<material>

reproduction/bimanual/bimanual_iiwa_example.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
"context = diagram.CreateDefaultContext()\n",
9292
"plant_context = plant.GetMyMutableContextFromRoot(context)\n",
9393
"sg_context = scene_graph.GetMyMutableContextFromRoot(context)\n",
94-
"diagram.Publish(context)"
94+
"diagram.ForcedPublish(context)"
9595
]
9696
},
9797
{

reproduction/bimanual/helpers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ def runBimanualIK(plant, context, wsg1_id, wsg2_id, wsg1_pose, wsg2_pose,
293293
def visualizeConfig(diagram, plant, context, q):
294294
plant_context = plant.GetMyMutableContextFromRoot(context)
295295
plant.SetPositions(plant_context, q)
296-
diagram.Publish(context)
296+
diagram.ForcedPublish(context)
297297

298298
def getLinearGcsPath(regions, sequence):
299299
path = [sequence[0]]
@@ -506,4 +506,4 @@ def generate_segment_pics(traj, segment, meshcat):
506506
rgba=Rgba(0, 0, 1, 1))
507507

508508
plant.SetPositions(plant_context, np.concatenate((q_waypoints[:, 0], q_waypoints[:, -1])))
509-
diagram.Publish(context)
509+
diagram.ForcedPublish(context)

reproduction/prm_comparison/prm_comparison.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@
9595
"plant_context = plant.GetMyMutableContextFromRoot(context)\n",
9696
"q0 =[0, 0.3, 0, -1.8, 0, 1, 1.57]\n",
9797
"plant.SetPositions(plant_context, q0)\n",
98-
"diagram.Publish(context)"
98+
"diagram.ForcedPublish(context)"
9999
]
100100
},
101101
{

0 commit comments

Comments
 (0)