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_wm::utils Namespace Reference

Functions

uint32_t get32BitId (uint16_t intersection_id, uint8_t signal_group_id)
 Get 32bit id by concatenating 16bit id with 8bit signal_group_id. More...
 

Function Documentation

◆ get32BitId()

uint32_t carma_wm::utils::get32BitId ( uint16_t  intersection_id,
uint8_t  signal_group_id 
)

Get 32bit id by concatenating 16bit id with 8bit signal_group_id.

Parameters
intersection_id16bit id which will be shifted left 8bits
signal_group_id8bit signal_group_id
Returns
32bit id where last 24bit is combined id of inputs

Definition at line 302 of file WorldModelUtils.cpp.

303{
304 uint32_t temp = 0;
305 temp |= intersection_id;
306 temp = temp << 8;
307 temp |= signal_group_id;
308 return temp;
309}

Referenced by carma_wm_ctrl::WMBroadcaster::generate32BitId().

Here is the caller graph for this function: