$darkmode
osi_utils.hpp File Reference
#include <string>
#include <Eigen/Geometry>
#include <cloe/core.hpp>
#include <cloe/simulator.hpp>
#include "osi_common.pb.h"
#include "osi_sensordata.pb.h"
Include dependency graph for osi_utils.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define osi_require(name, test_expr)    ((test_expr) ? (void)0 : throw cloe::ModelError("OSI message: {} required!", name))
 

Functions

cloe::Logger osii::osi_logger ()
 
void osii::osi_to_file (const osi3::SensorData &data, const std::string &fname)
 
Eigen::Vector3d osii::osi_vector3d_xyz_to_vector3d (const osi3::Vector3d osi_coord)
 
void osii::vector3d_to_osi_vector3d_xyz (const Eigen::Vector3d &vec, osi3::Vector3d *osi_vec)
 
Eigen::Vector3d osii::osi_dimension3d_lwh_to_vector3d (const osi3::Dimension3d osi_dim)
 
Eigen::Vector3d osii::osi_orientation3d_rpy_to_vector3d (const osi3::Orientation3d osi_ori)
 
Eigen::Vector3d osii::osi_vehicle_attrib_rear_offset_to_vector3d (const osi3::MovingObject::VehicleAttributes &osi_va)
 
template<typename T >
Eigen::Isometry3d osii::osi_position_orientation_to_pose (const T &osi_T)
 
void osii::pose_to_osi_position_orientation (const Eigen::Isometry3d &pose_in, osi3::BaseMoving &base)
 
void osii::osi_transform_base_moving (const osi3::BaseMoving &base_ref, osi3::BaseMoving &base)
 

Detailed Description

See also
osi_utils.cpp

Function Documentation

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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_refReference frame position/orientation in common coordinate system.
baseBase in common coordinate system, to be transformed into base_ref frame.
Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pose_to_osi_position_orientation()

void osii::pose_to_osi_position_orientation ( const Eigen::Isometry3d &  ,
osi3::BaseMoving &  base 
)

Convert object pose to OSI BaseMoving.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ 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).

Here is the call graph for this function:
Here is the caller graph for this function: