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

RCL Executor and convenience functions #534

Closed

Commits on Dec 10, 2019

  1. Prepared package.xml files for rcl_ext and rcl_executor

    Signed-off-by: Ralph Lange <ralph.lange@de.bosch.com>
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    ralph-lange authored and JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    41a14d1 View commit details
    Browse the repository at this point in the history
  2. initial commit for rcl_executor and rcl_ext package

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    8e56fa2 View commit details
    Browse the repository at this point in the history
  3. resolved findings from 'colcon test'e.g. uncrustify cpplint etc.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    6704937 View commit details
    Browse the repository at this point in the history
  4. updated README.md

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    cff29be View commit details
    Browse the repository at this point in the history
  5. Update rcl_executor/include/rcl_executor/handle.h

    Co-Authored-By: Jacob Perron <jacob@openrobotics.org>
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat and jacobperron committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    2c90d03 View commit details
    Browse the repository at this point in the history
  6. Update rcl_executor/src/let_executor.c

    Co-Authored-By: Jacob Perron <jacob@openrobotics.org>
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat and jacobperron committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    b84cc4a View commit details
    Browse the repository at this point in the history
  7. Removed executor->initialized flag.

    Added a convenience function  _rcle_let_executor_is_valid(rcle_let_executor_t * executor) which checks internallly if the executor object is valid (aka handles is NULL). For this to work, it is necessary that the user first creates an executor variable with the function rcle_let_executor_get_zero_initialized_executor(void)
    like in rcl.
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    b14f37f View commit details
    Browse the repository at this point in the history
  8. in executor_fini function assigned handles to NULL and updated test c…

    …ases.
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    ebd5df5 View commit details
    Browse the repository at this point in the history
  9. removed vestigial print statement

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    5fde95c View commit details
    Browse the repository at this point in the history
  10. changed return value for fini function: always RCL_RET_OK

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    008a539 View commit details
    Browse the repository at this point in the history
  11. Feature: can add handles after spin_some is called. renamed wait_set_…

    …initialized to wait_set_valid. updated test cases.
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    b1cd3a0 View commit details
    Browse the repository at this point in the history
  12. removed changelog.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    afbd581 View commit details
    Browse the repository at this point in the history
  13. Removed duplicate find_package statement.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    8d5ad76 View commit details
    Browse the repository at this point in the history
  14. Improved formatting in README.md

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    ac3d9bb View commit details
    Browse the repository at this point in the history
  15. Corrected documentation in let_executor.h

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    d58b970 View commit details
    Browse the repository at this point in the history
  16. minor update

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    805b015 View commit details
    Browse the repository at this point in the history
  17. Minor changes for test-case.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    8e03acd View commit details
    Browse the repository at this point in the history
  18. Preparing for use of rcl_wait_set_is_valid.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    0273e3e View commit details
    Browse the repository at this point in the history
  19. Use of rcl_wait_set_is_valid

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    eb6ddd5 View commit details
    Browse the repository at this point in the history
  20. updating unit-tests

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    321d40f View commit details
    Browse the repository at this point in the history
  21. Added unit test 'update_wait_set' to test API wait_set_is_valid inste…

    …ad of using internal flag. Test successful.
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    7c1422e View commit details
    Browse the repository at this point in the history
  22. Compatability for spin_period function: Replaced gettimeofday by rcut…

    …ils clock. Prepared unit test.
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 10, 2019
    Configuration menu
    Copy the full SHA
    1fd23e9 View commit details
    Browse the repository at this point in the history

Commits on Dec 11, 2019

  1. Rewritten spin_period to be testable. Wrote unit test 'spin_period', …

    …tested this function successfully.
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    d2b1a55 View commit details
    Browse the repository at this point in the history
  2. Removed test fixture in test_handle.cpp.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    6899f66 View commit details
    Browse the repository at this point in the history
  3. Pull request comments:

    - Improved implementation for spin_one_period: instead of using static variables, using member of executor, allowing to change period when calling spin_one_period, feature: have multiple executors)
    - reviewer comments in handle.h (comments)
    - copyright notice (corrected year and added NOTICE file)
    - improved unit test for spin_one_period
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    256b4bb View commit details
    Browse the repository at this point in the history
  4. removed unused function _rcle_print_handles

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    573257e View commit details
    Browse the repository at this point in the history
  5. Improved formatting of comments.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    2fe6763 View commit details
    Browse the repository at this point in the history
  6. Resolved variable declaration of return values in rcle_let_executor_a…

    …dd_subscription().
    
    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    cdbfd4d View commit details
    Browse the repository at this point in the history
  7. Using memset to initialize rcle_handle_size_t object.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    a25dbe5 View commit details
    Browse the repository at this point in the history
  8. Renamed macro PRINT_RCL_ERROR to PRINT_RCL_LET_ERROR.

    Signed-off-by: Staschulat Jan <jan.staschulat@de.bosch.com>
    JanStaschulat committed Dec 11, 2019
    Configuration menu
    Copy the full SHA
    861d16a View commit details
    Browse the repository at this point in the history