src: build without --feature simulation
This commit is contained in:
@@ -5,7 +5,7 @@ use enum_map::Enum;
|
||||
use enumset::EnumSetType;
|
||||
use nalgebra::{Vector2, Vector3};
|
||||
|
||||
use crate::{ego::engine::MotionState, simdata::StreamType};
|
||||
use crate::ego::engine::MotionState;
|
||||
|
||||
#[derive(Clone, Copy, Default, Debug)]
|
||||
pub enum Scene {
|
||||
@@ -105,6 +105,9 @@ pub enum SensorSource {
|
||||
Annotations
|
||||
}
|
||||
|
||||
#[cfg(feature="simulation")]
|
||||
use crate::simdata::StreamType;
|
||||
#[cfg(feature="simulation")]
|
||||
impl From<StreamType> for SensorSource {
|
||||
fn from(value: StreamType) -> Self {
|
||||
match value {
|
||||
|
||||
@@ -8,6 +8,8 @@ pub mod animation;
|
||||
pub mod idle;
|
||||
pub mod logging;
|
||||
pub mod graphics;
|
||||
|
||||
#[cfg(feature="simulation")]
|
||||
pub mod simdata;
|
||||
|
||||
extern crate alloc;
|
||||
|
||||
Reference in New Issue
Block a user