Skip to content

Commit

Permalink
Adjust to deprecated Drake code
Browse files Browse the repository at this point in the history
  • Loading branch information
mpetersen94 authored and wrangelvid committed Jul 13, 2023
1 parent b3f92de commit 6737905
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions models/schunk_wsg_50_welded_fingers.sdf
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>package://drake/manipulation/models/wsg_50_description/meshes/wsg_body.obj</uri>
<uri>package://drake_models/wsg_50_description/meshes/wsg_body.obj</uri>
</mesh>
</geometry>
<material>
Expand Down Expand Up @@ -102,7 +102,7 @@
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>package://drake/manipulation/models/wsg_50_description/meshes/finger_without_tip.obj</uri>
<uri>package://drake_models/wsg_50_description/meshes/finger_without_tip.obj</uri>
</mesh>
</geometry>
<material>
Expand Down Expand Up @@ -181,7 +181,7 @@
<geometry>
<mesh>
<scale>1 1 1</scale>
<uri>package://drake/manipulation/models/wsg_50_description/meshes/finger_without_tip.obj</uri>
<uri>package://drake_models/wsg_50_description/meshes/finger_without_tip.obj</uri>
</mesh>
</geometry>
<material>
Expand Down
2 changes: 1 addition & 1 deletion reproduction/bimanual/bimanual_iiwa_example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
"context = diagram.CreateDefaultContext()\n",
"plant_context = plant.GetMyMutableContextFromRoot(context)\n",
"sg_context = scene_graph.GetMyMutableContextFromRoot(context)\n",
"diagram.Publish(context)"
"diagram.ForcedPublish(context)"
]
},
{
Expand Down
4 changes: 2 additions & 2 deletions reproduction/bimanual/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ def runBimanualIK(plant, context, wsg1_id, wsg2_id, wsg1_pose, wsg2_pose,
def visualizeConfig(diagram, plant, context, q):
plant_context = plant.GetMyMutableContextFromRoot(context)
plant.SetPositions(plant_context, q)
diagram.Publish(context)
diagram.ForcedPublish(context)

def getLinearGcsPath(regions, sequence):
path = [sequence[0]]
Expand Down Expand Up @@ -506,4 +506,4 @@ def generate_segment_pics(traj, segment, meshcat):
rgba=Rgba(0, 0, 1, 1))

plant.SetPositions(plant_context, np.concatenate((q_waypoints[:, 0], q_waypoints[:, -1])))
diagram.Publish(context)
diagram.ForcedPublish(context)
2 changes: 1 addition & 1 deletion reproduction/prm_comparison/prm_comparison.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
"plant_context = plant.GetMyMutableContextFromRoot(context)\n",
"q0 =[0, 0.3, 0, -1.8, 0, 1, 1.57]\n",
"plant.SetPositions(plant_context, q0)\n",
"diagram.Publish(context)"
"diagram.ForcedPublish(context)"
]
},
{
Expand Down

0 comments on commit 6737905

Please sign in to comment.