Class nebula::drivers::HesaiHwInterface
ClassList > nebula > drivers > HesaiHwInterface
Hardware interface of hesai driver.
#include <hesai_hw_interface.hpp>
Public Functions
| Type | Name |
|---|---|
| HesaiHwInterface (const std::shared_ptr< loggers::Logger > & logger) Constructor. |
|
| HesaiStatus | check_and_set_config (std::shared_ptr< const HesaiSensorConfiguration > sensor_configuration, std::shared_ptr< HesaiConfigBase > hesai_config) Checking the current settings and changing the difference point. |
| HesaiStatus | check_and_set_config (std::shared_ptr< const HesaiSensorConfiguration > sensor_configuration, HesaiLidarRangeAll hesai_lidar_range_all) Checking the current settings and changing the difference point. |
| HesaiStatus | check_and_set_config () Checking the current settings and changing the difference point. |
| Status | check_and_set_lidar_range (const HesaiCalibrationConfigurationBase & calibration) Given the HW interface's sensor configuration and a given calibration, set the sensor FoV (min and max angles) with appropriate padding around the FoV set in the configuration. This compensates for the points lost due to the sensor filtering FoV by raw encoder angle. |
| Status | finalize_tcp_driver () Closes the TcpDriver and related resources. |
| Status | get_calibration_configuration (CalibrationConfigurationBase & calibration_configuration) Printing calibration configuration. |
| std::shared_ptr< HesaiConfigBase > | get_config () Getting data with PTC_COMMAND_GET_CONFIG_INFO. |
| bool | get_high_resolution_mode () Getting values with PTC_COMMAND_GET_HIGH_RESOLUTION_MODE. |
| std::shared_ptr< HesaiInventoryBase > | get_inventory () Getting data with PTC_COMMAND_GET_INVENTORY_INFO. |
| std::shared_ptr< boost::asio::io_context > | get_io_context () GetIO Context. |
| std::vector< uint8_t > | get_lidar_calibration_bytes () Getting data with PTC_COMMAND_GET_LIDAR_CALIBRATION. |
| std::string | get_lidar_calibration_string () Getting data with PTC_COMMAND_GET_LIDAR_CALIBRATION. |
| HesaiLidarMonitor | get_lidar_monitor () Getting data with PTC_COMMAND_LIDAR_MONITOR. |
| HesaiStatus | get_lidar_monitor_async_http (std::shared_ptr< boost::asio::io_context > ctx, std::function< void(const std::string &str)> str_callback) Getting lidar_monitor via HTTP API. |
| HesaiStatus | get_lidar_monitor_async_http (std::function< void(const std::string &str)> str_callback) Getting lidar_monitor via HTTP API. |
| HesaiLidarRangeAll | get_lidar_range () Getting values with PTC_COMMAND_GET_LIDAR_RANGE. |
| std::shared_ptr< HesaiLidarStatusBase > | get_lidar_status () Getting data with PTC_COMMAND_GET_LIDAR_STATUS. |
| HesaiPtpConfig | get_ptp_config () Getting data with PTC_COMMAND_GET_PTP_CONFIG. |
| HesaiPtpTlvGrandmasterSettingsNp | get_ptp_diag_grandmaster () Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP TLV GRANDMASTER_SETTINGS_NP) |
| PtpTlvPortDataSet | get_ptp_diag_port () Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP TLV PORT_DATA_SET) |
| HesaiPtpDiagStatus | get_ptp_diag_status () Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP STATUS) |
| PtpTlvTimeStatusNp | get_ptp_diag_time () Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP TLV TIME_STATUS_NP) |
| uint8_t | get_ptp_lock_offset () |
| Status | get_sensor_configuration (const SensorConfigurationBase & sensor_configuration) Printing sensor configuration. |
| bool | get_up_close_blockage_detection () Getting values with PTC_COMMAND_GET_UP_CLOSE_BLOCKAGE_DETECTION. |
| Status | initialize_tcp_driver () Initializing tcp_driver for TCP communication. |
| void | io_context_run () Call run() of IO Context. |
| boost::property_tree::ptree | parse_json (const std::string & str) Parsing json string to property_tree. |
| void | receive_sensor_packet_callback (const std::vector< uint8_t > & buffer, const connections::UdpSocket::RxMetadata & metadata) Callback function to receive the Cloud Packet data from the UDP Driver. |
| Status | register_scan_callback (connections::UdpSocket::callback_t scan_callback) Registering callback for PandarScan. |
| Status | send_reset () Sending command with PTC_COMMAND_RESET. |
| Status | sensor_interface_start () Starting the interface that handles UDP streams. |
| Status | sensor_interface_stop () Function for stopping the interface that handles UDP streams. |
| Status | set_clock_source (int clock_source) |
| Status | set_control_port (int ip_1, int ip_2, int ip_3, int ip_4, int mask_1, int mask_2, int mask_3, int mask_4, int gateway_1, int gateway_2, int gateway_3, int gateway_4, int vlan_flg, int vlan_id) Setting IP with PTC_COMMAND_SET_CONTROL_PORT. |
| Status | set_destination_ip (int dest_ip_1, int dest_ip_2, int dest_ip_3, int dest_ip_4, int port, int gps_port) Setting IP with PTC_COMMAND_SET_DESTINATION_IP. |
| Status | set_high_resolution_mode (bool enable) Setting values with PTC_COMMAND_SET_HIGH_RESOLUTION_MODE. |
| Status | set_lidar_range (int method, std::vector< unsigned char > data) Setting values with PTC_COMMAND_SET_LIDAR_RANGE. |
| Status | set_lidar_range (int start, int end) Setting values with PTC_COMMAND_SET_LIDAR_RANGE. |
| Status | set_ptp_config (int profile, int domain, int network, int switch_type, int logAnnounceInterval=1, int logSyncInterval=1, int logMinDelayReqInterval=0) Setting values with PTC_COMMAND_SET_PTP_CONFIG. |
| HesaiStatus | set_ptp_config_sync_http (std::shared_ptr< boost::asio::io_context > ctx, int profile, int domain, int network, int logAnnounceInterval, int logSyncInterval, int logMinDelayReqInterval) |
| HesaiStatus | set_ptp_config_sync_http (int profile, int domain, int network, int logAnnounceInterval, int logSyncInterval, int logMinDelayReqInterval) |
| Status | set_ptp_lock_offset (uint8_t lock_offset) |
| Status | set_return_mode (int return_mode) Setting mode with PTC_COMMAND_SET_RETURN_MODE. |
| Status | set_rot_dir (int mode) Setting values with PTC_COMMAND_SET_ROTATE_DIRECTION. |
| Status | set_sensor_configuration (std::shared_ptr< const SensorConfigurationBase > sensor_configuration) Setting sensor configuration. |
| Status | set_spin_rate (uint16_t rpm) Setting value with PTC_COMMAND_SET_SPIN_RATE. |
| HesaiStatus | set_spin_speed_async_http (std::shared_ptr< boost::asio::io_context > ctx, uint16_t rpm) Setting spin_speed via HTTP API. |
| HesaiStatus | set_spin_speed_async_http (uint16_t rpm) Setting spin_speed via HTTP API. |
| Status | set_standby_mode (int standby_mode) Setting mode with PTC_COMMAND_SET_STANDBY_MODE. |
| Status | set_sync_angle (int sync_angle, int angle) Setting value with PTC_COMMAND_SET_SYNC_ANGLE. |
| HesaiStatus | set_sync_angle_sync_http (std::shared_ptr< boost::asio::io_context > ctx, int enable, int angle) |
| HesaiStatus | set_sync_angle_sync_http (int enable, int angle) |
| void | set_target_model (int model) Set target model number (for proper use of HTTP and TCP according to the support of the target model) |
| void | set_target_model (nebula::drivers::SensorModel model) Set target model number (for proper use of HTTP and TCP according to the support of the target model) |
| Status | set_trigger_method (int trigger_method) Setting mode with PTC_COMMAND_SET_TRIGGER_METHOD. |
| Status | set_up_close_blockage_detection (bool enable) Setting values with PTC_COMMAND_SET_UP_CLOSE_BLOCKAGE_DETECTION. |
| bool | use_http_get_lidar_monitor () const Whether to use HTTP for getting LidarMonitor. |
| bool | use_http_set_spin_rate () const Whether to use HTTP for setting SpinRate. |
| ~HesaiHwInterface () Destructor. |
Public Static Functions
| Type | Name |
|---|---|
| int | nebula_model_to_hesai_model_no (nebula::drivers::SensorModel model) Convert to model in Hesai protocol from nebula::drivers::SensorModel. |
| bool | use_http_get_lidar_monitor (int model) Whether to use HTTP for getting LidarMonitor. |
| bool | use_http_set_spin_rate (int model) Whether to use HTTP for setting SpinRate. |
Public Functions Documentation
function HesaiHwInterface
Constructor.
explicit nebula::drivers::HesaiHwInterface::HesaiHwInterface (
const std::shared_ptr< loggers::Logger > & logger
)
function check_and_set_config [1/3]
Checking the current settings and changing the difference point.
HesaiStatus nebula::drivers::HesaiHwInterface::check_and_set_config (
std::shared_ptr< const HesaiSensorConfiguration > sensor_configuration,
std::shared_ptr< HesaiConfigBase > hesai_config
)
Parameters:
sensor_configurationCurrent SensorConfigurationhesai_configCurrent HesaiConfig
Returns:
Resulting status
function check_and_set_config [2/3]
Checking the current settings and changing the difference point.
HesaiStatus nebula::drivers::HesaiHwInterface::check_and_set_config (
std::shared_ptr< const HesaiSensorConfiguration > sensor_configuration,
HesaiLidarRangeAll hesai_lidar_range_all
)
Parameters:
sensor_configurationCurrent SensorConfigurationhesai_lidar_range_allCurrent HesaiLidarRangeAll
Returns:
Resulting status
function check_and_set_config [3/3]
Checking the current settings and changing the difference point.
HesaiStatus nebula::drivers::HesaiHwInterface::check_and_set_config ()
Returns:
Resulting status
function check_and_set_lidar_range
Given the HW interface's sensor configuration and a given calibration, set the sensor FoV (min and max angles) with appropriate padding around the FoV set in the configuration. This compensates for the points lost due to the sensor filtering FoV by raw encoder angle.
Status nebula::drivers::HesaiHwInterface::check_and_set_lidar_range (
const HesaiCalibrationConfigurationBase & calibration
)
Parameters:
calibrationThe calibration file of the sensor
Returns:
Status Resulting status of setting the FoV
function finalize_tcp_driver
Closes the TcpDriver and related resources.
Status nebula::drivers::HesaiHwInterface::finalize_tcp_driver ()
Returns:
Status result
function get_calibration_configuration
Printing calibration configuration.
Status nebula::drivers::HesaiHwInterface::get_calibration_configuration (
CalibrationConfigurationBase & calibration_configuration
)
Parameters:
calibration_configurationCalibrationConfiguration for the checking
Returns:
Resulting status
function get_config
Getting data with PTC_COMMAND_GET_CONFIG_INFO.
std::shared_ptr< HesaiConfigBase > nebula::drivers::HesaiHwInterface::get_config ()
Returns:
Resulting status
function get_high_resolution_mode
Getting values with PTC_COMMAND_GET_HIGH_RESOLUTION_MODE.
bool nebula::drivers::HesaiHwInterface::get_high_resolution_mode ()
Returns:
Resulting status
function get_inventory
Getting data with PTC_COMMAND_GET_INVENTORY_INFO.
std::shared_ptr< HesaiInventoryBase > nebula::drivers::HesaiHwInterface::get_inventory ()
Returns:
Resulting status
function get_io_context
GetIO Context.
std::shared_ptr< boost::asio::io_context > nebula::drivers::HesaiHwInterface::get_io_context ()
Returns:
IO Context
function get_lidar_calibration_bytes
Getting data with PTC_COMMAND_GET_LIDAR_CALIBRATION.
std::vector< uint8_t > nebula::drivers::HesaiHwInterface::get_lidar_calibration_bytes ()
Returns:
Resulting status
function get_lidar_calibration_string
Getting data with PTC_COMMAND_GET_LIDAR_CALIBRATION.
std::string nebula::drivers::HesaiHwInterface::get_lidar_calibration_string ()
Returns:
Resulting status
function get_lidar_monitor
Getting data with PTC_COMMAND_LIDAR_MONITOR.
HesaiLidarMonitor nebula::drivers::HesaiHwInterface::get_lidar_monitor ()
Returns:
Resulting status
function get_lidar_monitor_async_http [1/2]
Getting lidar_monitor via HTTP API.
HesaiStatus nebula::drivers::HesaiHwInterface::get_lidar_monitor_async_http (
std::shared_ptr< boost::asio::io_context > ctx,
std::function< void(const std::string &str)> str_callback
)
Parameters:
ctxIO Contextstr_callbackCallback function for received string
Returns:
Resulting status
function get_lidar_monitor_async_http [2/2]
Getting lidar_monitor via HTTP API.
HesaiStatus nebula::drivers::HesaiHwInterface::get_lidar_monitor_async_http (
std::function< void(const std::string &str)> str_callback
)
Parameters:
str_callbackCallback function for received string
Returns:
Resulting status
function get_lidar_range
Getting values with PTC_COMMAND_GET_LIDAR_RANGE.
HesaiLidarRangeAll nebula::drivers::HesaiHwInterface::get_lidar_range ()
Returns:
Resulting status
function get_lidar_status
Getting data with PTC_COMMAND_GET_LIDAR_STATUS.
std::shared_ptr< HesaiLidarStatusBase > nebula::drivers::HesaiHwInterface::get_lidar_status ()
Returns:
Resulting status
function get_ptp_config
Getting data with PTC_COMMAND_GET_PTP_CONFIG.
HesaiPtpConfig nebula::drivers::HesaiHwInterface::get_ptp_config ()
Returns:
Resulting status
function get_ptp_diag_grandmaster
Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP TLV GRANDMASTER_SETTINGS_NP)
HesaiPtpTlvGrandmasterSettingsNp nebula::drivers::HesaiHwInterface::get_ptp_diag_grandmaster ()
Returns:
Resulting status
function get_ptp_diag_port
Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP TLV PORT_DATA_SET)
PtpTlvPortDataSet nebula::drivers::HesaiHwInterface::get_ptp_diag_port ()
Returns:
Resulting status
function get_ptp_diag_status
Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP STATUS)
HesaiPtpDiagStatus nebula::drivers::HesaiHwInterface::get_ptp_diag_status ()
Returns:
Resulting status
function get_ptp_diag_time
Getting data with PTC_COMMAND_PTP_DIAGNOSTICS (PTP TLV TIME_STATUS_NP)
PtpTlvTimeStatusNp nebula::drivers::HesaiHwInterface::get_ptp_diag_time ()
Returns:
Resulting status
function get_ptp_lock_offset
uint8_t nebula::drivers::HesaiHwInterface::get_ptp_lock_offset ()
function get_sensor_configuration
Printing sensor configuration.
Status nebula::drivers::HesaiHwInterface::get_sensor_configuration (
const SensorConfigurationBase & sensor_configuration
)
Parameters:
sensor_configurationSensorConfiguration for this interface
Returns:
Resulting status
function get_up_close_blockage_detection
Getting values with PTC_COMMAND_GET_UP_CLOSE_BLOCKAGE_DETECTION.
bool nebula::drivers::HesaiHwInterface::get_up_close_blockage_detection ()
Returns:
Resulting status
function initialize_tcp_driver
Initializing tcp_driver for TCP communication.
Status nebula::drivers::HesaiHwInterface::initialize_tcp_driver ()
Parameters:
setup_sensorWhether to also initialize tcp_driver for sensor configuration
Returns:
Resulting status
function io_context_run
Call run() of IO Context.
void nebula::drivers::HesaiHwInterface::io_context_run ()
function parse_json
Parsing json string to property_tree.
boost::property_tree::ptree nebula::drivers::HesaiHwInterface::parse_json (
const std::string & str
)
Parameters:
strJSON string
Returns:
Parsed property_tree
function receive_sensor_packet_callback
Callback function to receive the Cloud Packet data from the UDP Driver.
void nebula::drivers::HesaiHwInterface::receive_sensor_packet_callback (
const std::vector< uint8_t > & buffer,
const connections::UdpSocket::RxMetadata & metadata
)
Parameters:
bufferBuffer containing the data received from the UDP socket
function register_scan_callback
Registering callback for PandarScan.
Status nebula::drivers::HesaiHwInterface::register_scan_callback (
connections::UdpSocket::callback_t scan_callback
)
Parameters:
scan_callbackCallback function
Returns:
Resulting status
function send_reset
Sending command with PTC_COMMAND_RESET.
Status nebula::drivers::HesaiHwInterface::send_reset ()
Returns:
Resulting status
function sensor_interface_start
Starting the interface that handles UDP streams.
Status nebula::drivers::HesaiHwInterface::sensor_interface_start ()
Returns:
Resulting status
function sensor_interface_stop
Function for stopping the interface that handles UDP streams.
Status nebula::drivers::HesaiHwInterface::sensor_interface_stop ()
Returns:
Resulting status
function set_clock_source
Status nebula::drivers::HesaiHwInterface::set_clock_source (
int clock_source
)
function set_control_port
Setting IP with PTC_COMMAND_SET_CONTROL_PORT.
Status nebula::drivers::HesaiHwInterface::set_control_port (
int ip_1,
int ip_2,
int ip_3,
int ip_4,
int mask_1,
int mask_2,
int mask_3,
int mask_4,
int gateway_1,
int gateway_2,
int gateway_3,
int gateway_4,
int vlan_flg,
int vlan_id
)
Parameters:
ip_1Device IP of the 1st byte represents the 1st sectionip_2Device IP of the 2nd byte represents the 2nd sectionip_3Device IP of the 3rd byte represents the 3rd sectionip_4Device IP of the 4th byte represents the 4th sectionmask_1Device subnet mask of the 1st byte represents the 1st sectionmask_2Device subnet mask of the 2nd byte represents the 2nd sectionmask_3Device subnet mask of the 3rd byte represents the 3rd sectionmask_4Device subnet mask of the 4th byte represents the 4th sectiongateway_1Device gateway of the 1st byte represents the 1st sectiongateway_2Device gateway of the 2nd byte represents the 2nd sectiongateway_3Device gateway of the 3rd byte represents the 3rd sectiongateway_4Device gateway of the 4th byte represents the 4th sectionvlan_flgVLAN Statusvlan_idVLAN ID
Returns:
Resulting status
function set_destination_ip
Setting IP with PTC_COMMAND_SET_DESTINATION_IP.
Status nebula::drivers::HesaiHwInterface::set_destination_ip (
int dest_ip_1,
int dest_ip_2,
int dest_ip_3,
int dest_ip_4,
int port,
int gps_port
)
Parameters:
dest_ip_1The 1st byte represents the 1st sectiondest_ip_2The 2nd byte represents the 2nd sectiondest_ip_3The 3rd byte represents the 3rd sectiondest_ip_4The 4th byte represents the 4th sectionportLiDAR Destination Portgps_portGPS Destination Port
Returns:
Resulting status
function set_high_resolution_mode
Setting values with PTC_COMMAND_SET_HIGH_RESOLUTION_MODE.
Status nebula::drivers::HesaiHwInterface::set_high_resolution_mode (
bool enable
)
Returns:
Resulting status
function set_lidar_range [1/2]
Setting values with PTC_COMMAND_SET_LIDAR_RANGE.
Status nebula::drivers::HesaiHwInterface::set_lidar_range (
int method,
std::vector< unsigned char > data
)
Parameters:
methodMethoddataSet data
Returns:
Resulting status
function set_lidar_range [2/2]
Setting values with PTC_COMMAND_SET_LIDAR_RANGE.
Status nebula::drivers::HesaiHwInterface::set_lidar_range (
int start,
int end
)
Parameters:
startStart angleendEnd angle
Returns:
Resulting status
function set_ptp_config
Setting values with PTC_COMMAND_SET_PTP_CONFIG.
Status nebula::drivers::HesaiHwInterface::set_ptp_config (
int profile,
int domain,
int network,
int switch_type,
int logAnnounceInterval=1,
int logSyncInterval=1,
int logMinDelayReqInterval=0
)
Parameters:
profileIEEE timing and synchronization standarddomainDomain attribute of the local clocknetworkNetwork transport type of 1588v2switch_typeSwitch type of 802.1AS AutomotivelogAnnounceIntervalTime interval between Announce messages, in units of log seconds (default: 1)logSyncIntervalTime interval between Sync messages, in units of log seconds (default: 1)logMinDelayReqIntervalMinimum permitted mean time between Delay_Req messages, in units of log seconds (default: 0)
Returns:
Resulting status
function set_ptp_config_sync_http [1/2]
HesaiStatus nebula::drivers::HesaiHwInterface::set_ptp_config_sync_http (
std::shared_ptr< boost::asio::io_context > ctx,
int profile,
int domain,
int network,
int logAnnounceInterval,
int logSyncInterval,
int logMinDelayReqInterval
)
function set_ptp_config_sync_http [2/2]
HesaiStatus nebula::drivers::HesaiHwInterface::set_ptp_config_sync_http (
int profile,
int domain,
int network,
int logAnnounceInterval,
int logSyncInterval,
int logMinDelayReqInterval
)
function set_ptp_lock_offset
Status nebula::drivers::HesaiHwInterface::set_ptp_lock_offset (
uint8_t lock_offset
)
function set_return_mode
Setting mode with PTC_COMMAND_SET_RETURN_MODE.
Status nebula::drivers::HesaiHwInterface::set_return_mode (
int return_mode
)
Parameters:
return_modeReturn mode
Returns:
Resulting status
function set_rot_dir
Setting values with PTC_COMMAND_SET_ROTATE_DIRECTION.
Status nebula::drivers::HesaiHwInterface::set_rot_dir (
int mode
)
Parameters:
modeRotation of the motor
Returns:
Resulting status
function set_sensor_configuration
Setting sensor configuration.
Status nebula::drivers::HesaiHwInterface::set_sensor_configuration (
std::shared_ptr< const SensorConfigurationBase > sensor_configuration
)
Parameters:
sensor_configurationSensorConfiguration for this interface
Returns:
Resulting status
function set_spin_rate
Setting value with PTC_COMMAND_SET_SPIN_RATE.
Status nebula::drivers::HesaiHwInterface::set_spin_rate (
uint16_t rpm
)
Parameters:
rpmSpin rate
Returns:
Resulting status
function set_spin_speed_async_http [1/2]
Setting spin_speed via HTTP API.
HesaiStatus nebula::drivers::HesaiHwInterface::set_spin_speed_async_http (
std::shared_ptr< boost::asio::io_context > ctx,
uint16_t rpm
)
Parameters:
ctxIO Context usedrpmspin_speed (300, 600, 1200)
Returns:
Resulting status
function set_spin_speed_async_http [2/2]
Setting spin_speed via HTTP API.
HesaiStatus nebula::drivers::HesaiHwInterface::set_spin_speed_async_http (
uint16_t rpm
)
Parameters:
rpmspin_speed (300, 600, 1200)
Returns:
Resulting status
function set_standby_mode
Setting mode with PTC_COMMAND_SET_STANDBY_MODE.
Status nebula::drivers::HesaiHwInterface::set_standby_mode (
int standby_mode
)
Parameters:
standby_modeStandby mode
Returns:
Resulting status
function set_sync_angle
Setting value with PTC_COMMAND_SET_SYNC_ANGLE.
Status nebula::drivers::HesaiHwInterface::set_sync_angle (
int sync_angle,
int angle
)
Parameters:
sync_angleSync angle enable flagangleAngle value
Returns:
Resulting status
function set_sync_angle_sync_http [1/2]
HesaiStatus nebula::drivers::HesaiHwInterface::set_sync_angle_sync_http (
std::shared_ptr< boost::asio::io_context > ctx,
int enable,
int angle
)
function set_sync_angle_sync_http [2/2]
HesaiStatus nebula::drivers::HesaiHwInterface::set_sync_angle_sync_http (
int enable,
int angle
)
function set_target_model [1/2]
Set target model number (for proper use of HTTP and TCP according to the support of the target model)
void nebula::drivers::HesaiHwInterface::set_target_model (
int model
)
Parameters:
modelModel number
function set_target_model [2/2]
Set target model number (for proper use of HTTP and TCP according to the support of the target model)
void nebula::drivers::HesaiHwInterface::set_target_model (
nebula::drivers::SensorModel model
)
Parameters:
modelModel
function set_trigger_method
Setting mode with PTC_COMMAND_SET_TRIGGER_METHOD.
Status nebula::drivers::HesaiHwInterface::set_trigger_method (
int trigger_method
)
Parameters:
trigger_methodTrigger method
Returns:
Resulting status
function set_up_close_blockage_detection
Setting values with PTC_COMMAND_SET_UP_CLOSE_BLOCKAGE_DETECTION.
Status nebula::drivers::HesaiHwInterface::set_up_close_blockage_detection (
bool enable
)
Parameters:
enableEnable up close blockage detection
Returns:
Resulting status
function use_http_get_lidar_monitor [1/2]
Whether to use HTTP for getting LidarMonitor.
bool nebula::drivers::HesaiHwInterface::use_http_get_lidar_monitor () const
Returns:
Use HTTP
function use_http_set_spin_rate [1/2]
Whether to use HTTP for setting SpinRate.
bool nebula::drivers::HesaiHwInterface::use_http_set_spin_rate () const
Returns:
Use HTTP
function ~HesaiHwInterface
Destructor.
nebula::drivers::HesaiHwInterface::~HesaiHwInterface ()
Public Static Functions Documentation
function nebula_model_to_hesai_model_no
Convert to model in Hesai protocol from nebula::drivers::SensorModel.
static int nebula::drivers::HesaiHwInterface::nebula_model_to_hesai_model_no (
nebula::drivers::SensorModel model
)
Parameters:
model
Returns:
function use_http_get_lidar_monitor [2/2]
Whether to use HTTP for getting LidarMonitor.
static bool nebula::drivers::HesaiHwInterface::use_http_get_lidar_monitor (
int model
)
Parameters:
modelModel number
Returns:
Use HTTP
function use_http_set_spin_rate [2/2]
Whether to use HTTP for setting SpinRate.
static bool nebula::drivers::HesaiHwInterface::use_http_set_spin_rate (
int model
)
Parameters:
modelModel number
Returns:
Use HTTP
The documentation for this class was generated from the following file nebula_hw_interfaces/include/nebula_hw_interfaces/nebula_hw_interfaces_hesai/hesai_hw_interface.hpp