Simulink's integrator gives weird output
6 ビュー (過去 30 日間)
古いコメントを表示
Hello, I am trying to simulate when a robot grasps an object's end point, and calculate the object's center of mass' (COM) acceleration via the robot's end-effector's motion data. Then, I integrate the acceleration to obtain the velocity of the object's COM. The robot standing still untill 4 seconds, then starts to generate the motion.
However, the output of the integrator (velocity) does not match with the input ( calculated COM acceleration). First of all, the sign of the input and the output is different. The input goes to minus but the output goes to the plus.
When I used actual value of the COM acceleration as the input of the integrator, the sign of the output was same as the input. When I used lsim to integrate the calculated COM acceleration by using simulink's integrator model (https://kr.mathworks.com/help/simulink/slref/integrator.html), the sign of the input and the output were same. What made this difference and how can I solve it?
I'll attach the actual and calculated acceleration of COM and it's integration (velocity) of my simulation. Each data's 1st column is time, 2nd to 4th columns are x, y, z directional data, respectively. I used ode4 (Runge-Kutta) of Fixed-step.





9 件のコメント
Paul
2023 年 1 月 3 日
In short, the Simulink model has two integrators. Each integrator has identical settings. Each has a separate input, but the inputs are essentially identical functions of time. However, the outputs of each integrator are very different.
If that's the observation, I'm afraid I can't be of any more help. If you attach a .slx file that illustrates the observed behavior (not necessarily the entire model, just the two integrators and a means to generate the integrator inputs), someone might be willing to download that .slx file and try to replicate what you're seeing and offer a path forward.
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で General Applications についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!