- Instalar TypeScript y demás dependencias
npm i -D typescript @types/node ts-node-dev rimraf
- Inicializar el archivo de configuración de TypeScript ( Se puede configurar al gusto)
npx tsc --init --outDir dist/ --rootDir src
Más información - Docs Oficiales
npm i -D typescript @types/node
function create() { | |
// Load a map from a 2D array of tile indices | |
const level = [ | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | |
[ 0, 1, 2, 3, 0, 0, 0, 1, 2, 3, 0 ], | |
[ 0, 5, 6, 7, 0, 0, 0, 5, 6, 7, 0 ], | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | |
[ 0, 0, 0, 14, 13, 14, 0, 0, 0, 0, 0 ], | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], | |
[ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ], |
""" | |
In this script, we demonstrate how to use DINOBot to do one-shot imitation learning. | |
You first need to install the following repo and its requirements: https://github.com/ShirAmir/dino-vit-features. | |
You can then run this file inside that repo. | |
There are a few setup-dependent functions you need to implement, like getting an RGBD observation from the camera | |
or moving the robot, that you will find on top of this file. | |
""" | |
import torch | |
import numpy as np |
Más información - Docs Oficiales
npm i -D typescript @types/node
var socket; | |
var fcastUrl; | |
fetch('https://fastcast.semfs.engsvc.go.com/public/websockethost') | |
.then( | |
function(response) { | |
if (response.status !== 200) { | |
console.log('Looks like there was a problem. Status Code: ' + response.status); | |
return; | |
} |