Replies: 1 comment 2 replies
-
|
Our solution was to create the PictureSnapper node. This module subscribes to the camera's color image topic and, when triggered by a service, saves the most recent image to the specified file. Once the image has been saved, you could then use the |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I am very inexperienced with Python and I am wondering how I can grab an image from the Realsense camera while the perception module is active. When I try to get the frame using a method in a separate script I get this error.
File "board-location.py", line 28, in main rs = RealsenseCamera() File "/home/monomus/interbotix_ws/crois_scripts/rs_ttt.py", line 19, in __init__ self.pipeline.start(config) RuntimeError: xioctl(VIDIOC_S_FMT) failed Last Error: Device or resource busyI assume this is because the perception module is already communicating with the camera, as if I enable the control module I am still able to communicate with the camera via my own method. This is how I would grab the frame from the camera in a separate script that imports from a module.
rs = RealsenseCamera()What do I need to put in the image variable to show the current frame? What should I import to make this possible? My vocabulary with Python is not great so if any wording is confusing I will do my best to explain.
Thank you
Beta Was this translation helpful? Give feedback.
All reactions