Skip to content

Commit

Permalink
Fix relativeMove implementation
Browse files Browse the repository at this point in the history
relativeMove was not correctly implemented until now
Fix #465
  • Loading branch information
traversaro committed Mar 4, 2020
1 parent 4921742 commit 5a17b16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
## [Unreleased]

### Fixed
- Solve the problem of setting the intraction mode when the mode of actuator has been already set on the same requested interaction mode. (https://github.com/robotology/gazebo-yarp-plugins/pull/464).
- Solve the problem of setting the interaction mode when the mode of actuator has been already set on the same requested interaction mode (https://github.com/robotology/gazebo-yarp-plugins/pull/464).
- Fix implementation of `yarp::dev::IPositionControl::relativeMove` in `gazebo_yarp_controlboard` (https://github.com/robotology/gazebo-yarp-plugins/pull/466).

## [3.3.0] - 2019-12-13

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,11 +113,7 @@ bool GazeboYarpControlBoardDriver::getRefSpeeds(double *spds) //WORKS

bool GazeboYarpControlBoardDriver::relativeMove(int j, double delta) //NOT TESTED
{
if (j >= 0 && static_cast<size_t>(j) < m_numberOfJoints) {
m_trajectoryGenerationReferencePosition[j] = m_positions[j] + delta; //TODO check if this is ok or m_trajectoryGenerationReferencePosition=m_trajectoryGenerationReferencePosition+delta!!!
return true;
}
return false;
return positionMove(j, m_positions[j] + delta);
}

bool GazeboYarpControlBoardDriver::relativeMove(const double *deltas) //NOT TESTED
Expand Down

0 comments on commit 5a17b16

Please sign in to comment.