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

[RobotInterface] Fix MAS sensors in YarpSensorBridge and remove cameras from SensorBridge #182

Conversation

prashanthr05
Copy link
Collaborator

This PR includes,

@prashanthr05 prashanthr05 self-assigned this Feb 2, 2021
@prashanthr05 prashanthr05 added [disable changelog ci] bugfix Fix a critical bug in the existing code labels Feb 2, 2021
{
if (sensorInterface == nullptr)
{
return -1;
Copy link
Member

Choose a reason for hiding this comment

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

size_t is an unsigned integer. I'm afraid that this will return the maximum number

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thank you! Fixed in d4dcb8a.

@@ -809,7 +712,7 @@ struct YarpSensorBridge::Impl
* Attach generic IMU sensor types and MAS inertials
*/
bool attachAllInertials(const yarp::dev::PolyDriverList& devList)
{
{
Copy link
Member

Choose a reason for hiding this comment

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

White spaces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in d4dcb8a.

@@ -824,7 +727,7 @@ struct YarpSensorBridge::Impl
return false;
}
}

Copy link
Member

Choose a reason for hiding this comment

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

White spaces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in d4dcb8a.

m_pimpl->bridgeInitialized = true;
return true;
}

bool YarpSensorBridge::setDriversList(const yarp::dev::PolyDriverList& deviceDriversList)
{
{
Copy link
Member

Choose a reason for hiding this comment

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

White spaces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in d4dcb8a.

@@ -106,13 +94,12 @@ bool YarpSensorBridge::setDriversList(const yarp::dev::PolyDriverList& deviceDri
<< std ::endl;
return false;
}

Copy link
Member

Choose a reason for hiding this comment

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

White spaces

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in d4dcb8a.

@prashanthr05 prashanthr05 force-pushed the sensor-bridge/fix-mas-and-remove-cameras branch from 19c9f53 to d4dcb8a Compare February 2, 2021 17:07
Copy link
Member

@GiulioRomualdi GiulioRomualdi left a comment

Choose a reason for hiding this comment

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

@prashanthr05 tell me if you want to reorganize the commits otherwise I can merge

@prashanthr05
Copy link
Collaborator Author

@GiulioRomualdi I cherry-picked a commit from another branch, so I think it will be ok to merge to prevent conflicts while merging the other branch.

@GiulioRomualdi GiulioRomualdi merged commit 37269a7 into ami-iit:master Feb 2, 2021
@GiulioRomualdi
Copy link
Member

Done

@prashanthr05 prashanthr05 deleted the sensor-bridge/fix-mas-and-remove-cameras branch February 2, 2021 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Fix a critical bug in the existing code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants