Skip to content

Commit

Permalink
Merge pull request #1 from rickstaa/fix/external_torque
Browse files Browse the repository at this point in the history
Fix/external torque
  • Loading branch information
JohannesPankert authored Nov 25, 2021
2 parents e9a8c32 + ae65897 commit ade2bb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion franka_gazebo/src/franka_hw_sim.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -470,7 +470,7 @@ void FrankaHWSim::updateRobotState(ros::Time time) {
std::array<double, 7> 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;
Expand Down

0 comments on commit ade2bb6

Please sign in to comment.