Commit d6c5cee5 authored by Pierre Fernbach's avatar Pierre Fernbach
Browse files

[Script] encapsulate talos_flatGround_path in class

parent 15261d23
from scenarios.template_talos_path import TalosPathPlanning
path_planning = TalosPathPlanning()
path_planning.init_problem()
class PathPlanning(TalosPathPlanning):
path_planning.q_init[0:2] = [0, 0]
path_planning.q_goal[0:2] = [1, 0]
def run(self):
self.init_problem()
path_planning.init_viewer("multicontact/ground", visualize_affordances=["Support"])
path_planning.init_planner()
path_planning.solve()
self.q_init[0:2] = [0, 0]
self.q_goal[0:2] = [1, 0]
path_planning.display_path()
self.init_viewer("multicontact/ground", visualize_affordances=["Support"])
self.init_planner()
self.solve()
self.display_path()
self.play_path()
path_planning.play_path()
if __name__ == "__main__":
PathPlanning().run()
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment