-
- Downloads
Test size of variables before trying to allocate memory.
When trying an array of data one should test if the size is zero. Indeed in such case, the time to handle the error by the system can be prohibitive. This commit lower the time to allocate memory from 18 ms to 8 ms. A better policy would be to allocate memory when called by the control part which is not supposed to in the real-time part of the controller.
Showing
- doc/additionalHeader/modules.hh 0 additions, 0 deletionsdoc/additionalHeader/modules.hh
- src/ZMPRefTrajectoryGeneration/qp-problem.cpp 82 additions, 46 deletionssrc/ZMPRefTrajectoryGeneration/qp-problem.cpp
- src/ZMPRefTrajectoryGeneration/qp-problem.hh 3 additions, 1 deletionsrc/ZMPRefTrajectoryGeneration/qp-problem.hh
File moved
Please register or sign in to comment