pub struct BehaviorExecutorConfig {
pub behavior_name: String,
pub behaviors_dir: String,
pub tick_rate_hz: f32,
pub max_ticks: Option<usize>,
pub log_stats: bool,
pub topics: Topics,
}Expand description
Configuration for the behavior executor node
This controls which behavior tree is loaded and executed.
Fields§
§behavior_name: StringName of the behavior to execute (e.g., “idle_wander”)
This should match a JSON file in the behaviors directory.
behaviors_dir: StringDirectory containing behavior tree templates
tick_rate_hz: f32Tick rate in Hz (how many times per second to tick the behavior tree)
max_ticks: Option<usize>Maximum number of ticks before stopping (None = run forever)
log_stats: boolWhether to log execution statistics
topics: TopicsTopics configuration
Implementations§
Source§impl BehaviorExecutorConfig
impl BehaviorExecutorConfig
Sourcepub fn control_topic(&self) -> String
pub fn control_topic(&self) -> String
Get control topic path from topics config
Sourcepub fn status_topic(&self) -> String
pub fn status_topic(&self) -> String
Get status topic path from topics config
Trait Implementations§
Source§impl Clone for BehaviorExecutorConfig
impl Clone for BehaviorExecutorConfig
Source§fn clone(&self) -> BehaviorExecutorConfig
fn clone(&self) -> BehaviorExecutorConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BehaviorExecutorConfig
impl Debug for BehaviorExecutorConfig
Source§impl Default for BehaviorExecutorConfig
impl Default for BehaviorExecutorConfig
Source§impl<'de> Deserialize<'de> for BehaviorExecutorConfig
impl<'de> Deserialize<'de> for BehaviorExecutorConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for BehaviorExecutorConfig
impl RefUnwindSafe for BehaviorExecutorConfig
impl Send for BehaviorExecutorConfig
impl Sync for BehaviorExecutorConfig
impl Unpin for BehaviorExecutorConfig
impl UnwindSafe for BehaviorExecutorConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more