Skip to content

Commit

Permalink
Merge pull request #75 from robotology/fix/RetargetingClient_reset
Browse files Browse the repository at this point in the history
Bugfix in the retargeting client class
  • Loading branch information
GiulioRomualdi authored Dec 10, 2020
2 parents 44d2d4c + 028ae36 commit 5119f80
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ All notable changes to this project are documented in this file.
### Added

### Changed
- Bugfix while resetting the hand smoother in the `RetargetingClient` (https://github.com/robotology/walking-controllers/pull/75)

## [0.4.0] - 2020-12-01
### Added
Expand Down
4 changes: 2 additions & 2 deletions src/RetargetingHelper/src/Helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,8 +216,8 @@ bool RetargetingClient::initialize(const yarp::os::Searchable &config,

bool RetargetingClient::reset(WalkingFK& kinDynWrapper)
{
m_leftHand.data = kinDynWrapper.getLeftHandToWorldTransform();
m_rightHand.data = kinDynWrapper.getRightHandToWorldTransform();
m_leftHand.data = kinDynWrapper.getHeadToWorldTransform().inverse() * kinDynWrapper.getLeftHandToWorldTransform();
m_rightHand.data = kinDynWrapper.getHeadToWorldTransform().inverse() * kinDynWrapper.getRightHandToWorldTransform();

if(m_useHandRetargeting)
{
Expand Down

0 comments on commit 5119f80

Please sign in to comment.