Skip to content

Commit d4699e9

Browse files
[RobotArm] Improve initialization.
1 parent c35ed10 commit d4699e9

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/dynamic_graph/sot/robot_arm/robot_arm.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,15 @@ class RobotArm(AbstractRobot):
3838
"""
3939
# Index of the first actuated joint in the configuration vector
4040
firstJointIndex = 0
41+
# List of indices corresponding to the actuated joints in pinocchio model
4142
def getActuatedJoints(self):
4243
return range(0, self.device.getControlSize())
4344

45+
# Initialization done when starting the controller. Cannot be done at
46+
# construction since some values are not known yet.
4447
def initializeEntities(self):
48+
# Always call parent implementation
49+
AbstractRobot.initializeEntities(self)
4550
# initialize size of some signals. The size is not known at construction
4651
controlSize = self.device.getControlSize()
4752
self.selector.selec(self.firstJointIndex, self.firstJointIndex +

0 commit comments

Comments
 (0)