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

Rplidar device driver

Implementations

Construct a new RplidarDevice from a serial port address

You should use the open_port method if you want this boxed

Construct a new RplidarDriver from a serial port address

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);

Trait Implementations

Executes the destructor for this type. Read more

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

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.