1 #ifndef _STROKE_CONVERTER_H_ 2 #define _STROKE_CONVERTER_H_ 43 virtual void makeTables()=0;
44 virtual void Angle2Stroke(std::vector<int16_t>& _strokes,
const std::vector<double>& _angles)=0;
45 virtual void Stroke2Angle(std::vector<double>& _angles,
const std::vector<int16_t>& _strokes)=0;
48 bool makeTable(std::vector<StrokeMap>& _table,
const std::string _file_name);
49 void makeInvTable(std::vector<StrokeMap>& _inv_table,
const std::vector<StrokeMap>& _table);
50 float setAngleToStroke(
const float _angle,
const std::vector<StrokeMap>& _table);
51 float setStrokeToAngle(
const float _stroke,
const std::vector<StrokeMap>& _inv_table);
54 (
const float _r_angle,
const float _p_angle,
55 const std::vector<StrokeMap>& _r_table,
const std::vector<StrokeMap>& _p_table,
56 const bool _is_pitch=
false);
std::vector< StrokeMap > table
ROSCONSOLE_DECL void initialize()
std::vector< StrokeMap > inv_table