-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
T265 query devices fix #3515
T265 query devices fix #3515
Conversation
1b1abbd
to
53086d3
Compare
Refactor TM2 Header compilation dependency Device_hub to track TM2 connect events Modify example rendered to support pose and motion data. Adjust demos affected by the change. Fix constness management Change-Id: Ieb8652bc95bb167e4522888c5fef5db346f75d4b
tm2_query_device shall be blocking awaiting T265 discovery and firmware load to take place Flow: - Invoke device discovery events - Wait for a predefined amount of time. - For each discovered DFU-mode device: - extend the timeout ( bounded by global max timeout) - Track cound of DFU vs FW-Loaded devices. - Stop when all DFU-devices have been loaded, or alternatively a timeout occurred. Bug fixes: - Reducing TM2 initialization time by 500 msec - The logger must be initialized before the FSM thread, otherwise it looses FSM startup messages due to race - Fix Pose frame rate - 200fps and not as previously stated - Fix uninitialized intrinsic parameter - Optimization refactoring Change-Id: Ide54a54c8dcf00369b1dd097dbf3ff8a6d53e629
99f2c77
to
8c79a52
Compare
Device_hub to use internal device event callback instead of overriding user-defined callback Multicam - handle hw event in the main thread instead of callback Change-Id: I46b5ae75483f1b078d0f623262a0ef285f849069
Explicit specialization in non-namespace scope Enforce explicit renderer assignment
d03df6c
to
79a503e
Compare
TM2 Logger to report errors GCC/Cland fixes/enhancement: fix atomic load/store, remove unused variables, -wpedantic rs-multicam: Remove debug messages & code cleanup
79a503e
to
e50f067
Compare
Change-Id: I7b0281b4085017455f14014d8f65bbd16032b464
- Simplify rs-multicam by removing dynamic device enumeration - Renderer to use implicit conversion - Fix T265 log verbosity level - Remove templatized rendering - Update the rs-multicam example documentation Change-Id: I9fc5632f04482715a085f0721c76078a4d54442f
6c9b144
to
49a05f1
Compare
examples/example.hpp
Outdated
// Provide textual representation only | ||
void put_text(const std::string& msg, float norm_x_pos, float norm_y_pos, const rect& r) | ||
{ | ||
if (!_gl_handle) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do you need _gl_handle?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed
examples/example.hpp
Outdated
} | ||
|
||
private: | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
empty line
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -106,6 +103,9 @@ namespace librealsense | |||
|
|||
typedef std::vector<std::shared_ptr<device_info>> devices_info; | |||
|
|||
//FW Decl |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
src/device_hub.cpp
Outdated
{ | ||
if (uvc.vid == vid || vid == 0) | ||
{ | ||
result.push_back(dev); | ||
break; | ||
} | ||
} | ||
|
||
if (data.tm2_devices.size() && (0== vid)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why vid==0?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
vid-based filtering is currently not supported for T265. Backend changes in tm2_info are required.
I made a semantic change to improve maintainability, also marked a TODO
@@ -44,6 +44,9 @@ namespace perc | |||
static std::mutex instanceExistMutex; | |||
static bool instanceExist; | |||
|
|||
// Await USB device discovery completion |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comment is somewhat confusing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ack-d
- Make hub_device filtering more explicit, add TODO for tm2_info missing part - Fix/Amend comments Change-Id: I94d87798d2205cf6692416a03a5ab3453e721660
…e wait anymore (avoid low power state)
T265: make context::query_devices to discover and enumerate device in a robust and deterministic manner.
Changes:
rs-record-playback
,rs-align
,rs-measure
.4 Reorder query_devices to prioritize D400 over T265
rs-multicam
:rs-enumerate-devices
- to provide a robust enumeration of all the connected T265 devices on startup (tested with up to four units)Optimizations& Bug fixes:
Addresses #3488, #3465, #3361, also related to #3437, #3434
Tracked on: TM2-4235