-
Notifications
You must be signed in to change notification settings - Fork 53
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
Visualize Frustum #1095
base: main
Are you sure you want to change the base?
Visualize Frustum #1095
Conversation
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Utkarsh <[email protected]>
023c4b4
to
9cc0e9e
Compare
Signed-off-by: Utkarsh <[email protected]>
@ahcorde , thank you for review. I have addressed all the review comments. |
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.
please check linters:
/usr/share/gz/gz-cmake4/codecheck/cpplint.py:55: DeprecationWarning: module 'sre_compile' is deprecated
import sre_compile
/github/workspace/include/gz/rendering/FrustumVisual.hh:131: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/include/gz/rendering/Scene.hh:1121: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:81: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:84: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:84: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:87: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:87: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:222: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/include/gz/rendering/base/BaseFrustumVisual.hh:238: Tab found; better to use spaces [whitespace/tab] [1]
/github/workspace/include/gz/rendering/base/BaseScene.hh:850: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre/include/gz/rendering/ogre/OgreScene.hh:184: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre/src/OgreFrustumVisual.cc:32: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/ogre/src/OgreFrustumVisual.cc:33: Tab found; better to use spaces [whitespace/tab] [1]
/github/workspace/ogre/src/OgreFrustumVisual.cc:33: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/ogre/src/OgreFrustumVisual.cc:42: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre/src/OgreFrustumVisual.cc:94: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/ogre2/include/gz/rendering/ogre2/Ogre2Scene.hh:347: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:61: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:62: Tab found; better to use spaces [whitespace/tab] [1]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:62: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:71: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:151: Should have a space between // and comment [whitespace/comments] [4]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:154: Line ends in whitespace. Consider deleting these extra spaces. [whitespace/end_of_line] [4]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:175: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:176: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:177: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:193: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:194: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:195: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:268: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:269: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:272: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:275: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:278: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:281: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:283: Lines should be <= 80 characters long [whitespace/line_length] [2]
/github/workspace/ogre2/src/Ogre2FrustumVisual.cc:284: Lines should be <= 80 characters long [whitespace/line_length] [2]
Total errors found: 37
Signed-off-by: Utkarsh <[email protected]>
Thanks for the contribution! We follow semantic versioning and promise to maintain ABI compatibility within the same major version. Since this is targeting a release branch, we can't break ABI. The ABI checker did pick up that the changes broke ABI (compatibility needs to be 100%). The breaking change is mainly the new Ideally we should re-target this PR to the |
Thank you @iche033 for your comment and review. |
@iche033 , I changed the target branch to |
I created a PR (BA-Utkarsh#2) to your repo with some changes to function and variable names for consistency with the Camera class. I also added a |
🎉 New feature
Summary
This PR mainly adds the visualization of Frustum.
We could see it was present in gazebo classic and from gazebo garden onwards the plugin/feature is not available.
Test it
$ Build gazebo from source.
$ . install/setup.sh
$ gz sim examples/worlds/visualize_frustum.sdf
Test Ref images,
Play the simulation.
Select the topic from scroll down.
Refresh it to get the "logical_camera/frustum" topic.
Subcriibed to "logical_camera/frustum".
Final output
Checklist
codecheck
passedSupporting PRs