get Solid blocks derived inertia and mass values
14 次查看(过去 30 天)
显示 更早的评论
Hi,
I would like to be able to get the derived values of the inertia and mass of the solid body blocks found in a Simulink Model using get_param function.
The values I am getting using a matlab script don't show the 'updated' values, rather the default values I = [1 1 1 0 0 0], mass = 1, despite updating them manually in the block parameters.
The intent is to create a RigidBodyTree from the given multiBody simulink model. I know there is importrobot() function but that one creates links frames not based on DH criteria which creates issues for me. Thanks.
3 个评论
回答(1 个)
Steve Miller
2023-2-12
The derived properties are displayed on the block, but are not accessible via get_param().
If you want to automate getting these values, you could use the Inertia Sensor, run a short simulation and save the results to the workspace.
--Steve
2 个评论
Fangjun Jiang
2023-2-13
I guess the question or request is to have access to those derived values. No need to add sensor and log to get the value since the value is already displayed.
If there is an interface on the RigidBodyTree to use the sensor, then that might be a solution.
The derived values must be interim variables in the mask as they are calculated and displayed. I dug deep into the mask but couldn't find a way.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulation and Analysis 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!