Skip to content

Commit 7542180

Browse files
committed
[#1379] update jointThrAllocation to write desired joint accelerations
1 parent 75322ac commit 7542180

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/fswAlgorithms/effectorInterfaces/jointThrAllocation/jointThrAllocation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -367,7 +367,9 @@ def UpdateState(self, CurrentSimNanos):
367367

368368
self.jointAnglePayload.states.clear()
369369
self.jointAnglePayload.stateDots.clear()
370+
self.jointAnglePayload.stateDDots.clear()
370371
for angleCmd in bestDecision[: self.nJoint]:
371372
self.jointAnglePayload.states.push_back(float(angleCmd))
372373
self.jointAnglePayload.stateDots.push_back(0.0) # [rad/s]
374+
self.jointAnglePayload.stateDDots.push_back(0.0) # [rad/s^2]
373375
self.desJointAnglesOutMsg.write(self.jointAnglePayload, CurrentSimNanos, self.moduleID)

0 commit comments

Comments
 (0)