Skip to main content

pamoja_sim_robot_apply

Function pamoja_sim_robot_apply 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn pamoja_sim_robot_apply( robot: *mut PamojaSimRobot, command: PamojaTwist, ) -> PamojaStatus
Expand description

Drives the robot for one time step.

§Arguments

  • robot - the robot.
  • command - the speeds to hold for one step.

§Returns

PamojaStatus::Ok on success.

§Safety

robot must be a live handle from pamoja_sim_robot_new.