$darkmode
#include "osi_omni_sensor.hpp"#include <math.h>#include <algorithm>#include <cassert>#include <map>#include <Eigen/Geometry>#include <cloe/component/lane_boundary.hpp>#include <cloe/component/object.hpp>#include <cloe/core.hpp>#include <cloe/simulator.hpp>#include <cloe/utility/geometry.hpp>#include "osi_common.pb.h"#include "osi_detectedobject.pb.h"#include "osi_hostvehicledata.pb.h"#include "osi_object.pb.h"#include "osi_sensordata.pb.h"#include "osi_sensorview.pb.h"#include "osi_ground_truth.hpp"#include "osi_utils.hpp"Functions | |
| Eigen::Isometry3d | osii::osi_position_orientation_to_pose_alt (const osi3::BaseMoving &base, const osi3::BaseMoving &base_gt) |
| cloe::Duration | osii::osi_timestamp_to_time (const osi3::Timestamp ×tamp) |
| void | osii::from_osi_identifier (const osi3::Identifier &osi_id, int &id) |
| void | osii::from_osi_host_vehicle_data (const osi3::HostVehicleData &osi_hv, cloe::Object &obj) |
| void | osii::from_osi_detected_item_header (const osi3::DetectedItemHeader &osi_hdr, cloe::Object &obj) |
| void | osii::from_osi_detected_moving_object (const osi3::DetectedMovingObject &osi_mo, cloe::Object &obj) |
| void | osii::from_osi_detected_moving_object_alt (const osi3::DetectedMovingObject &osi_mo, const OsiGroundTruth &ground_truth, cloe::Object &obj) |
| void | osii::from_osi_base_moving (const osi3::BaseMoving &osi_bm, cloe::Object &obj) |
| void | osii::from_osi_base_moving_alt (const osi3::BaseMoving &osi_bm, const osi3::BaseMoving &osi_bm_gt, cloe::Object &obj) |
| template<typename T > | |
| void | osii::from_osi_mov_obj_type_classification (const T &osi_mo, cloe::Object::Class &oc) |
| template void | osii::from_osi_mov_obj_type_classification< osi3::MovingObject > (const osi3::MovingObject &osi_mo, cloe::Object::Class &oc) |
| template void | osii::from_osi_mov_obj_type_classification< osi3::DetectedMovingObject::CandidateMovingObject > (const osi3::DetectedMovingObject::CandidateMovingObject &osi_mo, cloe::Object::Class &oc) |
| void | osii::from_osi_mov_obj_type_classification (const osi3::MovingObject::Type &osi_ot, const osi3::MovingObject::VehicleClassification::Type &osi_vt, cloe::Object::Class &oc) |
| void | osii::transform_ego_coord_from_osi_data (const Eigen::Vector3d &dimensions_gt, cloe::Object &obj) |
| void | osii::transform_obj_coord_from_osi_data (const Eigen::Isometry3d &sensor_pose, const Eigen::Vector3d &dimensions_gt, cloe::Object &obj) |
Variables | |
| const std::map< osi3::MovingObject::Type, cloe::Object::Class > | osii::osi_mov_obj_type_map |
| const std::map< osi3::MovingObject::VehicleClassification::Type, cloe::Object::Class > | osii::osi_mov_veh_class_map |
| const std::map< osi3::LaneBoundary_Classification_Type, cloe::LaneBoundary::Type > | osii::osi_lane_bdry_type_map |
| const std::map< int, cloe::LaneBoundary::Color > | osii::osi_lane_bdry_color_map |
| void osii::from_osi_base_moving | ( | const osi3::BaseMoving & | osi_bm, |
| cloe::Object & | obj | ||
| ) |
Map the OSI data fields without taking care of transformations to the Cloe reference frame convention. Note that the OSI reference frame may differ for different object data types.
| void osii::from_osi_base_moving_alt | ( | const osi3::BaseMoving & | osi_bm, |
| const osi3::BaseMoving & | osi_bm_gt, | ||
| cloe::Object & | obj | ||
| ) |
As from_osi_base_moving, but use ground truth information if required data is not provided by sensor (model).
| void osii::from_osi_host_vehicle_data | ( | const osi3::HostVehicleData & | osi_hv, |
| cloe::Object & | obj | ||
| ) |
OSI host vehicle coordinates/orientations are relative to the global ground truth coordinate system. Here, this data is stored in a Cloe object.
| cloe::Duration osii::osi_timestamp_to_time | ( | const osi3::Timestamp & | timestamp | ) |
Convert OSI timestamp to Cloe time format.
| void osii::transform_obj_coord_from_osi_data | ( | const Eigen::Isometry3d & | sensor_pose, |
| const Eigen::Vector3d & | dimensions_gt, | ||
| cloe::Object & | obj | ||
| ) |
| sensor_pose | Relation between the sensor frame and the ego vehicle frame, expressed in the ego vehicle frame. |
| obj | When enter: Geometric information in ego vehicle frame. When return: Geometric information in sensor frame. |
| const std::map<int, cloe::LaneBoundary::Color> osii::osi_lane_bdry_color_map |
Convert from OSI lane boundary colors to Cloe colors.
| const std::map<osi3::LaneBoundary_Classification_Type, cloe::LaneBoundary::Type> osii::osi_lane_bdry_type_map |
Convert from OSI lane boundary types to Cloe types.
| const std::map<osi3::MovingObject::Type, cloe::Object::Class> osii::osi_mov_obj_type_map |
Convert from OSI moving object type to Cloe object classification. Note that vehicles are treated explicitly in osi_mov_veh_class_map.
| const std::map<osi3::MovingObject::VehicleClassification::Type, cloe::Object::Class> osii::osi_mov_veh_class_map |
Convert from OSI moving vehicle type to Cloe object classification. Note that objects other than vehicles are treated explicitly in osi_mov_obj_type_map.