Skip to content

Naive ros2 pub/sub should have test #7

Description

@griswaldbrooks

Need

In order to contrast writing a DI/naive ros2 test for pub/sub
As a developer
I want to see an naive test example that will correspond to a later DI version.

Acceptance Criteria

Scenario: ros2 naive pub/sub should have test
GIVEN we want to write a ros2 pub/sub test
WHEN looking for example
THEN one will exist in the naive/test directory

Tasks

  • Port ros1/naive/test/incrementer_test.cpp to ros2
  • Update readme to show cli commands for testing and expected result

Notes

Not sure if the canonical way currently has some form of launch file, or requires a Spinner object.
I get the impression they don't but I can't confirm that.
The ros2 action test doesn't seem to need it.

References:
https://github.com/PickNikRobotics/ros_testing_templates/blob/main/ros1/naive/test/incrementer_test.cpp

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions