phytrace_builder_set_location

Function phytrace_builder_set_location 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn phytrace_builder_set_location( builder: *mut PhyTraceBuilderHandle, latitude: f64, longitude: f64, altitude_m: f64, heading_deg: f64, x_m: f64, y_m: f64, z_m: f64, yaw_deg: f64, frame_id: *const c_char, map_id: *const c_char, floor: i32, ) -> i32
Expand description

Set the location domain on the builder.

All floating-point parameters use f64::NAN to indicate “not set”. String parameters use null to indicate “not set”.

§Parameters

  • latitude — GPS latitude in decimal degrees (-90 to 90), or NAN
  • longitude — GPS longitude in decimal degrees (-180 to 180), or NAN
  • altitude_m — Altitude in meters above sea level, or NAN
  • heading_deg — Heading in degrees (0-360), or NAN
  • x_m — Local X coordinate in meters, or NAN
  • y_m — Local Y coordinate in meters, or NAN
  • z_m — Local Z coordinate in meters, or NAN
  • yaw_deg — Local yaw angle in degrees, or NAN
  • frame_id — Reference frame ID (e.g., “map”, “odom”), or null
  • map_id — Map identifier, or null
  • floor — Floor number; i32::MIN means “not set”