Skip to content

Commit

Permalink
Fix for #156 (#157)
Browse files Browse the repository at this point in the history
* Fix for #156

* Update WholeBodyDynamicsDevice.cpp

* Update CHANGELOG.md

* Update CHANGELOG.md
  • Loading branch information
traversaro authored Aug 31, 2022
1 parent 30b1d95 commit 3bf3f03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Changed

### Fixed
- Fix a bug introduced in 0.8.0, due to which estimation of external forces and internal torques when FT sensors are read from sensors that expose an `IAnalogSensor` interface was not working (https://github.com/robotology/whole-body-estimators/pull/157, https://github.com/robotology/whole-body-estimators/pull/156).

## [0.8.0] - 2022-08-23

Expand Down
2 changes: 1 addition & 1 deletion devices/wholeBodyDynamics/WholeBodyDynamicsDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2051,7 +2051,7 @@ bool WholeBodyDynamicsDevice::readFTSensors(bool verbose)
auto ftAnalogIter = (std::find(ftAnalogSensorNames.begin(), ftAnalogSensorNames.end(), sensorName));
if (ftAnalogIter != ftAnalogSensorNames.end())
{
auto ftID = std::distance(ftMultipleAnalogSensorNames.begin(), ftMasITer);
auto ftID = std::distance(ftAnalogSensorNames.begin(), ftAnalogIter);
int ftRetVal = ftSensors[ftID]->read(ftMeasurement);
ok = (ftRetVal == IAnalogSensor::AS_OK);
}
Expand Down

0 comments on commit 3bf3f03

Please sign in to comment.