fix: fix array bug

This commit is contained in:
fan-ziqi 2024-03-24 22:58:15 +08:00
parent 1b12b00fd1
commit 2c11e23ca4
2 changed files with 3 additions and 3 deletions

View File

@ -67,8 +67,8 @@ private:
std::vector<double> joint_positions;
std::vector<double> joint_velocities;
int dof_mapping[13] = {3, 4, 5, 0, 1, 2, 9, 10, 11, 6, 7, 8};
int hip_scale_reduction_indices[] = {0, 3, 6, 9};
int dof_mapping[12] = {3, 4, 5, 0, 1, 2, 9, 10, 11, 6, 7, 8};
int hip_scale_reduction_indices[4] = {0, 3, 6, 9};
std::chrono::high_resolution_clock::time_point start_time;

View File

@ -58,7 +58,7 @@ private:
std::vector<double> joint_positions;
std::vector<double> joint_velocities;
int hip_scale_reduction_indices[] = {0, 3, 6, 9};
int hip_scale_reduction_indices[4] = {0, 3, 6, 9};
std::chrono::high_resolution_clock::time_point start_time;