Table of Contents:
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
# Copyright (c) 2021-2023, NVIDIA Corporation | |
# All rights reserved. | |
# | |
# Redistribution and use in source and binary forms, with or without | |
# modification, are permitted provided that the following conditions are met: | |
# | |
# 1. Redistributions of source code must retain the above copyright notice, this | |
# list of conditions and the following disclaimer. | |
# | |
# 2. Redistributions in binary form must reproduce the above copyright notice, |
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 "SparkFun_Qwiic_OTOS_Arduino_Library.h" | |
#include "Wire.h" | |
QwiicOTOS myOtos; | |
byte buffer[24]; // lsm + paa registers | |
//byte buffer[96]; // all registers | |
byte lsmData[12]; | |
byte paaData[12]; | |
void setup() { |
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 os | |
import glob | |
import time | |
import random | |
import subprocess | |
import numpy as np | |
import cv2 | |
import torch | |
from collections import OrderedDict |
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
// @file main.cpp | |
// @author Donghee Park | |
// | |
// Copyright (c) 2024 Donghee Park, all rights reserved | |
#include <cstdlib> | |
#include <fstream> | |
#include <iostream> | |
#include <unistd.h> | |
#include <math.h> |
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
#define ANALOG_READ 'a' | |
#define GET_BAUDRATE 'b' | |
#define PIN_MODE 'c' | |
#define DIGITAL_READ 'd' | |
#define READ_ENCODERS 'e' | |
#define MOTOR_SPEEDS 'm' | |
#define MOTOR_POSITIONS 'p' | |
#define MOTOR_RAW_PWM 'o' | |
//#define PING 'p' | |
#define RESET_ENCODERS 'r' |
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
var pc = null; | |
var localVideo = document.querySelector("video#localVideo"); | |
var serverVideo = document.querySelector("video#serverVideo"); | |
navigator.mediaDevices | |
.getUserMedia({ | |
video: { | |
height: 360, | |
width: 480, | |
}, |
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
// @file main.cpp | |
// @author Donghee Park | |
// | |
// Copyright (c) 2023 Donghee Park, all rights reserved | |
#include <iostream> | |
class Marine { | |
int hp; | |
int coord_x, coord_y; | |
int damage; |
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 carla | |
import random | |
client = carla.Client('127.0.0.1', 2000) | |
client.set_timeout(2.0) | |
world = client.get_world() | |
people = [] | |
for i in range(2): |
NewerOlder