Skip to content

Commit d6d32fd

Browse files
committed
add check start IMU
1 parent 1829753 commit d6d32fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

orbbec_camera/src/ob_camera_node.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void OBCameraNode::startStreams() {
265265

266266
void OBCameraNode::startIMU() {
267267
for (const auto &stream_index : HID_STREAMS) {
268-
if (enable_stream_[stream_index]) {
268+
if (enable_stream_[stream_index] && !imu_started_[stream_index]) {
269269
CHECK(sensors_.count(stream_index));
270270
auto profile_list = sensors_[stream_index]->getStreamProfileList();
271271
for (size_t i = 0; i < profile_list->count(); i++) {

0 commit comments

Comments
 (0)