#include <string>
#include <Eigen/Geometry>
#include <cloe/core.hpp>
#include <cloe/simulator.hpp>
#include "osi_common.pb.h"
#include "osi_sensordata.pb.h"
Go to the source code of this file.
|
|
#define | osi_require(name, test_expr) ((test_expr) ? (void)0 : throw cloe::ModelError("OSI message: {} required!", name)) |
| |
◆ osi_dimension3d_lwh_to_vector3d()
| Eigen::Vector3d osii::osi_dimension3d_lwh_to_vector3d |
( |
const osi3::Dimension3d |
osi_dim | ) |
|
Convert a osi3::Dimension3d (l, w, h) into Eigen::Vector3d.
◆ osi_orientation3d_rpy_to_vector3d()
| Eigen::Vector3d osii::osi_orientation3d_rpy_to_vector3d |
( |
const osi3::Orientation3d |
osi_ori | ) |
|
Convert a osi3::Orientation3d (r, p, y) into Eigen::Vector3d.
◆ osi_position_orientation_to_pose()
template<typename T >
| Eigen::Isometry3d osii::osi_position_orientation_to_pose |
( |
const T & |
osi_T | ) |
|
Convert OSI position and orientation to pose.
◆ osi_to_file()
| void osii::osi_to_file |
( |
const osi3::SensorData & |
data, |
|
|
const std::string & |
fname |
|
) |
| |
Write OSI sensor data message to a .json file.
◆ osi_transform_base_moving()
| void osii::osi_transform_base_moving |
( |
const osi3::BaseMoving & |
base_ref, |
|
|
osi3::BaseMoving & |
base |
|
) |
| |
Transform OSI BaseMoving into given reference frame.
- Parameters
-
| base_ref | Reference frame position/orientation in common coordinate system. |
| base | Base in common coordinate system, to be transformed into base_ref frame. |
◆ osi_vector3d_xyz_to_vector3d()
| Eigen::Vector3d osii::osi_vector3d_xyz_to_vector3d |
( |
const osi3::Vector3d |
osi_coord | ) |
|
Convert osi3::Vector3d (x, y, z) into Eigen::Vector3d.
◆ osi_vehicle_attrib_rear_offset_to_vector3d()
| Eigen::Vector3d osii::osi_vehicle_attrib_rear_offset_to_vector3d |
( |
const osi3::MovingObject::VehicleAttributes & |
osi_va | ) |
|
Convert vehicle attribute bbcenter_to_rear into Eigen::Vector3d.
◆ pose_to_osi_position_orientation()
| void osii::pose_to_osi_position_orientation |
( |
const Eigen::Isometry3d & |
, |
|
|
osi3::BaseMoving & |
base |
|
) |
| |
Convert object pose to OSI BaseMoving.
◆ vector3d_to_osi_vector3d_xyz()
| void osii::vector3d_to_osi_vector3d_xyz |
( |
const Eigen::Vector3d & |
vec, |
|
|
osi3::Vector3d * |
osi_vec |
|
) |
| |
Convert Eigen::Vector3d into osi3::Vector3d (x, y, z).