mirror of
https://github.com/NousResearch/atropos.git
synced 2026-04-19 12:57:58 +00:00
linting
This commit is contained in:
parent
2efb690a24
commit
e7e747a396
6 changed files with 8 additions and 9 deletions
|
|
@ -46,4 +46,4 @@ The environment implements a reward function that balances:
|
|||
2. Spatial relationship constraints
|
||||
3. Task completion verification
|
||||
|
||||
The current implementation focuses on basic spatial tasks but is designed to be extensible for more complex scenarios. The reward function is structured to prevent common reward hacking strategies by requiring both position accuracy and spatial relationship satisfaction.
|
||||
The current implementation focuses on basic spatial tasks but is designed to be extensible for more complex scenarios. The reward function is structured to prevent common reward hacking strategies by requiring both position accuracy and spatial relationship satisfaction.
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
# This file makes Python treat the directory as a package.
|
||||
# This file makes Python treat the directory as a package.
|
||||
|
|
|
|||
|
|
@ -6,4 +6,4 @@ wandb>=0.15.0
|
|||
openai>=1.0.0
|
||||
# pydantic (if using for data classes, otherwise standard dataclasses are fine for MVP)
|
||||
# fastapi # Not needed for this combined MVP script approach
|
||||
# uvicorn # Not needed for this combined MVP script approach
|
||||
# uvicorn # Not needed for this combined MVP script approach
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@
|
|||
<script src="https://cdnjs.cloudflare.com/ajax/libs/three.js/r128/three.min.js"></script>
|
||||
<!-- Optional: OrbitControls for camera interaction -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/three@0.128.0/examples/js/controls/OrbitControls.js"></script>
|
||||
|
||||
|
||||
<script type="module" src="main.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -132,10 +132,9 @@ function updateScene(objectStates) { // objectStates is List of Dicts from serve
|
|||
console.warn("Unsupported object type for visualization:", objState.type);
|
||||
geometry = new THREE.BoxGeometry(1, 1, 1); // Default placeholder
|
||||
}
|
||||
|
||||
|
||||
const color = new THREE.Color(...(objState.color_rgba ? objState.color_rgba.slice(0,3) : [0.5, 0.5, 0.5]));
|
||||
const material = new THREE.MeshStandardMaterial({ color: color, roughness: 0.5, metalness: 0.1 });
|
||||
|
||||
threeObject = new THREE.Mesh(geometry, material);
|
||||
threeObject.name = objState.id; // Useful for debugging
|
||||
threeObject.castShadow = true; // Object casts shadows
|
||||
|
|
@ -183,4 +182,4 @@ function onWindowResize() {
|
|||
}
|
||||
|
||||
// --- Start Everything ---
|
||||
init();
|
||||
init();
|
||||
|
|
|
|||
|
|
@ -62,4 +62,4 @@ body {
|
|||
|
||||
canvas {
|
||||
display: block;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue