pyrealsense | platform ctypes/Cython wrapper
kandi X-RAY | pyrealsense Summary
kandi X-RAY | pyrealsense Summary
Cross-platform ctypes/Cython wrapper to the librealsense C-library version 1.x. This wrapper is useful for legacy models such as SR300, F200 and R200. OBS: there is no plan to support librealsense 2.x, as Intel already provides the Python binding through pyrealsense2.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get a device .
- Get all the devices .
- Set device options .
- Saves depth_intrinsics to file .
- Convert an RGB frame to RGB .
- Load the depth_intrinsics .
- Raises ValidationError .
- Main entry point .
- Evaluate a function .
- Deproject a given depth into a point cloud .
pyrealsense Key Features
pyrealsense Examples and Code Snippets
Community Discussions
Trending Discussions on pyrealsense
QUESTION
I have a drone in a Gazebo environment with a RealSense d435 camera on it. My plan is to use YOLO to find the center of an object of interest, and then find the depth of that point from the depth image. I heard that the depth camera outputs an image where the depth values are encoded in the RGB values. When further looking this up online, I found that there is a pyrealsense2 library that has functions for everything I need.
The implementations I've seen online need you to create a pyrealsense.pipeline()
and get your frames from that. The issue is this seems to only work if you have a RealSense camera connected to your computer. Since mine exists in the Gazebo environment, I need a way to get and use the depth frame in a ROS callback. How would I do this? Any pointers would be greatly appreciated
ANSWER
Answered 2020-Jul-17 at 17:52yeah, you can do this with help of a ROS subscriber as follows (most of the code was taken from here):
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install pyrealsense
Ubuntu Trusty, python 2 and 3:.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page