-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7401ac9
commit 6fce0dc
Showing
9 changed files
with
560 additions
and
7,200 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
<html lang="en"> | ||
<head> | ||
<div> | ||
|
||
<meta | ||
property="og:title" | ||
content="Robotics Odyssey - Reimagining Robotics: Merging Systems Thinking and Dynamic Media" | ||
|
@@ -50,126 +49,22 @@ | |
/> | ||
<meta name="language" content="English" /> | ||
<link href="/static/css/output.css" rel="stylesheet" /> | ||
<script src="/static/js/htmx.js"></script> | ||
<!-- <script src="/static/js/htmx.js"></script> | ||
<script src="https://cdn.jsdelivr.net/npm/d3@7"></script> | ||
<link | ||
rel="stylesheet" | ||
type="text/css" | ||
href="https://cdn.jsdelivr.net/npm/@observablehq/inspector@5/dist/inspector.css" | ||
/> | ||
/> --> | ||
</div> | ||
<meta charset="UTF-8" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<title>CSS 3D Perspective Animation</title> | ||
|
||
<script> | ||
// const socket = new WebSocket("ws://localhost/ws"); | ||
const socket = {} | ||
socket.onopen = function(event) { | ||
console.log("WebSocket is open now."); | ||
}; | ||
|
||
socket.onmessage = function(event) { | ||
console.log("WebSocket message received:", event.data); | ||
}; | ||
socket.onclose = function(event) { | ||
console.log("WebSocket is closed now."); | ||
}; | ||
|
||
socket.onerror = function(error) { | ||
console.error("WebSocket error observed:", error); | ||
}; | ||
|
||
// const refreshInterval = setInterval(() => { | ||
// socket.send("refresh"); | ||
// }, 5000); | ||
|
||
// socket.onmessage = function(event) { | ||
// if (event.data === "refresh") { | ||
// window.location.reload(); | ||
// } else { | ||
// console.log("WebSocket message received:", event.data); | ||
// } | ||
// }; | ||
|
||
// // Cleanup interval on socket close | ||
// socket.onclose = function(event) { | ||
// clearInterval(refreshInterval); | ||
// console.log("WebSocket is closed now."); | ||
// }; | ||
// // frontend script | ||
// function refreshPage() { | ||
// window.location.reload(); | ||
// } | ||
|
||
// const eventSource = new EventSource("/sse"); | ||
// eventSource.onmessage = (event) => { | ||
// if (event.data === "refresh") { | ||
// refreshPage(); | ||
// } else { | ||
// console.log(event.data); | ||
// } | ||
// }; | ||
|
||
</script> | ||
|
||
<!-- <script type="module"> | ||
import { | ||
createLocalTracks, | ||
Participant, | ||
RemoteParticipant, | ||
RemoteTrack, | ||
RemoteTrackPublication, | ||
RoomEvent, | ||
VideoPresets, | ||
Track, | ||
LocalTrackPublication, | ||
LocalParticipant, | ||
Room | ||
} from 'https://unpkg.com/[email protected]/dist/livekit-client.esm.mjs?module' | ||
// Replace with a valid token | ||
// const data = { identity: "happydream" + Math.random() }; | ||
const token_get_url = `livekit_connect?identity="happydream.5"`; | ||
const datum = await d3.json(token_get_url); | ||
// {const roomName = 'my-room'; | ||
const token = datum.token | ||
//token_get_url = `https://shels-macbook-pro.jerboa-kokanue.ts.net/livekit?identity="happydream.5"` | ||
const client = new LiveKitClient({ | ||
// Your LiveKit server URL | ||
token: datum.token, | ||
url: datum.wsUrl | ||
}); | ||
client.connect(token).then(() => { | ||
const room = client.joinRoom(roomName); | ||
// Create a track from the local MP4 file | ||
const track = room.createTrack('video', 'local-video', { | ||
source: 'file', | ||
filePath: 'static/day1.mp4', | ||
}); | ||
// Publish the track to the room | ||
room.publishTrack(track); | ||
}); | ||
</script> | ||
--> | ||
|
||
</head> | ||
<body > | ||
|
||
<!-- {{template roboticsodyssey}} --> | ||
<div id="root"></div> | ||
<div id="app"></div> | ||
|
||
|
@@ -178,17 +73,6 @@ | |
</body> | ||
</html> | ||
|
||
<!-- | ||
<div id="observablehq-2a85717e"></div> | ||
<p>Credit: <a href="https://observablehq.com/@roboticsuniversity/alanthree">Three.js by roboticsuniversity</a></p> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@observablehq/inspector@5/dist/inspector.css"> | ||
<script type="module"> | ||
import {Runtime, Inspector} from "https://cdn.jsdelivr.net/npm/@observablehq/runtime@5/dist/runtime.js"; | ||
import define from "https://api.observablehq.com/@roboticsuniversity/alanthree.js?v=4"; | ||
new Runtime().module(define, Inspector.into("#observablehq-2a85717e")); | ||
</script> --> | ||
|
||
|
||
<!-- const fileKey = "your-file-key"; | ||
const apiKey = "your-api-token"; | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,33 +18,39 @@ | |
"devDependencies": { | ||
"@egoist/tailwindcss-icons": "^1.7.4", | ||
"@iconify-json/mdi": "^1.1.66", | ||
"@tailwindcss/forms": "^0.5.9", | ||
"@vitejs/plugin-react": "^4.3.2", | ||
"daisyui": "4.6.1", | ||
"eslint-config-prettier": "^9.1.0", | ||
"postcss": "^8.4.47", | ||
"prettier": "^3.3.3", | ||
"standard": "^17.1.2", | ||
"tailwindcss": "^3.4.13", | ||
"tailwindcss-3d": "^1.0.7", | ||
"vite": "^5.4.8", | ||
"vitepress": "^1.4.0", | ||
"@tailwindcss/forms": "^0.5.9", | ||
"postcss": "^8.4.47" | ||
"vitepress": "^1.4.0" | ||
}, | ||
"dependencies": { | ||
"d3": "^7.9.0", | ||
"@observablehq/runtime": "5", | ||
"dynamicland": "https://api.observablehq.com/@roboticsuniversity/dynamicland.tgz", | ||
"livekit": "https://api.observablehq.com/@roboticsuniversity/livekit.tgz", | ||
"3-planning-prediction": "https://api.observablehq.com/@roboticsuniversity/3-planning-prediction.tgz", | ||
"voxels-diffusion-policy-3d": "https://api.observablehq.com/@roboticsuniversity/voxels-diffusion-policy-3d.tgz", | ||
"@anthropic-ai/sdk": "^0.29.0", | ||
"@headlessui/react": "^2.1.10", | ||
"@observablehq/runtime": "5", | ||
"@heroicons/react": "^2.1.4", | ||
"framer-motion": "^11.2.10", | ||
|
||
"@octokit/rest": "^21.0.2", | ||
"@roboticsuniversity/agent-dashboard": "https://api.observablehq.com/@roboticsuniversity/[email protected]?v=3", | ||
"@roboticsuniversity/alan_how": "https://api.observablehq.com/@roboticsuniversity/alan_how.tgz?v=3", | ||
"@roboticsuniversity/dynamicland": "https://api.observablehq.com/@roboticsuniversity/dynamicland.tgz?v=3", | ||
"@roboticsuniversity/livekit": "https://api.observablehq.com/@roboticsuniversity/livekit.tgz", | ||
"@roboticsuniversity/ode-to-dynamicland-org": "https://api.observablehq.com/@roboticsuniversity/ode-to-dynamicland-org.tgz?v=3", | ||
"@roboticsuniversity/robotics-hardware": "https://api.observablehq.com/@roboticsuniversity/robotics-hardware.tgz?v=3", | ||
"autoprefixer": "^10.4.20", | ||
"clsx": "^2.1.1", | ||
"d3": "^7.9.0", | ||
"dotenv": "^16.4.5", | ||
"dynamicland": "https://api.observablehq.com/@roboticsuniversity/dynamicland.tgz", | ||
"livekit": "https://api.observablehq.com/@roboticsuniversity/livekit.tgz", | ||
"livekit-client": "^2.5.7", | ||
"livekit-server-sdk": "^2.7.0", | ||
"octokit": "^4.0.2", | ||
|
@@ -54,7 +60,6 @@ | |
"react-dom": "^18.3.1", | ||
"replicate": "^1.0.0", | ||
"sqlite3": "^5.1.7", | ||
"@anthropic-ai/sdk": "^0.29.0", | ||
"@octokit/rest": "^21.0.2" | ||
"voxels-diffusion-policy-3d": "https://api.observablehq.com/@roboticsuniversity/voxels-diffusion-policy-3d.tgz" | ||
} | ||
} |
Oops, something went wrong.