Skip to content

Option to preserve T265 maps in memory for subsequent starts#5208

Merged
dorodnic merged 2 commits into
realsenseai:developmentfrom
radfordi:preserve-map
Dec 5, 2019
Merged

Option to preserve T265 maps in memory for subsequent starts#5208
dorodnic merged 2 commits into
realsenseai:developmentfrom
radfordi:preserve-map

Conversation

@radfordi

@radfordi radfordi commented Nov 7, 2019

Copy link
Copy Markdown
Contributor

No description provided.

@radfordi radfordi changed the title Option to preserve T265 maps in memory for subsequence starts Option to preserve T265 maps in memory for subsequent starts Nov 7, 2019
@radfordi radfordi requested a review from bfulkers-i November 7, 2019 21:19

@bfulkers-i bfulkers-i left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but @ev-mp or @dorodnic might want to take a quick look since this also adds an L500 option RS2_OPTION_DEPTH_OFFSET in a few place it was missing so might conflict if they added that elsewhere.

@ev-mp ev-mp left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add it to C# wrapper
Documenting this feature would be useful:

  • Default value
  • When the option becomes available/disabled
  • What happens after n-start/stop operation the map reaches its max. Does it stop update?

Comment thread include/librealsense2/h/rs_option.h Outdated
RS2_OPTION_ENABLE_POSE_JUMPING, /**< Enable position jumping */
RS2_OPTION_ENABLE_DYNAMIC_CALIBRATION, /**< Enable dynamic calibration */
RS2_OPTION_DEPTH_OFFSET, /**< Offset from sensor to depth origin in millimetrers*/
RS2_OPTION_ENABLE_MAP_PRESERVATION, /**< Preserve previous map when starting */

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pls keep the original order and append to end

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing this out. This needs a rebase after 3f82376.

Comment thread wrappers/matlab/option.m Outdated
enable_relocalization (56)
enable_pose_jumping (57)
enable_dynamic_calibration (58)
enable_depth_offset (59)

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check for consistency with c++ declaration

Comment thread wrappers/matlab/option.m
count (62)
end
end No newline at end of file
end

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@radfordi

radfordi commented Dec 4, 2019

Copy link
Copy Markdown
Contributor Author

@dorodnic, @ev-mp, I rebased to fix the ordering conflict due to new optioned being added on development, and I added missing support for C#.

@dorodnic dorodnic merged commit 94d4e5e into realsenseai:development Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants