Skip to content

Commit ab5edbc

Browse files
committed
make the HZ and tool_data_path can be used in both simulation and label window
1 parent 386c12d commit ab5edbc

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

GUITool/include/WindowsHandler/Controller.cpp

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff 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()
137137
AnimationController::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
}

GUITool/include/WindowsHandler/Controller.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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;

0 commit comments

Comments
 (0)