#[repr(C)]pub struct mjsCompiler_ {Show 16 fields
pub autolimits: mjtByte,
pub boundmass: f64,
pub boundinertia: f64,
pub settotalmass: f64,
pub balanceinertia: mjtByte,
pub fitaabb: mjtByte,
pub degree: mjtByte,
pub eulerseq: [c_char; 3],
pub discardvisual: mjtByte,
pub usethread: mjtByte,
pub fusestatic: mjtByte,
pub inertiafromgeom: c_int,
pub inertiagrouprange: [c_int; 2],
pub saveinertial: mjtByte,
pub alignfree: c_int,
pub LRopt: mjLROpt,
}Fields§
§autolimits: mjtByte§boundmass: f64§boundinertia: f64§settotalmass: f64§balanceinertia: mjtByte§fitaabb: mjtByte§degree: mjtByte§eulerseq: [c_char; 3]§discardvisual: mjtByte§usethread: mjtByte§fusestatic: mjtByte§inertiafromgeom: c_int§inertiagrouprange: [c_int; 2]§saveinertial: mjtByte§alignfree: c_int§LRopt: mjLROptImplementations§
Source§impl mjsCompiler_
impl mjsCompiler_
Sourcepub fn autolimits(&self) -> bool
pub fn autolimits(&self) -> bool
Check infer “limited” attribute based on range.
Sourcepub fn balanceinertia(&self) -> bool
pub fn balanceinertia(&self) -> bool
Check automatically impose A + B >= C rule.
Sourcepub fn discardvisual(&self) -> bool
pub fn discardvisual(&self) -> bool
Check discard visual geoms in parser.
Sourcepub fn fusestatic(&self) -> bool
pub fn fusestatic(&self) -> bool
Check fuse static bodies with parent.
Sourcepub fn saveinertial(&self) -> bool
pub fn saveinertial(&self) -> bool
Check save explicit inertial clause for all bodies to XML.
Sourcepub fn set_autolimits(&mut self, value: bool)
pub fn set_autolimits(&mut self, value: bool)
Set infer “limited” attribute based on range.
Sourcepub fn set_balanceinertia(&mut self, value: bool)
pub fn set_balanceinertia(&mut self, value: bool)
Set automatically impose A + B >= C rule.
Sourcepub fn set_fitaabb(&mut self, value: bool)
pub fn set_fitaabb(&mut self, value: bool)
Set meshfit to aabb instead of inertia box.
Sourcepub fn set_degree(&mut self, value: bool)
pub fn set_degree(&mut self, value: bool)
Set angles in radians or degrees.
Sourcepub fn set_discardvisual(&mut self, value: bool)
pub fn set_discardvisual(&mut self, value: bool)
Set discard visual geoms in parser.
Sourcepub fn set_usethread(&mut self, value: bool)
pub fn set_usethread(&mut self, value: bool)
Set use multiple threads to speed up compiler.
Sourcepub fn set_fusestatic(&mut self, value: bool)
pub fn set_fusestatic(&mut self, value: bool)
Set fuse static bodies with parent.
Sourcepub fn set_saveinertial(&mut self, value: bool)
pub fn set_saveinertial(&mut self, value: bool)
Set save explicit inertial clause for all bodies to XML.
Sourcepub fn set_alignfree(&mut self, value: bool)
pub fn set_alignfree(&mut self, value: bool)
Set align free joints with inertial frame.
Sourcepub fn with_autolimits(self, value: bool) -> Self
pub fn with_autolimits(self, value: bool) -> Self
Builder method for setting infer “limited” attribute based on range.
Sourcepub fn with_balanceinertia(self, value: bool) -> Self
pub fn with_balanceinertia(self, value: bool) -> Self
Builder method for setting automatically impose A + B >= C rule.
Sourcepub fn with_fitaabb(self, value: bool) -> Self
pub fn with_fitaabb(self, value: bool) -> Self
Builder method for setting meshfit to aabb instead of inertia box.
Sourcepub fn with_degree(self, value: bool) -> Self
pub fn with_degree(self, value: bool) -> Self
Builder method for setting angles in radians or degrees.
Sourcepub fn with_discardvisual(self, value: bool) -> Self
pub fn with_discardvisual(self, value: bool) -> Self
Builder method for setting discard visual geoms in parser.
Sourcepub fn with_usethread(self, value: bool) -> Self
pub fn with_usethread(self, value: bool) -> Self
Builder method for setting use multiple threads to speed up compiler.
Sourcepub fn with_fusestatic(self, value: bool) -> Self
pub fn with_fusestatic(self, value: bool) -> Self
Builder method for setting fuse static bodies with parent.
Sourcepub fn with_saveinertial(self, value: bool) -> Self
pub fn with_saveinertial(self, value: bool) -> Self
Builder method for setting save explicit inertial clause for all bodies to XML.
Sourcepub fn with_alignfree(self, value: bool) -> Self
pub fn with_alignfree(self, value: bool) -> Self
Builder method for setting align free joints with inertial frame.
Sourcepub fn boundinertia(&self) -> f64
pub fn boundinertia(&self) -> f64
Return value of enforce minimum body diagonal inertia.
Sourcepub fn settotalmass(&self) -> f64
pub fn settotalmass(&self) -> f64
Return value of rescale masses and inertias; <=0: ignore.
Sourcepub fn set_boundmass(&mut self, value: f64)
pub fn set_boundmass(&mut self, value: f64)
Set enforce minimum body mass.
Sourcepub fn set_boundinertia(&mut self, value: f64)
pub fn set_boundinertia(&mut self, value: f64)
Set enforce minimum body diagonal inertia.
Sourcepub fn set_settotalmass(&mut self, value: f64)
pub fn set_settotalmass(&mut self, value: f64)
Set rescale masses and inertias; <=0: ignore.
Sourcepub fn with_boundmass(self, value: f64) -> Self
pub fn with_boundmass(self, value: f64) -> Self
Builder method for setting enforce minimum body mass.
Sourcepub fn with_boundinertia(self, value: f64) -> Self
pub fn with_boundinertia(self, value: f64) -> Self
Builder method for setting enforce minimum body diagonal inertia.
Sourcepub fn with_settotalmass(self, value: f64) -> Self
pub fn with_settotalmass(self, value: f64) -> Self
Builder method for setting rescale masses and inertias; <=0: ignore.
Sourcepub fn inertiafromgeom(&self) -> MjtInertiaFromGeom
pub fn inertiafromgeom(&self) -> MjtInertiaFromGeom
Return value of use geom inertias.
Sourcepub fn set_inertiafromgeom(&mut self, value: MjtInertiaFromGeom)
pub fn set_inertiafromgeom(&mut self, value: MjtInertiaFromGeom)
Set use geom inertias.
Sourcepub fn with_inertiafromgeom(self, value: MjtInertiaFromGeom) -> Self
pub fn with_inertiafromgeom(self, value: MjtInertiaFromGeom) -> Self
Builder method for setting use geom inertias.
Sourcepub fn inertiagrouprange(&self) -> &[i32; 2]
pub fn inertiagrouprange(&self) -> &[i32; 2]
Return an immutable reference to range of geom groups used to compute inertia.
Sourcepub fn inertiagrouprange_mut(&mut self) -> &mut [i32; 2]
pub fn inertiagrouprange_mut(&mut self) -> &mut [i32; 2]
Return a mutable reference to range of geom groups used to compute inertia.
Sourcepub fn eulerseq(&self) -> &[i8; 3]
pub fn eulerseq(&self) -> &[i8; 3]
Return an immutable reference to sequence for euler rotations.
Sourcepub fn eulerseq_mut(&mut self) -> &mut [i8; 3]
pub fn eulerseq_mut(&mut self) -> &mut [i8; 3]
Return a mutable reference to sequence for euler rotations.
Sourcepub fn lropt(&self) -> &MjLROpt
pub fn lropt(&self) -> &MjLROpt
Return an immutable reference to options for lengthrange computation.
Sourcepub fn lropt_mut(&mut self) -> &mut MjLROpt
pub fn lropt_mut(&mut self) -> &mut MjLROpt
Return a mutable reference to options for lengthrange computation.
Sourcepub fn with_inertiagrouprange(self, value: [i32; 2]) -> Self
pub fn with_inertiagrouprange(self, value: [i32; 2]) -> Self
Builder method for setting range of geom groups used to compute inertia.
Sourcepub fn with_eulerseq(self, value: [i8; 3]) -> Self
pub fn with_eulerseq(self, value: [i8; 3]) -> Self
Builder method for setting sequence for euler rotations.
Sourcepub fn with_lropt(self, value: MjLROpt) -> Self
pub fn with_lropt(self, value: MjLROpt) -> Self
Builder method for setting options for lengthrange computation.
Trait Implementations§
Source§impl Clone for mjsCompiler_
impl Clone for mjsCompiler_
Source§fn clone(&self) -> mjsCompiler_
fn clone(&self) -> mjsCompiler_
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more