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 pyrealsense2 as rs | |
import numpy as np | |
import cv2 | |
# Load YOLOv3 model | |
net = cv2.dnn.readNet("yolov3.weights", "yolov3.cfg") | |
layer_names = net.getLayerNames() | |
output_layers = [layer_names[i - 1] for i in net.getUnconnectedOutLayers().flatten()] | |
# Load COCO class labels |
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 pyrealsense2 as rs | |
import numpy as np | |
import cv2 | |
import requests | |
import http.client | |
import json | |
# Configure depth and color streams | |
pipeline = rs.pipeline() | |
config = rs.config() |
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
root@1c61c6f03539:/opt/ros/humble/share/realsense2_camera/launch# ros2 launch realsense2_camera rs_launch.py | |
[INFO] [launch]: All log files can be found below /root/.ros/log/2024-03-29-20-10-16-331349-1c61c6f03539-3984 | |
[INFO] [launch]: Default logging verbosity is set to INFO | |
[INFO] [realsense2_camera_node-1]: process started with pid [3985] | |
[realsense2_camera_node-1] [INFO] [1711743016.484734986] [camera.camera]: RealSense ROS v4.54.1 | |
[realsense2_camera_node-1] [INFO] [1711743016.484882040] [camera.camera]: Built with LibRealSense v2.54.1 | |
[realsense2_camera_node-1] [INFO] [1711743016.484907207] [camera.camera]: Running with LibRealSense v2.54.1 | |
[realsense2_camera_node-1] 29/03 20:10:16,486 ERROR [140732102732000] (librealsense-exception.h:52) Cannot identify '/dev/video0 Last Error: No such file or directory | |
[realsense2_camera_node-1] 29/03 20:10:16,486 ERROR [140732102732000] (librealsense-exception.h:52) Cannot identify '/dev/video1 Last Error: No such file or directory | |
[realsense2_camera_node-1] 29/03 |
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 network | |
from time import sleep | |
import machine | |
from picozero import LED | |
from picozero import Button | |
import requests | |
import utime | |
blue = LED(13) |
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 network | |
from time import sleep | |
import machine | |
from picozero import LED | |
from picozero import Button | |
import requests | |
blue = LED(13) | |
button = Button(18) |
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
x = requests.post('https://api.yo.im/yo', json = {"username":"topher","api_token":"c9feac-xxx-fb69c4"}) |
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
{ | |
"assets": [{ | |
"id": "loft-gltf", | |
"src": "https://xrpanet.s3.us-west-1.amazonaws.com/RugTestV1_101822.glb" | |
}], | |
"entities": [{ | |
"id": "loft", | |
"gltf-model": "#loft-gltf", | |
"scale": "1 1 1", | |
"position": "0 0 0", |
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
{ | |
"assets": [ | |
{ "id": "cityModel", "src": "https://xrpanet.s3.us-west-1.amazonaws.com/scaniverse3.glb"}, | |
{ "id": "InteonNFT-0", "src": "https://raw.githubusercontent.com/eshnil2000/i-nft-images/master/3D-GLTF/InteonNFT-0.gltf"}, | |
{ "id": "markModel", "src": "https://xrpanet.s3.us-west-1.amazonaws.com/markyahiro/scene.gltf"} | |
], | |
"entities": [ | |
{ "id":"city", "gltf-model": "#cityModel", "scale": "2 2 2"}, | |
{ "id":"InteonNFT-0", "gltf-model": "#InteonNFT-0", "scale": "5 5 5", "position": "0 2.5 2", "rotation": "-30 0 0"}, | |
{ "id":"MarkAvatar", "gltf-model": "#markModel", "scale": "2 2 2", "position": "1 2 1", "rotation": "0 180 0"} |
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
{ | |
"assets": [ | |
{ "id": "cityModel", "src": "https://xrpanet.s3.us-west-1.amazonaws.com/scaniverse3.glb"}, | |
{ "id": "InteonNFT-0", "src": "https://raw.githubusercontent.com/eshnil2000/i-nft-images/master/3D-GLTF/InteonNFT-0.gltf"} | |
], | |
"entities": [ | |
{ "id":"city", "gltf-model": "#cityModel", "scale": "2 2 2"}, | |
{ "id":"InteonNFT-0", "gltf-model": "#InteonNFT-0", "scale": "5 5 5", "position": "0 2.5 2", "rotation": "-30 0 0"} | |
] | |
} |
NewerOlder