-
Couldn't load subscription status.
- Fork 4.9k
tm_sensor - doxygen doc of relocalization functions #4685
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -95,9 +95,49 @@ namespace librealsense | |||||
| void set_manual_exposure(bool manual); | ||||||
|
|
||||||
| // Pose interfaces | ||||||
|
|
||||||
| /** | ||||||
| * Get relocalization map that is currently on device, created and updated during most recent tracking session. | ||||||
| * Can be called before or after stop(). | ||||||
| * \param[out] lmap_buf map data as a binary blob | ||||||
| * \return true if success | ||||||
| */ | ||||||
| bool export_relocalization_map(std::vector<uint8_t>& lmap_buf) const override; | ||||||
|
|
||||||
| /** | ||||||
| * Load relocalization map onto device. Only one relocalization map can be imported at a time; | ||||||
| * any previously existing map will be overwritten. | ||||||
| * The imported map exists simultaneously with the map created during the most tracking session after start(), | ||||||
| * and they are merged after the imported map is relocalized. | ||||||
| * This operation must be done before start(). | ||||||
| * \param[in] lmap_buf map data as a binary blob | ||||||
| * \return true if success | ||||||
| */ | ||||||
| bool import_relocalization_map(const std::vector<uint8_t>& lmap_buf) const override; | ||||||
|
|
||||||
| /** | ||||||
| * Creates a named virtual landmark in the current map, known as static node. | ||||||
| * The static node's pose is provided relative to the origin of current coordinate system of device poses. | ||||||
| * This function fails if the current tracker confidence is below 3 (high confidence). | ||||||
| * \param[in] guid unique name of the static node. If a static node with the same name already exists | ||||||
| * in the current map or the imported map, the static node is overwritten. | ||||||
| * \param[in] pos position of the static node in the 3D space. | ||||||
| * \param[in] orient_quat orientation of the static node in the 3D space, represented by a unit quaternion. | ||||||
| * \return true if success. | ||||||
| */ | ||||||
| bool set_static_node(const std::string& guid, const float3& pos, const float4& orient_quat) const override; | ||||||
|
|
||||||
| /** | ||||||
| * Gets the current pose of a static node that was created in the current map or in an imported map. | ||||||
| * Static nodes of imported maps are available after relocalizing the imported map. | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
And as a bonus, how would anyone know that a relocalization has occurred? sounds like that currently is non-trivial, so it may be best to not comment on it it until it's easy for user to catch those notifications. |
||||||
| * The static node's pose is returned relative to the current origin of coordinates of device poses. | ||||||
| * Thus, poses of static nodes of an imported map are consistent with current device poses after relocalization. | ||||||
| * This function fails if the current tracker confidence is below 3 (high confidence). | ||||||
| * \param[in] guid unique name of the static node. | ||||||
| * \param[out] pos position of the static node in the 3D space. | ||||||
| * \param[out] orient_quat orientation of the static node in the 3D space, represented by a unit quaternion. | ||||||
| * \return true if success. | ||||||
| */ | ||||||
| bool get_static_node(const std::string& guid, float3& pos, float4& orient_quat) const override; | ||||||
|
|
||||||
| // Wheel odometer | ||||||
|
|
||||||
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.