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 motor temperature sensor support to SensorBridge and YarpSensorBridge and logger #946

Merged
merged 6 commits into from
Mar 10, 2025

Conversation

GiulioRomualdi
Copy link
Member

This PR mitigates #819 in the case of motor temperature. Thanks to robotology/yarp#3188, the motor temperature will now be streamed in stateExt, eliminating the need for RPC calls between controlboard_nws and RemoteControlBoard.


if (jointVelocties.size() != m_pimpl->controlBoardRemapperMeasures.jointVelocities.size())
{
log()->error("[YarpSensorBridge::getJointVelocities] Joint velocities and positions have "
Copy link
Member

Choose a reason for hiding this comment

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

Is the message correct?

Aren't you checking if the input velocity has the right dimension?

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 8e5957e

if (jointAccelerations.size()
!= m_pimpl->controlBoardRemapperMeasures.jointAccelerations.size())
{
log()->error("{} Joint accelerations and positions have different sizes.", logPrefix);
Copy link
Member

Choose a reason for hiding this comment

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

Same here

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 8e5957e

= m_pimpl->controlBoardRemapperMeasures.receivedTimeInSeconds;

return true;
}
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
}
}

@GiulioRomualdi GiulioRomualdi enabled auto-merge (squash) March 9, 2025 15:14
@GiulioRomualdi GiulioRomualdi merged commit d6e289c into master Mar 10, 2025
12 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants