File tree Expand file tree Collapse file tree
GUITool/include/WindowsHandler Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -89,7 +89,7 @@ void AnimationController::transform_frame()
8989 is_xydata = !rtheta_data;
9090
9191 max_frame /= HZ;
92- --max_frame;
92+ --max_frame; // 0 ~ max_frame-1
9393
9494 _raw_bin_file.open (_raw_bin_path, std::ios::in | std::ios::binary);
9595 if (_raw_bin_file.fail ()) {
@@ -137,7 +137,6 @@ void AnimationController::check_auto_play()
137137AnimationController::AnimationController ()
138138{
139139 fps = 60 ;
140- HZ = 360 ;
141140 frame = 0 , max_frame = 0 ;
142141 window_size = 750 ;
143142
@@ -147,7 +146,6 @@ AnimationController::AnimationController()
147146 auto_play = false ;
148147 replay = false ;
149148
150- xy_data = Eigen::MatrixXd::Zero (HZ, 2 );
151149 _raw_bin_open = false ;
152150 is_xydata = false ;
153151}
Original file line number Diff line number Diff line change @@ -50,6 +50,7 @@ class AnimationController {
5050 bool is_xydata;
5151
5252 std::chrono::system_clock::time_point _current_time;
53+ std::string _tool_data_path;
5354 std::string _raw_bin_path;
5455 std::ifstream _raw_bin_file;
5556 bool _raw_bin_open;
You can’t perform that action at this time.
0 commit comments