kinect v2 & MATLAB ROS
11 ビュー (過去 30 日間)
古いコメントを表示
good morning, I'm working with 3 kinects through Matlab-ROS, and i need some help about this. I receive the information from the kinects every 0.1 sec and I need to operate online saving the XYZ and RGB information of each kinect, but the readRGB, readXYZ, readField functions are too slow, keeping the cycle busy 30 seconds for each acquisition. Is there a way to speed up saving these variables?
I enclose my script:
sub0 = rossubscriber('/kinect0/sd/points');
sub1 = rossubscriber('/kinect1/sd/points');
sub2 = rossubscriber('/kinect2/sd/points');
while(~FS.Stop())
tic;
pcloud0008 = receive(sub0);
pcloud0007 = receive(sub1);
pcloud0015 = receive(sub2);
pcloud0008.PreserveStructureOnRead = true;
pcloud0007.PreserveStructureOnRead = true;
pcloud0015.PreserveStructureOnRead = true;
xyz0=readXYZ(pcloud0008);
xyz1=readXYZ(pcloud0007);
xyz2=readXYZ(pcloud0015);
rgb0=readRGB(pcloud0008);
rgb1=readRGB(pcloud0007);
rgb2=readRGB(pcloud0015);
toc
end
0 件のコメント
回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Kinect For Windows Sensor についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!