Expand description
bevy-sensor: Multi-view rendering for YCB object dataset
This library provides Bevy-based rendering of 3D objects from multiple viewpoints, designed to match TBP (Thousand Brains Project) habitat sensor conventions for use in neocortx sensorimotor learning experiments.
§Example
ⓘ
use bevy_sensor::{SensorConfig, ViewpointConfig, ObjectRotation};
let config = SensorConfig {
viewpoints: ViewpointConfig::default(),
object_rotations: ObjectRotation::tbp_benchmark_rotations(),
..Default::default()
};§YCB Dataset
Download YCB models programmatically:
ⓘ
use bevy_sensor::ycb::{download_models, Subset};
// Download representative subset (3 objects)
download_models("/tmp/ycb", Subset::Representative).await?;Re-exports§
pub use ycbust;
Modules§
- ycb
- YCB dataset utilities
Structs§
- Capture
Camera - Marker component for the capture camera
- Capture
Target - Marker component for the target object being captured
- Download
Options - Options for downloading YCB objects.
- Object
Rotation - Object rotation in Euler angles (degrees), matching TBP benchmark format. Format: [pitch, yaw, roll] or [x, y, z] rotation.
- Quat
- A quaternion representing an orientation.
- Sensor
Config - Full sensor configuration for capture sessions
- Transform
- Describe the position of an entity. If the entity has a parent, the position is relative to its parent position.
- Vec3
- A 3-dimensional vector.
- Viewpoint
Config - Configuration for viewpoint generation matching TBP habitat sensor behavior. Uses spherical coordinates to capture objects from multiple elevations.
Enums§
- YcbSubset
- Subset of objects to download.
Constants§
- REPRESENTATIVE_
OBJECTS - Representative subset of 3 commonly used objects.
- TEN_
OBJECTS - Subset of 10 commonly used objects.
Functions§
- generate_
viewpoints - Generate camera viewpoints using spherical coordinates.