Center of Gravity Calculation in 3D Space

3 ビュー (過去 30 日間)
Dario Denzler
Dario Denzler 2015 年 7 月 22 日
コメント済み: Prathyush Pandey 2023 年 5 月 29 日
Hi
I have a force-torque sensor on a robot arm and would like to automatically evaluate the force and CoG of the attached tool. I thought about measuring force and torque under different orientation and averaging the results. What I have so far:
function [ fg, cog ] = ldd( f, m )
%LoadDataDetection
%Calculating gravity force and center of gravity of attached tool based on
%FT-Sensor data.
transpose(f);
transpose(m);
r = transpose([sym('x') sym('y') sym('z')]);
eqn = m == cross(f,r);
fg = sqrt(f(1)^2 + f(2)^2 + f(3)^2);
cog = solve(eqn);
end
f and m represents the measured force and torque of the sensor, cog should be a 3x1 vector with the cog values (x,y,z).
The problem is, under some configurations, I do get equations 0==0 (mass in XY plane for example) and therefore, the solve does not work. Additionally, as I use sensor measurements, I do not get an exact solution and would have to integrate some residuum term that has to be minimized.
Any idea how to approach this problem? I am very new to matlab but I guess this should be some very simple problem. =)
  1 件のコメント
Prathyush Pandey
Prathyush Pandey 2023 年 5 月 29 日
Hey,
Did you find a solution to this problem?

サインインしてコメントする。

回答 (0 件)

カテゴリ

Help Center および File ExchangeAssembly についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by