#[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,
) -> i32Expand 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 NANlongitude— GPS longitude in decimal degrees (-180 to 180), or NANaltitude_m— Altitude in meters above sea level, or NANheading_deg— Heading in degrees (0-360), or NANx_m— Local X coordinate in meters, or NANy_m— Local Y coordinate in meters, or NANz_m— Local Z coordinate in meters, or NANyaw_deg— Local yaw angle in degrees, or NANframe_id— Reference frame ID (e.g., “map”, “odom”), or nullmap_id— Map identifier, or nullfloor— Floor number;i32::MINmeans “not set”