diff --git a/environments/community/padres_spatial/README.md b/environments/community/padres_spatial/README.md index 06f0279e..31ea42a4 100644 --- a/environments/community/padres_spatial/README.md +++ b/environments/community/padres_spatial/README.md @@ -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. \ No newline at end of file +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. diff --git a/environments/community/padres_spatial/__init__.py b/environments/community/padres_spatial/__init__.py index 490a3a4e..32113d18 100644 --- a/environments/community/padres_spatial/__init__.py +++ b/environments/community/padres_spatial/__init__.py @@ -1 +1 @@ -# This file makes Python treat the directory as a package. \ No newline at end of file +# This file makes Python treat the directory as a package. diff --git a/environments/community/padres_spatial/requirements.txt b/environments/community/padres_spatial/requirements.txt index a414490b..0debd02f 100644 --- a/environments/community/padres_spatial/requirements.txt +++ b/environments/community/padres_spatial/requirements.txt @@ -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 \ No newline at end of file +# uvicorn # Not needed for this combined MVP script approach diff --git a/environments/community/padres_spatial/visualization/index.html b/environments/community/padres_spatial/visualization/index.html index c2552f43..6d7564e3 100644 --- a/environments/community/padres_spatial/visualization/index.html +++ b/environments/community/padres_spatial/visualization/index.html @@ -19,7 +19,7 @@ - + - \ No newline at end of file + diff --git a/environments/community/padres_spatial/visualization/main.js b/environments/community/padres_spatial/visualization/main.js index ddc8cc87..38fb420b 100644 --- a/environments/community/padres_spatial/visualization/main.js +++ b/environments/community/padres_spatial/visualization/main.js @@ -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(); \ No newline at end of file +init(); diff --git a/environments/community/padres_spatial/visualization/style.css b/environments/community/padres_spatial/visualization/style.css index b963c040..e26d6ac6 100644 --- a/environments/community/padres_spatial/visualization/style.css +++ b/environments/community/padres_spatial/visualization/style.css @@ -62,4 +62,4 @@ body { canvas { display: block; -} \ No newline at end of file +}