This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ros/ros.h" | |
#include <sensor_msgs/image_encodings.h> | |
#include <sensor_msgs/Image.h> | |
#include <boost/algorithm/string/predicate.hpp> | |
#include <boost/date_time/posix_time/posix_time.hpp> | |
#include <boost/thread/thread.hpp> | |
#include <boost/thread/recursive_mutex.hpp> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM ubuntu:16.04 | |
#Inspired from https://github.com/erlerobot/gym-gazebo/blob/master/Dockerfile | |
RUN apt install -y -q --no-install-recommends software-properties-common | |
RUN add-apt-repository -y ppa:deadsnakes/ppa | |
RUN apt update | |
RUN apt install -y -q --no-install-recommends curl python3.6-dev wget | |
RUN curl -s https://bootstrap.pypa.io/get-pip.py | python3.6 - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
OpenCV Mat viewer in GDB | |
""" | |
import gdb | |
import cv2 | |
import numpy as np | |
class PlotterCommand(gdb.Command): |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <arm_neon.h> | |
const double __atanf_lut[4] = { | |
-0.0443265554792128, //p7 | |
-0.3258083974640975, //p3 | |
+0.1555786518463281, //p5 | |
+0.9997878412794807 //p1 | |
}; | |
const double __atanf_pi_2 = M_PI_2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Download script to download the m3u8 video stream files | |
""" | |
import multiprocessing as mp | |
from multiprocessing.pool import ThreadPool | |
import os | |
import subprocess | |
import sys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from typing import Any, Tuple | |
import rclpy | |
from rclpy.impl.implementation_singleton import rclpy_implementation as _rclpy | |
from rclpy.node import Node | |
from rclpy.signals import SignalHandlerGuardCondition | |
from rclpy.utilities import timeout_sec_to_nsec | |
def wait_for_message(msg_type: Any, node: Node, topic: str, |