-
Notifications
You must be signed in to change notification settings - Fork 268
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
Make Video recorder plugin work with MinimalScene #900
Conversation
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: ahcorde <ahcorde@gmail.com>
Require: gazebosim/gz-rendering#358 |
Signed-off-by: ahcorde <ahcorde@gmail.com>
@osrf-jenkins retest this please |
@chapulina open for review |
Signed-off-by: Louise Poubel <louise@openrobotics.org>
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.
@ahcorde , for expediency, I pushed some suggestions directly to this branch in 7650dda instead of opening a PR against this branch. In summary:
- Revert changes to
gui.config
- Merge
VideoRecorderLogic
intoVideoRecorder
like we're doing forTransformControl
, with alegacy
flag
Feel free to revert any of the changes I pushed as you see fit.
It seem to work for me with both MinimalScene
and GzScene3D
, but I'd appreciate it if @iche033 gives his ok when he's back. I'm mainly concerned about the extra camera update that we're doing in this plugin.
Codecov Report
@@ Coverage Diff @@
## main #900 +/- ##
=======================================
Coverage 63.40% 63.40%
=======================================
Files 240 240
Lines 19548 19548
=======================================
Hits 12394 12394
Misses 7154 7154 Continue to review full report at Codecov.
|
I think we may be able to skip the camera update in this plugin. Given that the render event is emitted after the |
Humm I think we may have a different issue then. Because the |
@chapulina @iche033 what about adding a new camera in the same position and orientation as the original one ? then we can do whatever we want with this camera, isn't it ? |
That's an interesting idea 🤔 The new camera would need to track the original camera. And I imagine we'd have to protect against both cameras rendering at the same time, which I understand is not supported by |
The other option for lockstepping is to spawn the new camera on the server side and do the recording there (instead of the recording from the gui). Maybe that's what you mean? You can probably tweak the camera_video_recorder system with a new option to record from the gui camera instead of a camera sensor. If user indicates to record from the gui camera, the system just creates a new camera with same configuration as the gui camera and tracks the gui camera's pose. |
The new approach of synchronizing |
Signed-off-by: ahcorde <ahcorde@gmail.com>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: Louise Poubel <louise@openrobotics.org>
Signed-off-by: ahcorde ahcorde@gmail.com
🎉 New feature
Summary
This PR is part of the consolidation between Scene 3D in
ign-gazebo
andign-gui
. This PR adds a plugin to record the user camera.It builds on top of #813
Test it
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge