pub struct Robot<'a> {
pub position: Position,
pub orientation: Orientation,
pub leds: GameDataLedsValue,
pub penalized: bool,
pub penalized_remaining: Option<u32>,
pub penalized_reason: Option<String>,
pub preempted: bool,
pub preemption_reasons: Vec<String>,
pub number: RobotNumber,
pub team: Team,
pub client: &'a Client,
}
Fields§
§position: Position
§orientation: Orientation
§leds: GameDataLedsValue
§penalized: bool
§penalized_remaining: Option<u32>
§penalized_reason: Option<String>
§preempted: bool
§preemption_reasons: Vec<String>
§number: RobotNumber
§team: Team
§client: &'a Client
Implementations§
Source§impl Robot<'_>
impl Robot<'_>
pub async fn send_command(&self, command: Command) -> RskResult<()>
pub fn refresh(&mut self) -> RskResult<()>
pub fn get_pose(&mut self) -> RskResult<AbsPose>
pub fn get_cache_pose(&self) -> AbsPose
pub async fn get_destination(&self) -> RskResult<Option<Destination>>
pub async fn is_arrived(&self) -> RskResult<bool>
pub async fn goto(&self, destination: Destination) -> RskResult<()>
pub async fn stop(&self) -> RskResult<()>
pub async fn goto_blocking(&self, destination: Destination) -> RskResult<()>
pub async fn kick(&self, power: f32) -> RskResult<()>
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for Robot<'a>
impl<'a> !RefUnwindSafe for Robot<'a>
impl<'a> Send for Robot<'a>
impl<'a> Sync for Robot<'a>
impl<'a> Unpin for Robot<'a>
impl<'a> !UnwindSafe for Robot<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more