How to get values from structure array
1 回表示 (過去 30 日間)
古いコメントを表示
Hello. I wonder how to get values from structure array, in my case. I know that second line is: incorrect--possibly unbalanced (, {, or [. Code:
Pose = rget( Kawasaki, 'pose');
getPoseValue =(Pose.x,Pose.y,Pose.z,Pose.o,Pose.t);
rset( Kawasaki, 'base', rpoint(getPoseValue) );
This is how it should be done with constant values. I want to get fresh values from pose of my robot.
Code2:
%rset( Kawasaki, 'base',
%rpoint(177.957,349.963,-229.418,15.983,179.610,-162.582) );

2 件のコメント
Walter Roberson
2018 年 1 月 22 日
This appears to relate to http://www.cea-wismar.de/tbx/MatlabKK_Robotic-and-Visualization_Tbx/docu/fulldocu.html
採用された回答
Walter Roberson
2018 年 1 月 22 日
getPoseValue = [Pose.x,Pose.y,Pose.z,Pose.o,Pose.t];
temp = num2cell(getPoseValue);
rset( Kawasaki, 'base', rpoint(temp{:}) );
... might be easier to just call
rset( Kawaski, 'base', rpoint(Pose.x,Pose.y,Pose.z,Pose.o,Pose.t))
3 件のコメント
Walter Roberson
2018 年 1 月 22 日
The documentation I found (and linked to above) gives only a bare outline of the commands. The source code itself is not openly available, requiring an application for permission to use it. Unfortunately I am not considered "academic" and I am not a robotics researcher, so I am probably not qualified to access it.
その他の回答 (0 件)
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!