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::Speed Struct Reference

#include <j2735_types.hpp>

Collaboration diagram for carma_cooperative_perception::Speed:
Collaboration graph

Static Public Member Functions

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

Public Attributes

units::velocity::two_centi_meters_per_second_t speed
 

Detailed Description

Definition at line 83 of file j2735_types.hpp.

Member Function Documentation

◆ from_msg() [1/2]

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

Definition at line 116 of file j2735_types.cpp.

117{
118 return {units::velocity::meters_per_second_t{static_cast<double>(speed.speed)}};
119}
units::velocity::two_centi_meters_per_second_t speed
Definition: j2735_types.hpp:85

◆ from_msg() [2/2]

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

Definition at line 111 of file j2735_types.cpp.

112{
113 return {units::velocity::two_centi_meters_per_second_t{static_cast<double>(speed.speed)}};
114}

Referenced by carma_cooperative_perception::to_detection_list_msg().

Here is the caller graph for this function:

Member Data Documentation

◆ speed

units::velocity::two_centi_meters_per_second_t carma_cooperative_perception::Speed::speed

Definition at line 85 of file j2735_types.hpp.


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