diff --git a/franka_gazebo/src/franka_hw_sim.cpp b/franka_gazebo/src/franka_hw_sim.cpp index 2b763b36a..d2d2d6e63 100644 --- a/franka_gazebo/src/franka_hw_sim.cpp +++ b/franka_gazebo/src/franka_hw_sim.cpp @@ -470,7 +470,7 @@ void FrankaHWSim::updateRobotState(ros::Time time) { std::array g; static bool state_initialized = false; if (state_initialized) { - g = this->model_->gravity(this->robot_state_); + g = this->model_->gravity(this->robot_state_, this->gravity_earth_); } else { for (auto& x : g) { x = 0;