Skip to content

Instantly share code, notes, and snippets.

View bhomaidan1990's full-sized avatar
๐Ÿ
Trying . . .

Belal Hmedan bhomaidan1990

๐Ÿ
Trying . . .
View GitHub Profile
@bhomaidan1990
bhomaidan1990 / yumi_motion_api_node
Created October 31, 2021 20:33
YuMi Motion API Node
#!/usr/bin/python3
import sys
from math import pi as PI
import rospy
import tf
from std_msgs.msg import Float64
from geometry_msgs.msg import *
from sensor_msgs.msg import *
from moveit_msgs.msg import *
@bhomaidan1990
bhomaidan1990 / Java Example
Created October 29, 2021 13:49
RWS in Java
import org.glassfish.jersey.client.authentication.HttpAuthenticationFeature;
import org.jsoup.Jsoup;
import org.jsoup.nodes.Document;
import org.jsoup.select.Elements;
import javax.ws.rs.client.Client;
import javax.ws.rs.client.ClientBuilder;
import javax.ws.rs.client.Entity;
import javax.ws.rs.client.Invocation;
import javax.ws.rs.core.Form;
@bhomaidan1990
bhomaidan1990 / grabber.py
Created April 12, 2021 04:50
grabber script to capture images continuously on a raspberry pi 3 module
import cv2
from time import sleep
resolution = (1024, 768)
cap = cv2.VideoCapture(0)
cap.set(cv2.CAP_PROP_FRAME_WIDTH, resolution[0]) # max: 2592
cap.set(cv2.CAP_PROP_FRAME_HEIGHT, resolution[1]) # max: 1944
while(True):