Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add member function to return current time of fixed foot detector #928

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
- Add `ZMPgenerator` to `UnicycleTrajectoryGenerator` (https://github.com/ami-iit/bipedal-locomotion-framework/pull/916)
- Add `VariableFeasibleRegionTaskVariableFeasibleRegionTask` in the TSID controller (https://github.com/ami-iit/bipedal-locomotion-framework/pull/922)
- Add `getCurrentTime` to the `FixedFootDetector` (https://github.com/ami-iit/bipedal-locomotion-framework/pull/928)

### Changed
- Some improvements on the YarpRobotLoggerDevice (https://github.com/ami-iit/bipedal-locomotion-framework/pull/910)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ class FixedFootDetector : public ContactDetector
* @return the fixed foot.
*/
const EstimatedContact& getFixedFoot() const;

/**
* Get the fixed foot detector current time.
* @return the fixed foot detector current time.
*/
const std::chrono::nanoseconds& getCurrentTime() const;
};

} // namespace Contacts
Expand Down
5 changes: 5 additions & 0 deletions src/Contacts/src/FixedFootDetector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -266,3 +266,8 @@ const EstimatedContact& FixedFootDetector::getFixedFoot() const
log()->error("{} Unable to find the fixed foot. This should never happen.", logPrefix);
return m_dummyContact;
}

const std::chrono::nanoseconds& FixedFootDetector::getCurrentTime() const
{
return m_currentTime;
};
Loading