#[unsafe(no_mangle)]pub unsafe extern "C" fn phytrace_builder_set_motion(
builder: *mut PhyTraceBuilderHandle,
speed_mps: f64,
vx: f64,
vy: f64,
vz: f64,
roll_dps: f64,
pitch_dps: f64,
yaw_dps: f64,
cmd_linear_mps: f64,
cmd_angular_dps: f64,
frame_id: *const c_char,
) -> i32Expand description
Set the motion domain on the builder.
All floating-point parameters use f64::NAN to indicate “not set”.
§Parameters
speed_mps— Speed in meters/second, or NANvx,vy,vz— Linear velocity components in m/s, or NANroll_dps,pitch_dps,yaw_dps— Angular velocity in deg/s, or NANcmd_linear_mps— Commanded linear velocity m/s, or NANcmd_angular_dps— Commanded angular velocity deg/s, or NANframe_id— Reference frame, or null