Skip to content

Instantly share code, notes, and snippets.

View nightduck's full-sized avatar

Oren Bell nightduck

View GitHub Profile
@nightduck
nightduck / Install_OpenCV4_CUDA10.md
Last active July 9, 2020 20:51 — forked from raulqf/Install_OpenCV4_CUDA11_CUDNN8.md
How to install OpenCV 4.2 with CUDA 10.0 in Ubuntu 18.04

How to install OpenCV 4.2.0 with CUDA 10.0 in Ubuntu distro 18.04

Custom instructions targetted at a ROS2 build on Jetson AGX meant to work with Airsim

First of all install update and upgrade your system:

    $ sudo apt update
    $ sudo apt upgrade

Then, install required libraries:

@nightduck
nightduck / streamPriorityRange.cu
Last active June 10, 2021 00:05
Check CUDA Stream Priority Range
#include <stdio.h>
#include <stdlib.h>
/* Compile with
* nvcc streamPriorityRange.cu -o run
*
* And run with:
* ./run
*
* 0 corresponds to the lowest priority (and the priority of the default stream)
@nightduck
nightduck / image_converter.cpp
Created May 22, 2020 18:56
cv_bridge demo in ROS2
#include <stdlib.h>
#include <functional>
#include "rclcpp/rclcpp.hpp"
#include "image_transport/image_transport.h"
#include <cv_bridge/cv_bridge.h>
#include "sensor_msgs/image_encodings.hpp"
#include <opencv2/imgproc/imgproc.hpp>
#include <opencv2/highgui/highgui.hpp>