Skip to content

Commit

Permalink
Properly initialize to false ftInitialized variable (#193)
Browse files Browse the repository at this point in the history
This fixes the wrong stream of FT data
  • Loading branch information
LoreMoretti authored Aug 20, 2024
1 parent 79e7e86 commit d1b38a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/forcetorque/ForceTorque.cc
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ class ForceTorque : public System,
std::string sensorScopedName;
bool m_deviceRegistered;
ForceTorqueData forceTorqueData;
bool ftInitialized;
bool ftInitialized{false};
gz::transport::Node node;
gz::msgs::Wrench ftMsg;
std::mutex ftMsgMutex;
Expand Down

0 comments on commit d1b38a1

Please sign in to comment.