Skip to content
Snippets Groups Projects
Commit c1eb9ed4 authored by Florent Lamiraux's avatar Florent Lamiraux
Browse files

In class Solver, implement method remove and modify method push.

    Both methods take a task as input and forward to Solver.sot.
parent bd346620
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
...@@ -46,8 +46,14 @@ class Solver: ...@@ -46,8 +46,14 @@ class Solver:
plug(self.jointLimitator.control, robot.device.control) plug(self.jointLimitator.control, robot.device.control)
plug(self.robot.device.state, self.robot.dynamic.position) plug(self.robot.device.state, self.robot.dynamic.position)
def push(self, taskName): def push (self, task):
""" """
Proxy method to push a task in the sot Proxy method to push a task in the sot
""" """
self.sot.push(taskName) self.sot.push (task.name)
def remove (self, task):
"""
Proxy method to remove a task from the sot
"""
self.sot.remove (task.name)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment