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

Fix for GazeboYarpDepthCameraDriver::getDepthImage #623

Merged
merged 3 commits into from
Apr 6, 2022

Conversation

elandini84
Copy link
Contributor

Removed implicit conversions from the depth data quantization in
GazeboYarpDepthCameraDriver::getDepthImage which in at least one
occasion caused an unexpected crash of the rgbdSensor_nws_yarp.

Also, the calculation of the scalar coefficient (involving math::pow),
used to cut the decimal figures from the depth data, has been moved
outside the for loop that cycles through the whole image.

Removed implicit conversions from the depth data quantization in
`GazeboYarpDepthCameraDriver::getDepthImage` which in at least one
occasion caused an unexpected crash of the `rgbdSensor_nws_yarp`.

Also, the calculation of the scalar coefficient (involving `math::pow`),
used to cut the decimal figures from the depth data, has been moved
outside the for loop that cycles through the whole image.
@traversaro
Copy link
Member

Sorry @elandini84, I forgot to update the devel after the recent release on master. Can you rebase on the latest devel? The only relevant change should be on the CHANGELOG.

CHANGELOG.md Outdated Show resolved Hide resolved
@traversaro
Copy link
Member

I also added a small suggestion to add a link to the PR in the changelog line.

CHANGELOG.md Outdated
@@ -18,6 +18,10 @@ The format of this document is based on [Keep a Changelog](https://keepachangelo
- It is now possible to remove and add again to the simulation models that use `gazebo_yarp_robotinterface` without any crash (https://github.com/robotology/gazebo-yarp-plugins/pull/618, https://github.com/robotology/gazebo-yarp-plugins/pull/619).
- Fixed value returned by getDeviceStatus method in `gazebo_yarp_laser` plugin (https://github.com/robotology/gazebo-yarp-plugins/pull/617).

### Fixed
- Removed implicit conversions from the depth data quantization in `GazeboYarpDepthCameraDriver::getDepthImage` which in at least one occasion caused an unexpected crash of the `rgbdSensor_nws_yarp`. Also, the calculation of the scalar coefficient (involving `math::pow`), used to cut the decimal figures from the depth data, has been moved outside the for loop that cycles through the whole image.

Copy link
Member

Choose a reason for hiding this comment

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

@elandini84 the section is under "4.3.0" released, but that release was already done, it should be moved under "Unreleased".

Copy link
Contributor Author

Choose a reason for hiding this comment

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

IT should be fine now. Thanks for the warning.

CHANGELOG.md Outdated Show resolved Hide resolved
@traversaro traversaro merged commit 004957a into robotology:devel Apr 6, 2022
@traversaro
Copy link
Member

traversaro commented Apr 6, 2022

Thanks @elandini84 !

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.

None yet

2 participants