Skip to content

Instantly share code, notes, and snippets.

View alduxvm's full-sized avatar

Aldo Vargas alduxvm

View GitHub Profile
@alduxvm
alduxvm / gist:1a659e0958b7c72cee0b19efccb0f1f5
Last active April 29, 2023 18:56
DJI M600 teleoperation ROS style
#!/usr/bin/env python3
import sys, select, termios, tty
import rospy
from sensor_msgs.msg import Joy
import std_msgs.msg
update_rate = 0.1 # 100 hz loop cycle
msg = """
@alduxvm
alduxvm / qx-10.py
Created April 12, 2021 17:21
Sony QX-10 open stream with python3 and opencv
#!/usr/bin/env python3
"""
Before using this script: manually connect to the Wi-Fi of the camera and make sure you have the 10.0.1.1 address in your machine
"""
import cv2
import urllib.request
import numpy as np
stream = urllib.request.urlopen('http://10.0.0.1:60152/liveview.JPG?%211234%21http%2dget%3a%2a%3aimage%2fjpeg%3a%2a%21%21%21%21%21')
buf = b''