Changeset 77:86f05b9bf3bc in rrlib_localization


Ignore:
Timestamp:
11.01.2019 18:00:37 (6 months ago)
Author:
Max Reichardt <max.reichardt@…>
Branch:
14.08
Phase:
public
Rebase:
33316338323538626337633263393262353035663061626637306461346266623665343639323531
Message:

Adds data types for velocity and acceleration vectors

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • rtti.cpp

    r45 r77  
    5959//static tDataType<tPoseWithUncertainty2D<>> init_type_pose_with_uncertainty_2d; 
    6060//static tDataType<tPoseWithUncertainty3D<>> init_type_pose_with_uncertainty_3d; 
     61static tDataType<tVelocity2D<>> init_type_velocity_2d("rrlib.localization.Velocity2D"); 
     62static tDataType<tAcceleration2D<>> init_type_acceleration_2d("rrlib.localization.Acceleration2D"); 
     63 
    6164 
    6265static tDataType<tTwist2D<>> init_type_twist_2d; 
     
    6467//static tDataType<tTwistWithUncertainty2D<>> init_type_twist_with_uncertainty_2d; 
    6568//static tDataType<tTwistWithUncertainty3D<>> init_type_twist_with_uncertainty_3d; 
     69static tDataType<tVelocity3D<>> init_type_velocity_3d("rrlib.localization.Velocity3D"); 
     70static tDataType<tAcceleration3D<>> init_type_acceleration_3d("rrlib.localization.Acceleration3D"); 
    6671 
    6772#endif 
  • tPosition.h

    r62 r77  
    6767template <typename TElement = double> 
    6868using tPositionChange2D = tPosition < 2, TElement, si_units::tSIUnit < 1, 0, -1, 0, 0, 0, 0 >>; 
     69template <typename TElement = double> 
     70using tVelocity2D = tPositionChange2D<TElement>; 
     71template <typename TElement = double> 
     72using tAcceleration2D = tPosition < 2, TElement, si_units::tSIUnit < 1, 0, -2, 0, 0, 0, 0 >>; 
     73 
    6974 
    7075template <typename TElement = double> 
     
    7277template <typename TElement = double> 
    7378using tPositionChange3D = tPosition < 3, TElement, si_units::tSIUnit < 1, 0, -1, 0, 0, 0, 0 >>; 
     79template <typename TElement = double> 
     80using tVelocity3D = tPositionChange3D<TElement>; 
     81template <typename TElement = double> 
     82using tAcceleration3D = tPosition < 3, TElement, si_units::tSIUnit < 1, 0, -2, 0, 0, 0, 0 >>; 
    7483 
    7584//---------------------------------------------------------------------- 
Note: See TracChangeset for help on using the changeset viewer.