phytrace_builder_set_navigation

Function phytrace_builder_set_navigation 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn phytrace_builder_set_navigation( builder: *mut PhyTraceBuilderHandle, loc_quality: i32, loc_confidence: f64, is_localized: i32, path_state: i32, path_length_m: f64, path_remaining_m: f64, goal_x: f64, goal_y: f64, goal_orientation_deg: f64, ) -> i32
Expand description

Set the navigation domain on the builder.

Enum parameters use -1 for “not set”. Float/bool follow the NAN/-1 conventions.

§Parameters

  • loc_qualityPHYTRACE_LOCALIZATION_QUALITY_* constant, or -1
  • loc_confidence — Localization confidence (0.0-1.0), or NAN
  • is_localized — 1/0/-1
  • path_statePHYTRACE_PATH_STATE_* constant, or -1
  • path_length_m — Total path length in meters, or NAN
  • path_remaining_m — Remaining path length, or NAN
  • goal_x, goal_y — Goal position in meters, or NAN
  • goal_orientation_deg — Goal orientation, or NAN