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

Add rclcpp_generic, a publisher and subscription for serialized messages #1452

Merged
merged 43 commits into from
Apr 3, 2021

Commits on Apr 1, 2021

  1. Copying files from rosbag2

    The generic_* files are from rosbag2_transport
    typesupport_helpers incl. test is from rosbag2_cpp
    memory_management.hpp is from rosbag2_test_common
    test_pubsub.cpp was renamed from test_rosbag2_node.cpp from rosbag2_transport
    
    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    06e9272 View commit details
    Browse the repository at this point in the history
  2. Rebrand into rclcpp_generic

    Add package.xml, CMakeLists.txt, Doxyfile, README.md and CHANGELOG.rst
    Rename namespaces
    Make GenericPublisher and GenericSubscription self-contained by storing shared library
    New create() methods that return shared pointers
    Add docstrings
    Include only what is needed
    Make linters & tests pass
    
    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    93fc497 View commit details
    Browse the repository at this point in the history
  3. Review feedback

    * Delete CHANGELOG.rst
    * Enable cppcheck
    * Remove all references to rosbag2/ros2bag
    
    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    83be9dc View commit details
    Browse the repository at this point in the history
  4. Move rclpp_generic into rclcpp

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    513c1b8 View commit details
    Browse the repository at this point in the history
  5. Rename namespace rclcpp_generic to rclcpp::generic

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    1481f81 View commit details
    Browse the repository at this point in the history
  6. Free 'create' functions instead of static functions in class

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    4a8bfbc View commit details
    Browse the repository at this point in the history
  7. Remove 'generic' subdirectory and namespace hierarchy

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    8e923ee View commit details
    Browse the repository at this point in the history
  8. Order includes according to style guide

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    4b82f3a View commit details
    Browse the repository at this point in the history
  9. Remove extra README.md

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    aa9f827 View commit details
    Browse the repository at this point in the history
  10. Also add brief to class docs

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    f41f738 View commit details
    Browse the repository at this point in the history
  11. Make ament_index_cpp a build_depend

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    ff8c8ef View commit details
    Browse the repository at this point in the history
  12. Add to rclcpp.hpp

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    9a2607e View commit details
    Browse the repository at this point in the history
  13. Remove memory_management, use rclcpp::SerializedMessage in GenericPub…

    …lisher::publish
    
    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    d02fd9d View commit details
    Browse the repository at this point in the history
  14. Clean up the typesupport_helpers

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    be8eea8 View commit details
    Browse the repository at this point in the history
  15. Use make_shared, add UnimplementedError

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    b7c8a26 View commit details
    Browse the repository at this point in the history
  16. Add more comments, make member variable private, remove unnecessary i…

    …nclude
    
    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    fb39f2e View commit details
    Browse the repository at this point in the history
  17. Apply suggestions from code review

    Co-authored-by: William Woodall <[email protected]>
    Signed-off-by: Nikolai Morin <[email protected]>
    2 people authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    66cca2a View commit details
    Browse the repository at this point in the history
  18. Rename test

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    e338ceb View commit details
    Browse the repository at this point in the history
  19. Update copyright and remove ament_target_dependencies for test

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    221efa6 View commit details
    Browse the repository at this point in the history
  20. Accept PublisherOptions and SubscriptionOptions

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    6d816a2 View commit details
    Browse the repository at this point in the history
  21. Remove target_include_directories

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    ee68c11 View commit details
    Browse the repository at this point in the history
  22. Add explanatory comment to SubscriptionBase

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    78b2fc2 View commit details
    Browse the repository at this point in the history
  23. Use kSolibPrefix and kSolibExtension from rcpputils

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    1fabb9a View commit details
    Browse the repository at this point in the history
  24. Fix downstream build failure by making ament_index_cpp a build_export…

    …_depend
    
    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    eb3c70e View commit details
    Browse the repository at this point in the history
  25. Use path_for_library(), fix documentation nitpicks

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    3a2ee61 View commit details
    Browse the repository at this point in the history
  26. Improve error handling in get_typesupport_handle

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    a90c915 View commit details
    Browse the repository at this point in the history
  27. Accept SubscriptionOptions in GenericSubscription

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    3a6aad4 View commit details
    Browse the repository at this point in the history
  28. Make use of PublisherOptions in GenericPublisher

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    fb5af58 View commit details
    Browse the repository at this point in the history
  29. Document typesupport_helpers

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    4f26f36 View commit details
    Browse the repository at this point in the history
  30. Improve documentation

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    9450c3d View commit details
    Browse the repository at this point in the history
  31. Use std::function instead of function pointer

    Co-authored-by: William Woodall <[email protected]>
    Signed-off-by: Nikolai Morin <[email protected]>
    2 people authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    2ec829b View commit details
    Browse the repository at this point in the history
  32. Minimize vertical whitespace

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    7c18bdc View commit details
    Browse the repository at this point in the history
  33. Add TODO for callback with message info

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    9c6f0ed View commit details
    Browse the repository at this point in the history
  34. Link issue in TODO

    Signed-off-by: Nikolai Morin <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    dc4ddbb View commit details
    Browse the repository at this point in the history
  35. Add missing include for functional

    Signed-off-by: nnmm <[email protected]>
    nnmm authored and jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    dc347c9 View commit details
    Browse the repository at this point in the history
  36. Fix compilation

    Signed-off-by: Jacob Perron <[email protected]>
    jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    34d7316 View commit details
    Browse the repository at this point in the history
  37. Fix lint

    Signed-off-by: Jacob Perron <[email protected]>
    jacobperron committed Apr 1, 2021
    Configuration menu
    Copy the full SHA
    f5d8d14 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2021

  1. Address review comments (#1)

    * fix redefinition of default template arguments
    
    Signed-off-by: Karsten Knese <[email protected]>
    
    * address review comments
    
    Signed-off-by: Karsten Knese <[email protected]>
    
    * rename test executable
    
    Signed-off-by: Karsten Knese <[email protected]>
    
    * add functionality to lifecycle nodes
    
    Signed-off-by: Karsten Knese <[email protected]>
    Karsten1987 authored Apr 2, 2021
    Configuration menu
    Copy the full SHA
    f585d66 View commit details
    Browse the repository at this point in the history
  2. Refactor typesupport helpers

    * Make extract_type_identifier function private
    * Remove unused extract_type_and_package function
    * Update unit tests
    
    Signed-off-by: Jacob Perron <[email protected]>
    jacobperron committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    be5453c View commit details
    Browse the repository at this point in the history
  3. Remove note about ament from classes

    This comment only applies to the free functions.
    
    Signed-off-by: Jacob Perron <[email protected]>
    jacobperron committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    66468bf View commit details
    Browse the repository at this point in the history
  4. Fix formatting

    Co-authored-by: Karsten Knese <[email protected]>
    jacobperron and Karsten1987 authored Apr 2, 2021
    Configuration menu
    Copy the full SHA
    e584230 View commit details
    Browse the repository at this point in the history
  5. Fix warning

    Possible loss of data from double to rcutils_duration_value_t
    
    Signed-off-by: Jacob Perron <[email protected]>
    jacobperron committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    3541fe6 View commit details
    Browse the repository at this point in the history
  6. Add missing visibility macros

    Signed-off-by: Jacob Perron <[email protected]>
    jacobperron committed Apr 2, 2021
    Configuration menu
    Copy the full SHA
    5742f7d View commit details
    Browse the repository at this point in the history