Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexandreAmice committed Jun 11, 2023
1 parent 3866d28 commit 8a4b85b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions bindings/pydrake/geometry/test/optimization_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -893,7 +893,7 @@ def test_CspaceFreePolytopeMethods(self):
def testSeparationCertificateMethods(self):
C_init = np.vstack([np.atleast_2d(np.eye(self.plant.num_positions(
))), -np.atleast_2d(np.eye(self.plant.num_positions()))])
d_init = 3 * np.ones((C_init.shape[0], 1))
d_init = 1e-10 * np.ones((C_init.shape[0], 1))
pair = list(self.cspace_free_polytope.map_geometries_to_separating_planes().keys())[0]
lagrangian_options = \
mut.CspaceFreePolytope. \
Expand All @@ -912,9 +912,9 @@ def testSeparationCertificateMethods(self):
self.assertIsInstance(cert_prog.prog(), MathematicalProgram)
self.assertGreaterEqual(cert_prog.plane_index, 0)

self.assertIsInstance(certificates.positive_side_rational_lagrangians,
self.assertIsInstance(certificates.positive_side_rational_lagrangians[0],
mut.CspaceFreePolytope.SeparatingPlaneLagrangians)
self.assertIsInstance(certificates.negative_side_rational_lagrangians,
self.assertIsInstance(certificates.negative_side_rational_lagrangians[0],
mut.CspaceFreePolytope.SeparatingPlaneLagrangians)

cert_prog_sol = self.cspace_free_polytope.SolveSeparationCertificateProgram(
Expand Down

0 comments on commit 8a4b85b

Please sign in to comment.