Struct openrr_planner::collision::RobotCollisionDetector
source · pub struct RobotCollisionDetector<N>{
pub robot: Chain<N>,
pub collision_detector: CollisionDetector<N>,
pub self_collision_pairs: Vec<(String, String)>,
}
Fields§
§robot: Chain<N>
Robot model instance used for collision detection
collision_detector: CollisionDetector<N>
Collision detector
self_collision_pairs: Vec<(String, String)>
Optional self collision check node names
Implementations§
source§impl<N> RobotCollisionDetector<N>
impl<N> RobotCollisionDetector<N>
CollisionDetector holding robot information
pub fn new( robot: Chain<N>, collision_detector: CollisionDetector<N>, self_collision_pairs: Vec<(String, String)>, ) -> Self
sourcepub fn detect_env<'a>(
&'a self,
target_shape: &'a dyn Shape<N>,
target_pose: &'a Isometry3<N>,
) -> EnvCollisionNames<'a, 'a, N> ⓘ
pub fn detect_env<'a>( &'a self, target_shape: &'a dyn Shape<N>, target_pose: &'a Isometry3<N>, ) -> EnvCollisionNames<'a, 'a, N> ⓘ
Detects collisions of the robot with an environmental object and returns names of the colliding links(joints)
target_shape: shape of the environmental object target_pose: pose of the environmental object
sourcepub fn detect_self(&self) -> SelfCollisionPairs<'_, N> ⓘ
pub fn detect_self(&self) -> SelfCollisionPairs<'_, N> ⓘ
Detects self collisions and returns name pairs of the self-colliding links(joints)
sourcepub fn env_collision_link_names(&self, objects: &Compound<N>) -> Vec<String>
pub fn env_collision_link_names(&self, objects: &Compound<N>) -> Vec<String>
Gets names of links colliding with environmental objects objects: environmental objects
sourcepub fn self_collision_link_pairs(&self) -> Vec<(String, String)>
pub fn self_collision_link_pairs(&self) -> Vec<(String, String)>
Gets names of self-colliding links
sourcepub fn is_env_collision_detected(&self, objects: &Compound<N>) -> bool
pub fn is_env_collision_detected(&self, objects: &Compound<N>) -> bool
Returns whether any collision of the robot with environmental objects is detected or not objects: environmental objects
sourcepub fn is_self_collision_detected(&self) -> bool
pub fn is_self_collision_detected(&self) -> bool
Returns whether any self collision of the robot is detected or not
sourcepub fn is_collision_detected(&self, objects: &Compound<N>) -> bool
pub fn is_collision_detected(&self, objects: &Compound<N>) -> bool
Returns whether any collision is detected or not objects: environmental objects
Auto Trait Implementations§
impl<N> Freeze for RobotCollisionDetector<N>where
N: Freeze,
impl<N> !RefUnwindSafe for RobotCollisionDetector<N>
impl<N> Send for RobotCollisionDetector<N>
impl<N> Sync for RobotCollisionDetector<N>
impl<N> Unpin for RobotCollisionDetector<N>where
N: Unpin,
impl<N> !UnwindSafe for RobotCollisionDetector<N>
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
source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
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>
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>
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 moresource§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self
from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self
is actually part of its subset T
(and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset
but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self
to the equivalent element of its superset.