3 import pyexotica
as exo
9 ompl = exo.Setup.load_solver(
'{exotica_examples}/resources/configs/example_manipulate_ompl.xml')
12 ompl.get_problem().start_state = [1.5035205538438838, 0.8730168650583787, -1.6298590879018438, 1.7106630821349438, -0.8789956712153559, 0.1278222471656531, 0.0]
13 ompl.get_problem().goal_state = [-1.5035205538442702, 0.8730168650583671, 1.6298590879018415, 1.7106630821349786, 0.8789956712153525, 0.12782224716566898, 0.0]
18 solution = ompl.solve()
21 self.assertTrue(solution
is not None)
26 solution = ompl.solve()
29 self.assertTrue(solution
is not None)
32 jl = ompl.get_problem().get_scene().get_kinematic_tree().get_joint_limits()
34 ompl.get_problem().get_scene().get_kinematic_tree().set_joint_limits_lower(jl[:,0])
35 ompl.get_problem().get_scene().get_kinematic_tree().set_joint_limits_upper(jl[:,1])
41 solution = ompl.solve()
46 self.assertTrue(failed)
48 self.assertTrue(solution
is None)
def test_lock_bounds(self)