Skip to content

Instantly share code, notes, and snippets.

@initmaks
initmaks / ros_simple_image_capture.py
Last active December 6, 2018 05:04
Capturing image from the color and depth ros topics of realsense camera
#!/usr/bin/env python
# Capturing image from the color and depth ros topics of realsense camera
# Adapted from http://wiki.ros.org/cv_bridge/Tutorials/ConvertingBetweenROSImagesAndOpenCVImagesPython
import rospy
import cv2
from sensor_msgs.msg import Image
from cv_bridge import CvBridge
class image_converter:

Keybase proof

I hereby claim:

  • I am initmaks on github.
  • I am initmaks (https://keybase.io/initmaks) on keybase.
  • I have a public key ASBLSmxC7O3ADw5HCuYI0QXNYhjB-QL8iFAh0aY_iJTllAo

To claim this, I am signing this object: