-
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
Added LightVisual #202
Added LightVisual #202
Conversation
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
Codecov Report
@@ Coverage Diff @@
## main #202 +/- ##
==========================================
+ Coverage 53.01% 56.99% +3.97%
==========================================
Files 143 151 +8
Lines 13600 14988 +1388
==========================================
+ Hits 7210 8542 +1332
- Misses 6390 6446 +56
Continue to review full report at Codecov.
|
turns out to be an issue on the ign-gazebo side. We are not attaching the light to the scene. By default ogre2 attaches a light without parent to the root but ogre1.x does not and we have to manually attach it to the scene tree ourselves. Here's a patch to make light visuals appear in ign-gazebo:
|
Can we move the code for creating the light visual to ign-gazebo gui plugin? So instead of always creating the |
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
/// \brief Enum for LightVisual types | ||
enum IGNITION_RENDERING_VISIBLE LightVisualType | ||
{ | ||
LightVisual_NONE = 0, |
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.
add /// \brief
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.
can you also change the naming convention of these enums to match others in ign-rendering?
e.g.
https://github.com/ignitionrobotics/ign-rendering/blob/ign-rendering4/include/ignition/rendering/Marker.hh#L38
so this would be something like LVT_NONE
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.
There is a conflict with LidarVisualType. Any recomendations ?
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.
ah that's unfortunate, how about LVT_EMPTY
?
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.
Signed-off-by: ahcorde <[email protected]>
…tionrobotics/ign-rendering into ahcorde/feature/LightVisual
Signed-off-by: ahcorde <[email protected]>
Signed-off-by: ahcorde <[email protected]>
…tionrobotics/ign-rendering into ahcorde/feature/LightVisual
Signed-off-by: Ian Chen <[email protected]>
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.
I added some doc in a4f25d0. Changes look good. I think windows build failure is an issue with the CI machine
This reverts commit f9b58e6. Signed-off-by: Shane Loretz <[email protected]>
@ahcorde can you check spotlights do not suffer from the same bug as Gazebo Classic doubling their FOV? gazebosim/gazebo-classic#2947 . Looking at the code it seems to me the same bug was copied... |
This PR adds LightVisual. It's related with this issue gazebosim/gz-sim#193
Ogre2 is working fine:
But in Ogre I'm only able to see the LightVisual attached to an object.
When I run the simple_demo which includes some lights I'm able to see it in both cases:
@iche033, any idea why in Gazebo the LightVisual is not being rendered ?
Signed-off-by: ahcorde [email protected]