pub struct RplidarDevice<T: ?Sized> { /* private fields */ }
Expand description

Rplidar device driver

Implementations

Construct a new RplidarDevice with channel

Example
let mut serial_port = serialport::open(serial_port_name)?;
let channel = Channel::new(RplidarHostProtocol::new(), serial_port);
let rplidar_device = RplidarDevice::new(channel);

Construct a new RplidarDevice with stream

Example
let mut serial_port = serialport::open(serial_port_name)?;
let rplidar_device = RplidarDevice::with_stream(serial_port);

get device info of the RPLIDAR

get device info of the RPLIDAR with timeout

Stop lidar

Reset RPLIDAR core

Set motor PWM (via accessory board)

Stop motor

Start motor

get typical scan mode of target LIDAR

get typical scan mode of target LIDAR with timeout

get all supported scan modes supported by the LIDAR

get all supported scan modes supported by the LIDAR with timeout

start scan

start scan with timeout

start scan with options

start scan with options and non-default timeout

read scan point

read scan point with timeout

read scan frame

read scan frame

Get LIDAR health information

Get LIDAR health information

Check if the connected LIDAR supports motor control

Check if the connected LIDAR supports motor control with timeout

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.