File tree Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Expand file tree Collapse file tree 1 file changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -22,23 +22,21 @@ def setUpClass(self):
2222 def tearDown (self ):
2323 pass
2424
25- def test_MoveRelative (self ):
26- task = core .Task ()
27- task .add (stages .CurrentState ("current" ))
28- move = stages .MoveRelative ("move" , core .JointInterpolationPlanner ())
29- move .group = self .PLANNING_GROUP
30- move .setDirection ({"joint_1" : 0.2 , "joint_2" : 0.4 })
31- task .add (move )
25+ def test_MoveAndExecute (self ):
26+ moveRel = stages .MoveRelative ("moveRel" , core .JointInterpolationPlanner ())
27+ moveRel .group = self .PLANNING_GROUP
28+ moveRel .setDirection ({"joint_1" : 0.2 , "joint_2" : 0.4 })
3229
33- task .enableIntrospection ()
34- task .init ()
35- task .plan ()
30+ moveTo = stages .MoveTo ("moveTo" , core .JointInterpolationPlanner ())
31+ moveTo .group = self .PLANNING_GROUP
32+ moveTo .setGoal ("all-zeros" )
33+
34+ task = core .Task ()
35+ task .add (stages .CurrentState ("current" ), moveRel , moveTo )
3636
37+ self .assertTrue (task .plan ())
3738 self .assertEqual (len (task .solutions ), 1 )
38- for s in task .solutions :
39- print (s )
40- s = task .solutions [0 ]
41- task .execute (s )
39+ task .execute (task .solutions [0 ])
4240
4341 def test_Merger (self ):
4442 cartesian = core .CartesianPath ()
You can’t perform that action at this time.
0 commit comments