17 #include <adore_if_ros_msg/OccupancyCylinderPredictionSet.h>
32 for(
auto& prediction:
set)
34 adore_if_ros_msg::OccupancyCylinderPrediction msgi;
35 msgi.trackingID = prediction.trackingID_;
36 msgi.v2xStationID = prediction.v2xStationID_;
37 msgi.branchID = prediction.branchID_;
38 msgi.predecessorID = prediction.predecessorID_;
39 msgi.confidence = prediction.confidence_;
40 for(
const auto& pair: prediction.occupancy_.getLevel(0))
42 const auto& cylinder = pair.second;
43 adore_if_ros_msg::OccupancyCylinder msgij;
44 msgij.rxy = cylinder.rxy_;
45 msgij.x = cylinder.x_;
46 msgij.y = cylinder.y_;
47 msgij.t0 = cylinder.t0_;
48 msgij.t1 = cylinder.t1_;
49 msgij.z0 = cylinder.z0_;
50 msgij.z1 = cylinder.z1_;
51 msgi.occupancy.push_back(msgij);
53 msg.data.push_back(msgi);
64 for(
auto& msgi:msg->data)
72 for(
auto& msgij:msgi.occupancy)
75 cylinder.
rxy_ = msgij.rxy;
76 cylinder.
x_ = msgij.x;
77 cylinder.
y_ = msgij.y;
78 cylinder.
t0_ = msgij.t0;
79 cylinder.
t1_ = msgij.t1;
80 cylinder.
z0_ = msgij.z0;
81 cylinder.
z1_ = msgij.z1;
84 set->push_back(prediction);
void insert(const VolumeType &volume)
Definition: vectorbasedvolumetree.h:90
std::vector< OccupancyCylinderPrediction > OccupancyCylinderPredictionSet
Definition: occupancycylinderprediction.h:40
void set(T *data, T value, int size)
Definition: adoremath.h:39
Definition: areaofeffectconverter.h:20
Definition: occupancycylinderprediction.h:27
int branchID_
Definition: occupancycylinderprediction.h:31
int trackingID_
Definition: occupancycylinderprediction.h:30
int v2xStationID_
Definition: occupancycylinderprediction.h:29
adore::mad::OccupancyCylinderTree occupancy_
Definition: occupancycylinderprediction.h:33
float confidence_
Definition: occupancycylinderprediction.h:34
int predecessorID_
Definition: occupancycylinderprediction.h:32
Definition: occupancyconverter.h:25
void operator()(adore_if_ros_msg::OccupancyCylinderPredictionSetConstPtr msg, adore::env::OccupancyCylinderPredictionSet *set)
Definition: occupancyconverter.h:61
adore_if_ros_msg::OccupancyCylinderPredictionSet operator()(const adore::env::OccupancyCylinderPredictionSet &set)
Definition: occupancyconverter.h:29
Definition: occupancycylinder.h:25
double rxy_
Definition: occupancycylinder.h:26
double t0_
Definition: occupancycylinder.h:28
double y_
Definition: occupancycylinder.h:27
double z1_
Definition: occupancycylinder.h:29
double t1_
Definition: occupancycylinder.h:28
double z0_
Definition: occupancycylinder.h:29
double x_
Definition: occupancycylinder.h:27