-
Notifications
You must be signed in to change notification settings - Fork 18
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
Permission denied when getting or setting value for camera control #17
Comments
@kentoshima |
@kentoshima @manato Did you find a solution for the permission denied errors during node launch? How did you manage to overcome this issue? |
We have the ros2 camera node running now and can publish a smooth ros2 camera image stream. The "trick" was to launch our docker container with the "--privileged" flag. Apparently, the GMSL camera device needs some more permissions than the one coming from the TierIV USB converter box we did try before. Our current docker launch command looks similar to this:
Obviously, it's not a very satisfying solution to just launch the docker container with full system access. Thus, we would like to learn a bit more on how the ros2 driver accesses the video device and which system permissions are necessary (in addition to the ones already granted by mounting the video device into the docker container). What's the difference between the mounted camera device when using GMSL or the TierIV USB converter box? Docker mentions the default kernel capabilities granted when using the --device flag and the additional ones, which must be explicitly granted, here: https://docs.docker.com/engine/containers/run/#runtime-privilege-and-linux-capabilities Which additional kernel capabilities do we have to add in order to be able to drop the --privileged flag? |
[ERROR] [1712895934.763410546] [v4l2_camera]: Failed setting value for control Exposure Time, Absolute to 157: Permission denied (13)
when running the test node, I'm sure that I have the permission to modify the device(through
sudo chmod 666 /dev/video0
command), but still failed to run the node, also I tested running withroot
, no workedThe text was updated successfully, but these errors were encountered: