First of all install update and upgrade your system:
$ sudo apt update
$ sudo apt upgrade
Then, install required libraries:
#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> |
#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) |