Skip to content

Commit ade2bb6

Browse files
Merge pull request #1 from rickstaa/fix/external_torque
Fix/external torque
2 parents e9a8c32 + ae65897 commit ade2bb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

franka_gazebo/src/franka_hw_sim.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ void FrankaHWSim::updateRobotState(ros::Time time) {
470470
std::array<double, 7> g;
471471
static bool state_initialized = false;
472472
if (state_initialized) {
473-
g = this->model_->gravity(this->robot_state_);
473+
g = this->model_->gravity(this->robot_state_, this->gravity_earth_);
474474
} else {
475475
for (auto& x : g) {
476476
x = 0;

0 commit comments

Comments
 (0)