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

QoS - API and implemention for event callbacks #6

Closed
wants to merge 11 commits into from

Commits on Apr 19, 2019

  1. Every executor gets its own SIGINT guard condition (ros2#308)

    * Every executor gets its own SIGINT guard condition
    
    Moves signal handling code to _rclpy_signal_handler
    Every executor adds a guard condition to a global list
    SIGINT signal handler triggers all guard conditions in global list
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * _sigint_gc robust to shutdown() called twice
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Remove redundant comments
    
    Comments say the same thing twice.
    It only needs to be said once.
    Remove extra comments so the same thing is not repeated.
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Split loop for readability
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * g_guard_conditions atomic variable
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Use rclutils_atomics macros
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Call original handler before losing reference to it
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * remove extra unnecessary assignment
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * g_guard_conditions is a struct on windows
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Rename action state transitions (ros2#300)
    
    * Rename action state transitions
    
    Now using active verbs as described in the design doc:
    
    http://design.ros2.org/articles/actions.html#goal-states
    
    Connects to ros2/rcl#399.
    
    Signed-off-by: Jacob Perron <jacob@openrobotics.org>
    
    * add missing error handling and cleanup (ros2#315)
    
    Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
    
    * Don't store sigint_gc address
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * remove redundant conditional
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Every executor gets its own SIGINT guard condition
    
    Moves signal handling code to _rclpy_signal_handler
    Every executor adds a guard condition to a global list
    SIGINT signal handler triggers all guard conditions in global list
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * _sigint_gc robust to shutdown() called twice
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Remove redundant comments
    
    Comments say the same thing twice.
    It only needs to be said once.
    Remove extra comments so the same thing is not repeated.
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Split loop for readability
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * g_guard_conditions atomic variable
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Use rclutils_atomics macros
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Call original handler before losing reference to it
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * remove extra unnecessary assignment
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * g_guard_conditions is a struct on windows
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * Don't store sigint_gc address
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    
    * remove redundant conditional
    
    Signed-off-by: Shane Loretz <sloretz@osrfoundation.org>
    sloretz authored Apr 19, 2019
    Configuration menu
    Copy the full SHA
    afc4cd4 View commit details
    Browse the repository at this point in the history

Commits on Apr 24, 2019

  1. enforce correct message type is passed to various API (ros2#317)

    * add tests ensuring TypeError is raised
    
    Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
    
    * raise TypeError when passing invalid message types
    
    Signed-off-by: Dirk Thomas <dirk-thomas@users.noreply.github.com>
    dirk-thomas authored Apr 24, 2019
    Configuration menu
    Copy the full SHA
    4bf61f4 View commit details
    Browse the repository at this point in the history
  2. QoS event callbacks implementation

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    8f93099 View commit details
    Browse the repository at this point in the history
  3. Using i for type instead of l, because l wasn't understanding -1

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    c8549b7 View commit details
    Browse the repository at this point in the history
  4. remove incorrect conclusion, I was seeing an existing shutdown issue …

    …in my test app, not in the rclpy functionality
    
    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    e8024c2 View commit details
    Browse the repository at this point in the history
  5. Address python-side review comments

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    d3bf96b View commit details
    Browse the repository at this point in the history
  6. Start addressing some of the C side feedback

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    5ec5b77 View commit details
    Browse the repository at this point in the history
  7. XDECREFs all in one place instead of complex deref logic

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    8d9856d View commit details
    Browse the repository at this point in the history
  8. Fix lint, start adding unit test

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    41854b5 View commit details
    Browse the repository at this point in the history
  9. Test num_events in NumberOfEntities

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    8dea930 View commit details
    Browse the repository at this point in the history
  10. Add some unit tests

    Signed-off-by: Emerson Knapp <eknapp@amazon.com>
    Emerson Knapp committed Apr 24, 2019
    Configuration menu
    Copy the full SHA
    e61bc6c View commit details
    Browse the repository at this point in the history