Skip to main content

pamoja_waypoint_follower_guide

Function pamoja_waypoint_follower_guide 

Source
#[unsafe(no_mangle)]
pub extern "C" fn pamoja_waypoint_follower_guide( follower: PamojaWaypointFollower, here: PamojaCoordinate, heading_deg: f32, target: PamojaCoordinate, ) -> PamojaGuidance
Expand description

Produces the command from a robot’s position and heading toward a target.

§Arguments

  • follower - the guide’s speeds and gains.
  • here - the robot’s position.
  • heading_deg - the robot’s heading in degrees clockwise from north.
  • target - the waypoint.

§Returns

The guidance. Within the arrival radius its twist is zero and arrived is 1; a heading or position that is not a finite number also gives a zero twist.