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

Add some signals as attributes.

parent 4c66023e
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
...@@ -57,6 +57,7 @@ class AbstractHumanoidRobot (object): ...@@ -57,6 +57,7 @@ class AbstractHumanoidRobot (object):
- comRef: input (vector). - comRef: input (vector).
- com: output (vector) - com: output (vector)
- comSelec input (flag) - comSelec input (flag)
- comdot: input (vector) reference velocity of the center of mass
""" """
...@@ -307,6 +308,16 @@ class AbstractHumanoidRobot (object): ...@@ -307,6 +308,16 @@ class AbstractHumanoidRobot (object):
frame.jacobian.recompute(frame.jacobian.time + 1) frame.jacobian.recompute(frame.jacobian.time + 1)
return frame return frame
def initializeSignals (self):
"""
For portability, make some signals accessible as attributes.
"""
self.comRef = self.featureComDes.errorIN
self.zmpRef = self.device.zmp
self.com = self.dynamic.com
self.comSelec = self.featureCom.selec
self.comdot = self.featureComDes.errordotIN
def initializeRobot(self): def initializeRobot(self):
""" """
If the robot model is correctly loaded, this method will then If the robot model is correctly loaded, this method will then
...@@ -399,6 +410,7 @@ class AbstractHumanoidRobot (object): ...@@ -399,6 +410,7 @@ class AbstractHumanoidRobot (object):
"{0}_{1}".format(self.name, frameName), "{0}_{1}".format(self.name, frameName),
transformation, transformation,
signalName) signalName)
self.initializeSignals ()
def addTrace(self, entityName, signalName): def addTrace(self, entityName, signalName):
if self.tracer: if self.tracer:
......
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