Center of Gravity Calculation in 3D Space

조회 수: 5 (최근 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 CenterFile Exchange에서 Assembly에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by