mujoco_Simulate

Struct mujoco_Simulate 

Source
#[repr(C)]
pub struct mujoco_Simulate {
Show 114 fields pub is_passive_: bool, pub mnew_: *mut mjModel, pub dnew_: *mut mjData, pub m_: *mut mjModel, pub d_: *mut mjData, pub ncam_: c_int, pub nkey_: c_int, pub state_size_: c_int, pub nhistory_: c_int, pub history_cursor_: c_int, pub body_parentid_: __BindgenOpaqueArray<u64, 3usize>, pub jnt_type_: __BindgenOpaqueArray<u64, 3usize>, pub jnt_group_: __BindgenOpaqueArray<u64, 3usize>, pub jnt_qposadr_: __BindgenOpaqueArray<u64, 3usize>, pub jnt_range_: __BindgenOpaqueArray<u64, 3usize>, pub jnt_names_: __BindgenOpaqueArray<u64, 3usize>, pub actuator_group_: __BindgenOpaqueArray<u64, 3usize>, pub actuator_ctrlrange_: __BindgenOpaqueArray<u64, 3usize>, pub actuator_names_: __BindgenOpaqueArray<u64, 3usize>, pub equality_names_: __BindgenOpaqueArray<u64, 3usize>, pub history_: __BindgenOpaqueArray<u64, 3usize>, pub qpos_: __BindgenOpaqueArray<u64, 3usize>, pub qpos_prev_: __BindgenOpaqueArray<u64, 3usize>, pub ctrl_: __BindgenOpaqueArray<u64, 3usize>, pub ctrl_prev_: __BindgenOpaqueArray<u64, 3usize>, pub eq_active_: __BindgenOpaqueArray<u64, 3usize>, pub eq_active_prev_: __BindgenOpaqueArray<u64, 3usize>, pub m_passive_: *mut mjModel, pub d_passive_: *mut mjData, pub user_scn_geoms_: __BindgenOpaqueArray<u64, 3usize>, pub mjopt_prev_: mjOption, pub mjvis_prev_: mjVisual, pub mjstat_prev_: mjStatistic, pub opt_prev_: mjvOption, pub cam_prev_: mjvCamera, pub warn_vgeomfull_prev_: c_int, pub pending_: mujoco_Simulate__bindgen_ty_1, pub mtx: mujoco_SimulateMutex, pub cond_loadrequest: std_condition_variable_any, pub frames_: c_int, pub last_fps_update_: u64, pub fps_: f64, pub spacing: c_int, pub color: c_int, pub font: c_int, pub ui0_enable: c_int, pub ui1_enable: c_int, pub help: c_int, pub info: c_int, pub profiler: c_int, pub sensor: c_int, pub pause_update: c_int, pub fullscreen: c_int, pub vsync: c_int, pub busywait: c_int, pub key: c_int, pub scrub_index: c_int, pub run: c_int, pub exitrequest: std_atomic_int, pub droploadrequest: std_atomic_int, pub screenshotrequest: std_atomic_int, pub uiloadrequest: std_atomic_int, pub newfigurerequest: std_atomic_int, pub newtextrequest: std_atomic_int, pub newimagerequest: std_atomic_int, pub loadrequest: c_int, pub load_error: [c_char; 1000], pub dropfilename: [c_char; 1000], pub filename: [c_char; 1000], pub previous_filename: [c_char; 1000], pub real_time_index: c_int, pub speed_changed: bool, pub measured_slowdown: f32, pub ctrl_noise_std: f64, pub ctrl_noise_rate: f64, pub field: [c_char; 300], pub index: c_int, pub disable: [c_int; 17], pub enable: [c_int; 6], pub enableactuator: [c_int; 6], pub camera: c_int, pub scn: mjvScene, pub cam: *mut mjvCamera, pub opt: *mut mjvOption, pub pert: *mut mjvPerturb, pub figconstraint: mjvFigure, pub figcost: mjvFigure, pub figtimer: mjvFigure, pub figsize: mjvFigure, pub figsensor: mjvFigure, pub user_scn: *mut mjvScene, pub user_scn_flags_prev_: [mjtByte; 10], pub user_figures_: __BindgenOpaqueArray<u64, 3usize>, pub user_figures_new_: __BindgenOpaqueArray<u64, 3usize>, pub user_texts_: __BindgenOpaqueArray<u64, 3usize>, pub user_texts_new_: __BindgenOpaqueArray<u64, 3usize>, pub user_images_: __BindgenOpaqueArray<u64, 3usize>, pub user_images_new_: __BindgenOpaqueArray<u64, 3usize>, pub refresh_rate: c_int, pub window_pos: [c_int; 2], pub window_size: [c_int; 2], pub platform_ui: mujoco_GlfwAdapter, pub uistate: *mut mjuiState, pub ui0: mjUI, pub ui1: mjUI, pub def_option: [mjuiDef; 13], pub def_simulation: [mjuiDef; 14], pub def_watch: [mjuiDef; 5], pub info_title: [c_char; 1000], pub info_content: [c_char; 1000], pub cond_upload_: std_condition_variable_any, pub texture_upload_: c_int, pub mesh_upload_: c_int, pub hfield_upload_: c_int,
}

Fields§

§is_passive_: bool§mnew_: *mut mjModel§dnew_: *mut mjData§m_: *mut mjModel§d_: *mut mjData§ncam_: c_int§nkey_: c_int§state_size_: c_int§nhistory_: c_int§history_cursor_: c_int§body_parentid_: __BindgenOpaqueArray<u64, 3usize>§jnt_type_: __BindgenOpaqueArray<u64, 3usize>§jnt_group_: __BindgenOpaqueArray<u64, 3usize>§jnt_qposadr_: __BindgenOpaqueArray<u64, 3usize>§jnt_range_: __BindgenOpaqueArray<u64, 3usize>§jnt_names_: __BindgenOpaqueArray<u64, 3usize>§actuator_group_: __BindgenOpaqueArray<u64, 3usize>§actuator_ctrlrange_: __BindgenOpaqueArray<u64, 3usize>§actuator_names_: __BindgenOpaqueArray<u64, 3usize>§equality_names_: __BindgenOpaqueArray<u64, 3usize>§history_: __BindgenOpaqueArray<u64, 3usize>§qpos_: __BindgenOpaqueArray<u64, 3usize>§qpos_prev_: __BindgenOpaqueArray<u64, 3usize>§ctrl_: __BindgenOpaqueArray<u64, 3usize>§ctrl_prev_: __BindgenOpaqueArray<u64, 3usize>§eq_active_: __BindgenOpaqueArray<u64, 3usize>§eq_active_prev_: __BindgenOpaqueArray<u64, 3usize>§m_passive_: *mut mjModel§d_passive_: *mut mjData§user_scn_geoms_: __BindgenOpaqueArray<u64, 3usize>§mjopt_prev_: mjOption§mjvis_prev_: mjVisual§mjstat_prev_: mjStatistic§opt_prev_: mjvOption§cam_prev_: mjvCamera§warn_vgeomfull_prev_: c_int§pending_: mujoco_Simulate__bindgen_ty_1§mtx: mujoco_SimulateMutex§cond_loadrequest: std_condition_variable_any§frames_: c_int§last_fps_update_: u64§fps_: f64§spacing: c_int§color: c_int§font: c_int§ui0_enable: c_int§ui1_enable: c_int§help: c_int§info: c_int§profiler: c_int§sensor: c_int§pause_update: c_int§fullscreen: c_int§vsync: c_int§busywait: c_int§key: c_int§scrub_index: c_int§run: c_int§exitrequest: std_atomic_int§droploadrequest: std_atomic_int§screenshotrequest: std_atomic_int§uiloadrequest: std_atomic_int§newfigurerequest: std_atomic_int§newtextrequest: std_atomic_int§newimagerequest: std_atomic_int§loadrequest: c_int§load_error: [c_char; 1000]§dropfilename: [c_char; 1000]§filename: [c_char; 1000]§previous_filename: [c_char; 1000]§real_time_index: c_int§speed_changed: bool§measured_slowdown: f32§ctrl_noise_std: f64§ctrl_noise_rate: f64§field: [c_char; 300]§index: c_int§disable: [c_int; 17]§enable: [c_int; 6]§enableactuator: [c_int; 6]§camera: c_int§scn: mjvScene§cam: *mut mjvCamera§opt: *mut mjvOption§pert: *mut mjvPerturb§figconstraint: mjvFigure§figcost: mjvFigure§figtimer: mjvFigure§figsize: mjvFigure§figsensor: mjvFigure§user_scn: *mut mjvScene§user_scn_flags_prev_: [mjtByte; 10]§user_figures_: __BindgenOpaqueArray<u64, 3usize>§user_figures_new_: __BindgenOpaqueArray<u64, 3usize>§user_texts_: __BindgenOpaqueArray<u64, 3usize>§user_texts_new_: __BindgenOpaqueArray<u64, 3usize>§user_images_: __BindgenOpaqueArray<u64, 3usize>§user_images_new_: __BindgenOpaqueArray<u64, 3usize>§refresh_rate: c_int§window_pos: [c_int; 2]§window_size: [c_int; 2]§platform_ui: mujoco_GlfwAdapter§uistate: *mut mjuiState§ui0: mjUI§ui1: mjUI§def_option: [mjuiDef; 13]§def_simulation: [mjuiDef; 14]§def_watch: [mjuiDef; 5]§info_title: [c_char; 1000]§info_content: [c_char; 1000]§cond_upload_: std_condition_variable_any§texture_upload_: c_int§mesh_upload_: c_int§hfield_upload_: c_int

Implementations§

Source§

impl mujoco_Simulate

Source

pub unsafe fn Sync(&mut self, state_only: bool)

Source

pub unsafe fn UpdateHField(&mut self, hfieldid: c_int)

Source

pub unsafe fn UpdateMesh(&mut self, meshid: c_int)

Source

pub unsafe fn UpdateTexture(&mut self, texid: c_int)

Source

pub unsafe fn LoadMessage(&mut self, displayed_filename: *const c_char)

Source

pub unsafe fn Load( &mut self, m: *mut mjModel, d: *mut mjData, displayed_filename: *const c_char, )

Source

pub unsafe fn LoadMessageClear(&mut self)

Source

pub unsafe fn LoadOnRenderThread(&mut self)

Source

pub unsafe fn Render(&mut self)

Source

pub unsafe fn RenderStep(&mut self, update_timer: bool) -> bool

Source

pub unsafe fn RenderInit(&mut self)

Source

pub unsafe fn RenderCleanup(&mut self)

Source

pub unsafe fn AddToHistory(&mut self)

Source

pub unsafe fn InjectNoise(&mut self)

Source

pub unsafe fn destructFromRust(&mut self)

Source

pub unsafe fn Running(&mut self) -> bool

Source

pub unsafe fn new( cam: *mut mjvCamera, opt: *mut mjvOption, pert: *mut mjvPerturb, user_scn: *mut mjvScene, is_passive: bool, ) -> Self

Trait Implementations§

Source§

impl Clone for mujoco_Simulate

Source§

fn clone(&self) -> mujoco_Simulate

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.