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

Remove tf subscription from frame manager and use tf buffer instead #62

Open
wants to merge 7 commits into
base: main
Choose a base branch
from

Commits on Oct 14, 2020

  1. Use TF Buffer to fetch frame pose instead of maintaining a custom map…

    … of transformations
    
    Also fixes the issues where the tf arrow glitched due to requesting data from tf buffer before it was populated
    
    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    f53c8cd View commit details
    Browse the repository at this point in the history
  2. Remove all mutex locks in frame manager

    Since in all the functions only data is being read and is not being written/updated so there is no need for any lock. 
    
    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    
    Tf buffer itself is thread safe as well.
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    12b9018 View commit details
    Browse the repository at this point in the history
  3. Remove frame list changed event

    Each plugin can fetch the latest frames from the frame mange as and when needed.
    No need of listening to an event.
    
    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    4ea2e7b View commit details
    Browse the repository at this point in the history
  4. Add locks when reading fixed frames

    Since atomic operations aren't possible with strings, locks do the job
    
    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    7fe3018 View commit details
    Browse the repository at this point in the history
  5. Create timer for generating events when frames are updated

    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    e245e75 View commit details
    Browse the repository at this point in the history
  6. Revert to using event to monitor tf frames

    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    dccf2f8 View commit details
    Browse the repository at this point in the history
  7. Remove timeout of 1 second when waiting for transform

    Most plugins require the latest TF and and handle scenarios in case TF is unavailable so no need to wait for TF to become available
    
    Signed-off-by: Shrijit Singh <shrijitsingh99@gmail.com>
    shrijitsingh99 committed Oct 14, 2020
    Configuration menu
    Copy the full SHA
    b8c4c22 View commit details
    Browse the repository at this point in the history