BodyNode::computePotentialEnergy() wrongly consider the origin of body node instead of COM #1681
Open
2 tasks done
Labels
type: bug
Indicates an unexpected problem or unintended behavior
Bug Report
Environment
Expected Behavior
The potential energy of a body node is computed based on not its frame origin but its spatial position of COM.
Current Behavior
BodyNode::computePotentialEnergy()
considers the frame origin (i.e.this->getWorldTransform().translation()
) instead of COM (i.e.this->getCOM()
).dart/dart/dynamics/BodyNode.cpp
Line 2035 in 189e24d
Steps to Reproduce
BodyNode::computePotentialEnergy()
.Code to Reproduce
The text was updated successfully, but these errors were encountered: