Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
carma_cooperative_perception::AccelerationSet4Way Struct Reference

#include <j2735_types.hpp>

Collaboration diagram for carma_cooperative_perception::AccelerationSet4Way:
Collaboration graph

Static Public Member Functions

static auto from_msg (const j2735_v2x_msgs::msg::AccelerationSet4Way &msg) -> AccelerationSet4Way
 
static auto from_msg (const carma_v2x_msgs::msg::AccelerationSet4Way &msg) -> AccelerationSet4Way
 

Public Attributes

units::acceleration::centi_meters_per_second_squared_t longitudinal
 
units::acceleration::centi_meters_per_second_squared_t lateral
 
units::acceleration::two_centi_standard_gravities_t vert
 
units::angular_velocity::centi_degrees_per_second_t yaw_rate
 

Detailed Description

Definition at line 49 of file j2735_types.hpp.

Member Function Documentation

◆ from_msg() [1/2]

auto carma_cooperative_perception::AccelerationSet4Way::from_msg ( const carma_v2x_msgs::msg::AccelerationSet4Way &  msg) -> AccelerationSet4Way
static

Definition at line 65 of file j2735_types.cpp.

67{
68 return {
69 units::acceleration::meters_per_second_squared_t{static_cast<double>(msg.longitudinal)},
70 units::acceleration::meters_per_second_squared_t{static_cast<double>(msg.lateral)},
71 units::acceleration::meters_per_second_squared_t{static_cast<double>(msg.vert)},
72 units::angular_velocity::degrees_per_second_t{static_cast<double>(msg.yaw_rate)}};
73}

◆ from_msg() [2/2]

auto carma_cooperative_perception::AccelerationSet4Way::from_msg ( const j2735_v2x_msgs::msg::AccelerationSet4Way &  msg) -> AccelerationSet4Way
static

Definition at line 55 of file j2735_types.cpp.

57{
58 return {
59 units::acceleration::centi_meters_per_second_squared_t{static_cast<double>(msg.longitudinal)},
60 units::acceleration::centi_meters_per_second_squared_t{static_cast<double>(msg.lateral)},
61 units::acceleration::two_centi_standard_gravities_t{static_cast<double>(msg.vert)},
62 units::angular_velocity::centi_degrees_per_second_t{static_cast<double>(msg.yaw_rate)}};
63}

Referenced by carma_cooperative_perception::to_detection_list_msg().

Here is the caller graph for this function:

Member Data Documentation

◆ lateral

units::acceleration::centi_meters_per_second_squared_t carma_cooperative_perception::AccelerationSet4Way::lateral

Definition at line 52 of file j2735_types.hpp.

◆ longitudinal

units::acceleration::centi_meters_per_second_squared_t carma_cooperative_perception::AccelerationSet4Way::longitudinal

Definition at line 51 of file j2735_types.hpp.

◆ vert

units::acceleration::two_centi_standard_gravities_t carma_cooperative_perception::AccelerationSet4Way::vert

Definition at line 53 of file j2735_types.hpp.

◆ yaw_rate

units::angular_velocity::centi_degrees_per_second_t carma_cooperative_perception::AccelerationSet4Way::yaw_rate

Definition at line 54 of file j2735_types.hpp.


The documentation for this struct was generated from the following files: