Class nebula::drivers::continental_srr520::ContinentalSRR520HwInterface
ClassList > nebula > drivers > continental_srr520 > ContinentalSRR520HwInterface
Hardware interface of the Continental SRR520 radar.
#include <continental_srr520_hw_interface.hpp>
Public Functions
| Type | Name |
|---|---|
| ContinentalSRR520HwInterface (const std::shared_ptr< loggers::Logger > & logger) Constructor. |
|
| Status | configure_sensor (uint8_t sensor_id, float longitudinal_autosar, float lateral_autosar, float vertical_autosar, float yaw_autosar, float longitudinal_cog, float wheelbase, float cover_damping, bool plug_bottom, bool reset) Configure the sensor. |
| Status | register_packet_callback (std::function< void(std::unique_ptr< nebula_msgs::msg::NebulaPacket >)> packet_callback) Registering callback. |
| Status | sensor_interface_start () Starting the interface that handles UDP streams. |
| Status | sensor_interface_stop () Function for stopping the interface that handles UDP streams. |
| void | sensor_sync () Sensor synchronization routine. |
| void | sensor_sync_follow_up (builtin_interfaces::msg::Time stamp) Process a new Sync Follow-up request. |
| Status | set_sensor_configuration (const std::shared_ptr< const nebula::drivers::continental_srr520::ContinentalSRR520SensorConfiguration > new_config_ptr) Setting sensor configuration. |
| Status | set_vehicle_dynamics (float longitudinal_acceleration, float lateral_acceleration, float yaw_rate, float longitudinal_velocity, bool standstill) Set the current vehicle dynamics. |
Public Functions Documentation
function ContinentalSRR520HwInterface
Constructor.
explicit nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::ContinentalSRR520HwInterface (
const std::shared_ptr< loggers::Logger > & logger
)
function configure_sensor
Configure the sensor.
Status nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::configure_sensor (
uint8_t sensor_id,
float longitudinal_autosar,
float lateral_autosar,
float vertical_autosar,
float yaw_autosar,
float longitudinal_cog,
float wheelbase,
float cover_damping,
bool plug_bottom,
bool reset
)
Parameters:
sensor_idDesired sensor idlongitudinal_autosarDesired longitudinal value in autosar coordinateslateral_autosarDesired lateral value in AUTOSAR coordinatesvertical_autosarDesired vertical value in autosar coordinatesyaw_autosarDesired yaw value in autosar coordinateslongitudinal_cogDesired longitudinal cogwheelbaseDesired wheelbasecover_dampingDesired cover dampingplug_bottomDesired plug bottomresetRest the sensor to its default values
Returns:
Resulting status
function register_packet_callback
Registering callback.
Status nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::register_packet_callback (
std::function< void(std::unique_ptr< nebula_msgs::msg::NebulaPacket >)> packet_callback
)
Parameters:
callbackCallback function
Returns:
Resulting status
function sensor_interface_start
Starting the interface that handles UDP streams.
Status nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::sensor_interface_start ()
Returns:
Resulting status
function sensor_interface_stop
Function for stopping the interface that handles UDP streams.
Status nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::sensor_interface_stop ()
Returns:
Resulting status
function sensor_sync
Sensor synchronization routine.
void nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::sensor_sync ()
function sensor_sync_follow_up
Process a new Sync Follow-up request.
void nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::sensor_sync_follow_up (
builtin_interfaces::msg::Time stamp
)
function set_sensor_configuration
Setting sensor configuration.
Status nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::set_sensor_configuration (
const std::shared_ptr< const nebula::drivers::continental_srr520::ContinentalSRR520SensorConfiguration > new_config_ptr
)
Parameters:
sensor_configurationSensorConfiguration for this interface
Returns:
Resulting status
function set_vehicle_dynamics
Set the current vehicle dynamics.
Status nebula::drivers::continental_srr520::ContinentalSRR520HwInterface::set_vehicle_dynamics (
float longitudinal_acceleration,
float lateral_acceleration,
float yaw_rate,
float longitudinal_velocity,
bool standstill
)
Parameters:
longitudinal_accelerationLongitudinal accelerationlateral_accelerationLateral accelerationyaw_rateYaw ratelongitudinal_velocityLongitudinal velocitydriving_directionDriving direction
Returns:
Resulting status
The documentation for this class was generated from the following file nebula_hw_interfaces/include/nebula_hw_interfaces/nebula_hw_interfaces_continental/continental_srr520_hw_interface.hpp