#include <rplidar_driver_serial.h>

Public Member Functions | |
| virtual u_result | connect (const char *port_path, _u32 baudrate, _u32 flag=0) |
| virtual void | disconnect () |
| Disconnect with the RPLIDAR and close the serial port. | |
| RPlidarDriverSerial () | |
| virtual | ~RPlidarDriverSerial () |
Definition at line 95 of file rplidar_driver_serial.h.
Definition at line 2179 of file rplidar_driver.cpp.
Definition at line 2184 of file rplidar_driver.cpp.
| u_result rp::standalone::rplidar::RPlidarDriverSerial::connect | ( | const char * | , |
| _u32 | , | ||
| _u32 | flag = 0 |
||
| ) | [virtual] |
Open the specified serial port and connect to a target RPLIDAR device
| port_path | the device path of the serial port e.g. on Windows, it may be com3 or \. on Unix-Like OS, it may be /dev/ttyS1, /dev/ttyUSB2, etc |
| baudrate | the baudrate used For most RPLIDAR models, the baudrate should be set to 115200 |
| flag | other flags Reserved for future use, always set to Zero |
Implements rp::standalone::rplidar::RPlidarDriver.
Definition at line 2199 of file rplidar_driver.cpp.
| void rp::standalone::rplidar::RPlidarDriverSerial::disconnect | ( | ) | [virtual] |
Disconnect with the RPLIDAR and close the serial port.
Implements rp::standalone::rplidar::RPlidarDriver.
Definition at line 2193 of file rplidar_driver.cpp.