I am trying to calculate the result of the inverse dynamic for a plant, however, I have noticed that the returned vector doesn't consider the gravity of the links.
For example, for a simple 1 link robot with a mass of 2 Kg that is positioned at the pi/4
angle, the following inverse dynamics calculation returns 0
without considering the weight of the link.
auto multibody_forces = MultibodyForces<double>(plant);
auto tau = plant.CalcInverseDynamics(plant_context, VectorXd::Zero(1), multibody_forces);
// tau will be 0
Is this a bug or a mis-documentation for CalcInverseDynamics
?