19#include "glog/logging.h"
26namespace conti_radar {
35 int obj_id = object_id(bytes, length);
36 for (
int i = 0; i < conti_radar->contiobs_size(); ++i) {
38 auto obs = conti_radar->mutable_contiobs(i);
39 obs->set_longitude_accel(longitude_accel(bytes, length));
40 obs->set_lateral_accel(lateral_accel(bytes, length));
41 obs->set_oritation_angle(oritation_angle(bytes, length));
42 obs->set_length(object_length(bytes, length));
43 obs->set_width(object_width(bytes, length));
44 obs->set_obstacle_class(obstacle_class(bytes, length));
51int ObjectExtendedInfo60D::object_id(
const std::uint8_t* bytes,
52 int32_t length)
const {
54 int32_t x = t0.get_byte(0, 8);
60double ObjectExtendedInfo60D::longitude_accel(
const std::uint8_t* bytes,
61 int32_t length)
const {
63 int32_t x = t0.get_byte(0, 8);
66 int32_t t = t1.get_byte(5, 3);
75double ObjectExtendedInfo60D::lateral_accel(
const std::uint8_t* bytes,
76 int32_t length)
const {
78 int32_t x = t0.get_byte(0, 5);
81 int32_t t = t1.get_byte(4, 4);
90int ObjectExtendedInfo60D::obstacle_class(
const std::uint8_t* bytes,
91 int32_t length)
const {
93 int32_t x = t0.get_byte(0, 3);
99double ObjectExtendedInfo60D::oritation_angle(
const std::uint8_t* bytes,
100 int32_t length)
const {
102 int32_t x = t0.get_byte(0, 8);
105 int32_t t = t1.get_byte(6, 2);
114double ObjectExtendedInfo60D::object_length(
const std::uint8_t* bytes,
115 int32_t length)
const {
117 int32_t x = t0.get_byte(0, 8);
123double ObjectExtendedInfo60D::object_width(
const std::uint8_t* bytes,
124 int32_t length)
const {
126 int32_t x = t0.get_byte(0, 8);
The class of one byte, which is 8 bits.
void Parse(const std::uint8_t *bytes, int32_t length, ContiRadar *conti_radar) const override
const double OBJECT_AREL_LONG_MIN
const double OBJECT_ORIENTATION_ANGEL_MIN
const double OBJECT_AREL_LAT_MIN
const double OBJECT_AREL_RES
const double OBJECT_LENGTH_RES
const double OBJECT_WIDTH_RES
const double OBJECT_ORIENTATION_ANGEL_RES
optional int32 obstacle_id
repeated ContiRadarObs contiobs