Skip to content

Commit 28edd45

Browse files
author
Gilwoo Lee
committed
Trajopt tests. Fails 2 tests, errors 1 test.
1 parent 8ce67f7 commit 28edd45

File tree

2 files changed

+23
-1
lines changed

2 files changed

+23
-1
lines changed

tests/planning/methods/PlanToEndEffectorOffset.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def test_PlanToEndEffectorOffset_GoalInCollision_Throws(self):
100100
self.planner.PlanToEndEffectorOffset(
101101
self.robot, direction=self.direction, distance=self.distance)
102102

103-
def test_PlanToEndEffectorOffset_GoalInCollision_Throws(self):
103+
def test_PlanToEndEffectorOffset_GoalInCollision_Throws2(self):
104104
# Setup
105105
with self.env:
106106
self.robot.SetActiveDOFValues(self.config_infeasible_self_movement)

tests/planning/test_TrajoptPlanner.py

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
from methods import (
2+
PlanToConfigurationTest,
3+
PlanToConfigurationStraightLineTest,
4+
PlanToEndEffectorPoseTest,
5+
PlanToEndEffectorOffsetTest
6+
)
7+
from methods.PlanToConfiguration import PlanToConfigurationTestCollisionTest
8+
from planning_helpers import BasePlannerTest
9+
from prpy.planning.snap import SnapPlanner
10+
from unittest import TestCase
11+
from or_trajopt import TrajoptPlanner
12+
13+
class TrajoptPlannerTest(BasePlannerTest,
14+
PlanToConfigurationTest,
15+
PlanToEndEffectorPoseTest,
16+
PlanToEndEffectorOffsetTest,
17+
TestCase):
18+
planner_factory = TrajoptPlanner
19+
20+
def setUp(self):
21+
super(TrajoptPlannerTest, self).setUp()
22+

0 commit comments

Comments
 (0)