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