pub struct ComponentBuilder { /* private fields */ }Expand description
Configures one mounted component instance.
Reached through RobotBuilder::component_with.
Implementations§
Source§impl ComponentBuilder
impl ComponentBuilder
Sourcepub fn mounted_on(self, link: &str) -> Self
pub fn mounted_on(self, link: &str) -> Self
Mount this instance on the named robot link rather than on the one generated from its instance id.
The link is added beneath base_link unless a stated joint already
attaches it.
Sourcepub fn direction_sign(self, capability: &str, sign: i8) -> Self
pub fn direction_sign(self, capability: &str, sign: i8) -> Self
State which way this instance’s capability is turned, as 1 or -1.
This is what Robot::require_motor and Robot::require_encoder
return beside the capability, so that a mirrored actuator is described
once on the model rather than by every consumer that drives it.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ComponentBuilder
impl RefUnwindSafe for ComponentBuilder
impl Send for ComponentBuilder
impl Sync for ComponentBuilder
impl Unpin for ComponentBuilder
impl UnsafeUnpin for ComponentBuilder
impl UnwindSafe for ComponentBuilder
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