Closed magicbycalvin closed 1 year ago
Confirmed this behavior on my system as well, running directly on my system, same setup, Nvidia RTX 3080. The video recorder is working correctly in the example world and freezes VRX.
I found out that you can avoid the video recording from hanging by setting the lockstep
parameter inside of the VideoRecorder
plugin within the SDF file to false
. I am not sure whether this is a good long term solution. Lockstep seems like something that would be valuable for recording in sim time. However, I wonder if lockstep isn't set in some other file and is therefore working as expected; only causing a deadlock when it is called twice. I don't know what I could do to check this hypothesis nor do I know how else I could fix it though.
Hey @magicbycalvin, I observed that if you load the video recorder plugin from the plugin menu, the video recording does work. Please have a look at the following recording:
https://github.com/osrf/vrx/assets/64950661/794cdc2f-5a53-40c5-9c9b-2134626b9c6b
Further, if I use the button on the top left; it doesn't.
I think this particular issue is not related to VRX, but it is also a bug with gz-sim
as it can be seen here
Closing this because a workaround is available already and the underlying issue requires an upstream resolution.
Describe the bug When using the graphical button to start a video recording, the simulation hangs indefinitely and needs to be force stopped.
Expected behavior Video is properly recorded.
To Reproduce List the steps to reproduce the problem:
ros2 launch vrx_gz competition.launch.py world:=sydney_regatta
Record Video
camera icon. Bug occurs regardless of whether mp4 or ogv is selected.System Configuration: Tell us about your system. Note that the VRX repo was pulled today and the installation instructions were followed using the most up to date version.
Screenshots
Additional notes My goal is to record video using the simulation time since it is only able to run at about 30% of real time.