pub struct DofLayout {
pub nq: usize,
pub nv: usize,
pub q_offsets: Vec<usize>,
pub v_offsets: Vec<usize>,
}Expand description
The q/v coordinate split for a model under this module’s layout.
nv and v_offsets agree with Model::nv / Model::v_offsets (velocity
coordinates are the motion subspace either way). nq and q_offsets do
not agree with the model’s when any spherical or free joint is present,
because those carry quaternions here — always index a diff-rollout q
through this layout, never through Model::q_offsets.
Fields§
§nq: usizeTotal number of position coordinates.
nv: usizeTotal number of velocity coordinates (== Model::nv).
q_offsets: Vec<usize>Position offset of each joint, parallel to Model::joints.
v_offsets: Vec<usize>Velocity offset of each joint, parallel to Model::joints.
Implementations§
Trait Implementations§
impl Eq for DofLayout
impl StructuralPartialEq for DofLayout
Auto Trait Implementations§
impl Freeze for DofLayout
impl RefUnwindSafe for DofLayout
impl Send for DofLayout
impl Sync for DofLayout
impl Unpin for DofLayout
impl UnsafeUnpin for DofLayout
impl UnwindSafe for DofLayout
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