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

Compute initial value of COM and set desired value accordingly.

parent 93d839b7
No related branches found
No related tags found
1 merge request!1[major][cpp] starting point to integrate pinocchio
......@@ -172,13 +172,14 @@ class AbstractHumanoidRobot (object):
self.name + '.dynamics')
# --- center of mass ------------
self.dynamic.com.recompute(0)
self.featureCom = FeatureGeneric(self.name + '.feature.com')
plug(self.dynamic.com, self.featureCom.errorIN)
plug(self.dynamic.Jcom,
self.featureCom.jacobianIN)
self.featureCom.selec.value = '011'
self.featureComDes = FeatureGeneric(self.name + '.feature.ref.com')
self.featureComDes.errorIN.value = (.0, .0, 0.)
self.featureComDes.errorIN.value = self.dynamic.com.value
self.featureCom.sdes.value = self.featureComDes
self.comTask = Task(self.name + '.task.com')
self.comTask.add(self.name + '.feature.com')
......
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