Crate bevy_sensor

Crate bevy_sensor 

Source
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§

CaptureCamera
Marker component for the capture camera
CaptureTarget
Marker component for the target object being captured
DownloadOptions
Options for downloading YCB objects.
ObjectRotation
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.
SensorConfig
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.
ViewpointConfig
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.