-
Notifications
You must be signed in to change notification settings - Fork 766
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
Added option to specify x and y components of camera focal length. #374
Conversation
this->focal_length_y_ = this->focal_length_x_; | ||
} | ||
|
||
if (!this->sdf->HasElement("focalLength_x")) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
be consistent with the naming focalLength_x
vs focalLengthX
and make sure you only output debug messages if none of the parameters are set.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Corrected sdf parameters names.
In relation to the warnings, it only outputs msgs if the focalLength and focalLengthX / focalLengthY aren't specified.
Thanks for the feedback :)
50899ac
to
35d585f
Compare
@carlosmccosta Thank you, PR looks good. Do you have an example or test scenario for this PR? |
Projection mapping example: Gazebo world: |
I added a testing world with a chess board in: Some images showing the affect of increasing and decreasing each camera intrinsic parameters are available at: If you need further improvements let me known :) |
@osrf-jenkins run test please |
Good afternoon, The error reported is due to this latter commit: That overwrote this change: And reverted the update of the field name from this->focal_length_x_ to this->focal_length_ To fix this, either
How do you want to proceed? Have a nice day :) |
Thanks for the quick answer Carlos. I would prefer not to break the gazebo7 build in any moment in the current -devel branches, so I think that the best option is the second one that you proposed: update this PR with latest jade-devel changes. I really don't mind about creating a new pull request or overwrite this one, the one that works better for you. Hace a good day you too :) |
Good morning, I rebased this PR commit on top of the current jade-devel branch and rewrote the carlosmccosta:jade-devel git history. Have a nice day :) |
Rebase of this PR for melodic-devel in #767 |
No activity since 2018 and targeting and unsupported ROS version |
No description provided.