Skip to content

Instantly share code, notes, and snippets.

View mhdadk's full-sized avatar

Mahmoud Abdelkhalek mhdadk

View GitHub Profile
@mhdadk
mhdadk / CMakeLists.txt
Created June 4, 2023 20:15 — forked from jarvisschultz/CMakeLists.txt
Simple Float32MultiArray +Eigen Demo
cmake_minimum_required(VERSION 3.5.1)
project(matrix_demo)
find_package(catkin REQUIRED
rospy
roscpp
std_msgs
)
include_directories(
@mhdadk
mhdadk / webcam_capture.cpp
Created August 4, 2023 13:25 — forked from sammy17/webcam_capture.cpp
Simple C++ program to capture a webcam frame in Linux
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <linux/ioctl.h>
#include <linux/types.h>
#include <linux/v4l2-common.h>
#include <linux/v4l2-controls.h>
#include <linux/videodev2.h>
#include <fcntl.h>
#include <unistd.h>