fix(api): samples issues
This commit is contained in:
parent
189a2bd6b7
commit
dacad9483e
|
@ -64,7 +64,7 @@ int main(int argc, char *argv[]) {
|
||||||
*/
|
*/
|
||||||
|
|
||||||
painter.DrawImgData(img, *left_data.img);
|
painter.DrawImgData(img, *left_data.img);
|
||||||
if (!motion_datas.empty()) {
|
if (!motion_datas.empty() && motion_datas.size() > 0) {
|
||||||
painter.DrawImuData(img, *motion_datas[0].imu);
|
painter.DrawImuData(img, *motion_datas[0].imu);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -119,7 +119,7 @@ int main(int argc, char *argv[]) {
|
||||||
|
|
||||||
/*
|
/*
|
||||||
painter.DrawImgData(img, *left_data.img);
|
painter.DrawImgData(img, *left_data.img);
|
||||||
if (!motion_datas.empty()) {
|
if (!motion_datas.empty() && motion_datas.size() > 0) {
|
||||||
painter.DrawImuData(img, *motion_datas[0].imu);
|
painter.DrawImuData(img, *motion_datas[0].imu);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in New Issue
Block a user