Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

increase frame queue size for tm2 #4602

Merged
merged 1 commit into from
Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/source.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ namespace librealsense
_archive[ex] = std::make_shared<frame_archive<T>>(&_max_publish_list_size, _ts, _metadata_parsers);
}

void set_max_publish_list_size(int qsize) {_max_publish_list_size = qsize; }

private:
friend class syncer_process_unit;

Expand Down
1 change: 1 addition & 0 deletions src/tm2/tm-device.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@ namespace librealsense
tm2_sensor::tm2_sensor(tm2_device* owner, perc::TrackingDevice* dev)
: sensor_base("Tracking Module", owner, this), _dispatcher(10), _tm_dev(dev)
{
_source.set_max_publish_list_size(64); //increase frame source queue size for TM2
register_metadata(RS2_FRAME_METADATA_ACTUAL_EXPOSURE, std::make_shared<md_tm2_parser>(RS2_FRAME_METADATA_ACTUAL_EXPOSURE));
register_metadata(RS2_FRAME_METADATA_TEMPERATURE , std::make_shared<md_tm2_parser>(RS2_FRAME_METADATA_TEMPERATURE));
//Replacing md parser for RS2_FRAME_METADATA_TIME_OF_ARRIVAL
Expand Down