We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
<sensor name="camera" type="camera">
<plugin filename="CameraVideoRecorder2" name="streamer::CameraVideoRecorder2">
<service>camera/record_video</service>
</plugin>
...
</sensor>
ls /dev/video*
sudo modprobe v4l2loopback
gz sim camera_video_record_dbl_pendulum_copy.sdf
gz service -s /camera/record_video --reqtype gz.msgs.VideoRecord --reptype gz.msgs.Boolean --timeout 300 --req 'start: true, format:"v4l2", save_filename:"/dev/video1"'
The text was updated successfully, but these errors were encountered:
Looks like line 349 this->dataPtr->format = _format.compare("v4l") == 0 ? "v4l2" : _format; must be replaced with this->dataPtr->format = _format.compare("v4l") == 0 || _format.compare("v4l2") == 0 ? "video4linux2,v4l2" : _format;
this->dataPtr->format = _format.compare("v4l") == 0 ? "v4l2" : _format;
this->dataPtr->format = _format.compare("v4l") == 0 || _format.compare("v4l2") == 0 ? "video4linux2,v4l2" : _format;
Sorry, something went wrong.
@vryabokon1705 any chance you could open a PR with that?
mjcarroll
No branches or pull requests
Environment
Gz-common: 5.4.2-1
Gz-sim: 7.6.0-1
Description
Steps to reproduce
<sensor name="camera" type="camera">
<plugin filename="CameraVideoRecorder2" name="streamer::CameraVideoRecorder2">
<service>camera/record_video</service>
</plugin>
...
</sensor>
ls /dev/video*
sudo modprobe v4l2loopback
find new created v4l2 loopback device path (let it be /dev/video1)
ls /dev/video*
gz sim camera_video_record_dbl_pendulum_copy.sdf
gz service -s /camera/record_video --reqtype gz.msgs.VideoRecord --reptype gz.msgs.Boolean --timeout 300 --req 'start: true, format:"v4l2", save_filename:"/dev/video1"'
Output
The text was updated successfully, but these errors were encountered: