Changeset 80:b8a8e974d5d5 in rrlib_localization


Ignore:
Timestamp:
14.01.2019 11:57:31 (6 weeks ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
14.08
Phase:
public
Message:

Adds typedef for tIMUData data type: a tuple with data, as typically obtained from IMU. Moves some more data type definitions to newly introduced definitions.h.

Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • rtti.cpp

    r77 r80  
    3939// Internal includes with "" 
    4040//---------------------------------------------------------------------- 
     41#include "rrlib/localization/definitions.h" 
    4142#include "rrlib/localization/tPose.h" 
    4243 
     
    7071static tDataType<tAcceleration3D<>> init_type_acceleration_3d("rrlib.localization.Acceleration3D"); 
    7172 
     73static tDataType<tIMUData<>> init_type_imu_data("rrlib.localization.IMUData"); 
     74 
    7275#endif 
    7376 
  • tPosition.h

    r77 r80  
    6767template <typename TElement = double> 
    6868using tPositionChange2D = tPosition < 2, TElement, si_units::tSIUnit < 1, 0, -1, 0, 0, 0, 0 >>; 
    69 template <typename TElement = double> 
    70 using tVelocity2D = tPositionChange2D<TElement>; 
    71 template <typename TElement = double> 
    72 using tAcceleration2D = tPosition < 2, TElement, si_units::tSIUnit < 1, 0, -2, 0, 0, 0, 0 >>; 
    73  
    7469 
    7570template <typename TElement = double> 
     
    7772template <typename TElement = double> 
    7873using tPositionChange3D = tPosition < 3, TElement, si_units::tSIUnit < 1, 0, -1, 0, 0, 0, 0 >>; 
    79 template <typename TElement = double> 
    80 using tVelocity3D = tPositionChange3D<TElement>; 
    81 template <typename TElement = double> 
    82 using tAcceleration3D = tPosition < 3, TElement, si_units::tSIUnit < 1, 0, -2, 0, 0, 0, 0 >>; 
    8374 
    8475//---------------------------------------------------------------------- 
  • tests/position.cpp

    r78 r80  
    3636#include <cstring> 
    3737 
    38 #include "rrlib/localization/tPosition.h" 
     38#include "rrlib/localization/definitions.h" 
    3939 
    4040//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.