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

Expose yarp::dev::ISixAxisForceTorqueSensors interface in gazebo_yarp_forcetorque plugin #628

Merged
merged 3 commits into from
Jun 20, 2022

Conversation

traversaro
Copy link
Member

Fix #384 .

This is important to correctly simulate the iCub 3 model, that as of June 2022 exposes the FT sensors only via ports opened by the multipleanalogsensorsserver.


yarp::dev::MAS_status GazeboYarpForceTorqueDriver::getSixAxisForceTorqueSensorStatus(size_t sens_index) const
{
if (sens_index > 1)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @traversaro

Just to double-check about this condition.. I checked about sens_index, and in https://www.yarp.it/v3.7/classyarp_1_1dev_1_1ISixAxisForceTorqueSensors.html it says

[in] | sens_index | The index of the specified sensor (should be between 0 and getNrOfSixAxisForceTorqueSensors()-1).

So in our case only 0 is acceptable if I am not mistaken.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, good catch!

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in 0662a7a .

@traversaro traversaro merged commit 8c99ad4 into master Jun 20, 2022
@traversaro traversaro deleted the fix384 branch June 20, 2022 09:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate gazebo_yarp_forcetorque to use the new YARP Multiple Analog Sensor Interfaces
2 participants