forked from AtsushiSakai/PythonRobotics
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix bipedal_planner and add its test (AtsushiSakai#332)
- Loading branch information
1 parent
3607d72
commit 03a92fc
Showing
4 changed files
with
104 additions
and
45 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
from unittest import TestCase | ||
|
||
import sys | ||
sys.path.append("./Bipedal/bipedal_planner/") | ||
try: | ||
from Bipedal.bipedal_planner import bipedal_planner as m | ||
except Exception: | ||
raise | ||
|
||
print(__file__) | ||
|
||
|
||
class Test(TestCase): | ||
|
||
def test(self): | ||
bipedal_planner = m.BipedalPlanner() | ||
|
||
footsteps = [[0.0, 0.2, 0.0], | ||
[0.3, 0.2, 0.0], | ||
[0.3, 0.2, 0.2], | ||
[0.3, 0.2, 0.2], | ||
[0.0, 0.2, 0.2]] | ||
bipedal_planner.set_ref_footsteps(footsteps) | ||
bipedal_planner.walk(plot=False) |