Skip to content

Commit

Permalink
change name
Browse files Browse the repository at this point in the history
  • Loading branch information
EricCousineau-TRI committed Oct 17, 2023
1 parent ea8ae78 commit 20a030a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tmp/repro.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,18 +156,18 @@ def trajopt_shelves_demo():
names = []
refs = []

def add_ref(x):
def add_weakref(x):
names.append(repr(x))
refs.append(weakref.ref(x))

def add_constraint(s):
context = diagram.CreateDefaultContext()
add_ref(context)
add_weakref(context)
plant_context = plant.GetMyContextFromRoot(context)
collision_constraint = MinimumDistanceConstraint(
plant, 0.001, plant_context, None, 0.01
)
add_ref(collision_constraint)
add_weakref(collision_constraint)
trajopt.AddPathPositionConstraint(collision_constraint, s)

for s in evaluate_at_s:
Expand Down

0 comments on commit 20a030a

Please sign in to comment.