(videoRealSense): implement the record and playback from realsense library
What does this MR do?
Adding record/playback functionalities in ::videoRealSense::SScan.
- Record function can records all streams synchronously in one file in rosbag format (.bag)
- Playback function can replay recording and emulate a realsense device (filters can be applied, and camera parameters are the same as the real device).
Also add color on Ogre's SPointList adaptor.
Closes #314 (closed) Closes #237 (closed)
How to test it?
With realsense device
-
Compile and Run ExRealSense
-
Select Device in camera selector(any device can be selected it doesn't matter SSCan will re-ask you if several realsenses are plugged in)
-
Play
-
Press record to record a sequence, you can also press pause it will pause the recording
-
Stop the recording, stop the camera
-
Select File with the camera selector
-
Select the previously recorded file
-
Press play, you should visualize the recorded sequence
NOTE: Some actions are disabled when playing from a file, such as presets or IR emitter since you can not access to the device internal memory.
NOTE 2: infrared frame are also recorded, so the "Infra to Color" switch should work when playing recorded sequence.
Without realsense device
Please start at step 7. of the previous section, and replace the file by this one.
Data
Recorded sequence with realsense D415.
Some results
Additional tests to run
-
windows -
macos -
linux
Associated Issues/Merge Requests
Closes #314 (closed) Closes #237 (closed)