Skip to content

Commit

Permalink
Fix unit test lint
Browse files Browse the repository at this point in the history
  • Loading branch information
stephane-caron committed Jun 7, 2024
1 parent 3d9d981 commit 336a3f8
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions vulp/actuation/tests/BulletInterfaceTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -393,10 +393,9 @@ TEST_F(BulletInterfaceTest, ApplyExternalForces) {

// Since there is no ground in this text fixture, the only forces exerted on
// the robot during this test are gravity and the external force
Eigen::Vector3d com_accel =
Eigen::Vector3d{0., 0., -9.81} + external_force / mass;

Eigen::Vector3d Delta_com =
const Eigen::Vector3d gravity = {0., 0., -9.81};
const Eigen::Vector3d com_accel = gravity + external_force / mass;
const Eigen::Vector3d Delta_com =
interface_->compute_position_com_in_world() - init_com_position;

spdlog::info("n_g = {}", n_g);
Expand Down

0 comments on commit 336a3f8

Please sign in to comment.