Struct rubullet::StateLoggingOptions [−][src]
pub struct StateLoggingOptions { pub object_ids: Vec<BodyId>, pub max_log_dof: Option<usize>, pub body_a: Option<BodyId>, pub link_index_a: Option<Option<usize>>, pub body_b: Option<BodyId>, pub link_index_b: Option<Option<usize>>, pub log_flags: Option<LogFlags>, // some fields omitted }
Fields
object_ids: Vec<BodyId>
If left empty, the logger may log every object, otherwise the logger just logs the objects in the list.
max_log_dof: Option<usize>
Maximum number of joint degrees of freedom to log (excluding the base dofs).#
This applies to GenericRobot
Default value is 12. If a robot exceeds the number of dofs, it won’t get logged at all.
body_a: Option<BodyId>
Applies to ContactPoints
.
If provided, only log contact points involving body_a.
link_index_a: Option<Option<usize>>
Applies to ContactPoints
.
If provided, only log contact points involving link_index_a for body_a. Use Some(None)
to
specify the base.
body_b: Option<BodyId>
Applies to ContactPoints
.
If provided,only log contact points involving bodyUniqueIdB.
link_index_b: Option<Option<usize>>
Applies to ContactPoints
.
If provided, only log contact points involving link_index_b for body_b. Use Some(None)
to
specify the base.
log_flags: Option<LogFlags>
Use JOINT_TORQUES to also log joint torques due to joint motors.
Trait Implementations
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for StateLoggingOptions
impl Send for StateLoggingOptions
impl Sync for StateLoggingOptions
impl Unpin for StateLoggingOptions
impl UnwindSafe for StateLoggingOptions
Blanket Implementations
Mutably borrows from an owned value. Read more
type Output = T
type Output = T
Should always be Self
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
pub fn vzip(self) -> V