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 arm64v8/ubuntu:20.04 | |
RUN apt-get update \ | |
&& apt-get -y install --no-install-recommends \ | |
python3 \ | |
python3-pip \ | |
python3-venv \ | |
python-is-python3 \ | |
&& apt-get autoremove -y \ | |
&& apt-get clean -y \ | |
&& rm -rf /var/lib/apt/lists/* |
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
https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers | |
The publisher is ms-vscode-remote. | |
The extension name is remote-containers. | |
The version number is 0.395.0. | |
``` | |
https://ms-vscode-remote.gallery.vsassets.io/_apis/public/gallery/publisher/ms-vscode-remote/extension/remote-containers/0.395.0/assetbyname/Microsoft.VisualStudio.Services.VSIXPackage | |
``` |
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
#!/usr/bin/env python3 | |
import rclpy | |
from rclpy.node import Node | |
import gi | |
gi.require_version('Gst', '1.0') | |
from gi.repository import Gst, GLib | |
import threading | |
from gst_demos.srv import StreamRequest | |
import traceback |
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
local MOUNT_STATUS = {} | |
MOUNT_STATUS.id = 158 | |
MOUNT_STATUS.fields = { | |
{ "pointing_a", "<I4" }, | |
{ "pointing_b", "<I4" }, | |
{ "pointing_c", "<I4" }, | |
{ "mount_mode", "<B" }, | |
{ "target_system", "<B" }, | |
{ "target_component", "<B" } | |
} |
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
import gi | |
import logging | |
gi.require_version("Gst", "1.0") | |
from gi.repository import GObject, Gst | |
from threading import Thread, Event | |
from dataclasses import dataclass | |
from fastapi import FastAPI | |
log = logging.getLogger(__name__) | |
Gst.init(None) |
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
# unbind | |
unbind C-b | |
unbind '"' | |
unbind % | |
# base1 numbering | |
set -g base-index 1 | |
setw -g pane-base-index 1 | |
#bind ctrl-a as a prefix |
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
"""install | |
python -m pip install opencv-python | |
python -m pip install pyzmq | |
""" | |
import multiprocessing | |
import cv2 | |
import numpy as np | |
import zmq | |
import time | |
import pickle |
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
import cv2 | |
import numpy as np | |
import time | |
from timeit import default_timer as timer | |
HEIGHT=480 | |
WIDTH=640 | |
FONT=cv2.FONT_HERSHEY_SIMPLEX | |
bottomLeftCornerOfText = (100,100) |
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
import gi | |
gi.require_version('Gst', '1.0') | |
import traceback | |
import sys | |
from gi.repository import Gst, GObject | |
import multiprocessing | |
class base(): | |
def __init__(self, name): | |
self.pipeline = None |
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
#!/usr/bin/env python3 | |
import sys | |
import os | |
import cv2 | |
import gi | |
import signal | |
import threading | |
gi.require_version('Gst', '1.0') | |
from gi.repository import Gst, GObject |
NewerOlder