Skip to content

Commit b7a5cb8

Browse files
committed
first commit with bipedal
1 parent bb8b8b3 commit b7a5cb8

1 file changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
import numpy
2+
3+
class FootstepPlanner(object):
4+
def __init__(self):
5+
pass
6+
7+
def plan(self, goal):
8+
pass
9+
10+
class BipedalPlanner(object):
11+
def __init__(self):
12+
self.footstep_planner = FootstepPlanner()
13+
14+
'''
15+
self.footstep = [[0.0, 0.2],
16+
[0.3, 0.2],
17+
[0.3, 0.2],
18+
[0.3, 0.2],
19+
[0.3, 0.2],
20+
[0.0, 0.2]]
21+
'''
22+
23+
def set_footstep(self, footstep):
24+
self.footstep = footstep
25+
26+
def send_goal(self, goal):
27+
footstep = self.footstep_planner.plan(goal)
28+
if footstep != None:
29+
self.footstep = footstep
30+
31+
if __name__ == "__main__":
32+
bipedal_planner = BipedalPlanner()
33+
goal = None
34+
bipedal_planner.send_goal(goal)

0 commit comments

Comments
 (0)