-
Notifications
You must be signed in to change notification settings - Fork 505
Migrate tests to use new Handle API #2369
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
base: master
Are you sure you want to change the base?
Changes from all commits
e981375
c9c5b09
77ce170
4c4390b
0d9c71d
6e69ff6
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -47,12 +47,12 @@ class MultipleChainedFilterTest : public ::testing::Test | |||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| // dummy joint state values used for tests | ||||||||||||||||||||||||||||||||
| const std::vector<std::string> joint_names_ = {"wheel_left", "wheel_right"}; | ||||||||||||||||||||||||||||||||
| std::vector<double> joint_states_ = {1.1, 2.2}; | ||||||||||||||||||||||||||||||||
| const std::vector<double> joint_states_ = {1.1, 2.2}; | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
| StateInterface::SharedPtr joint_1_pos_ = | ||||||||||||||||||||||||||||||||
| std::make_shared<StateInterface>(joint_names_[0], HW_IF_POSITION, &joint_states_[0]); | ||||||||||||||||||||||||||||||||
| std::make_shared<StateInterface>(joint_names_[0], HW_IF_POSITION, "double", "1.1"); | ||||||||||||||||||||||||||||||||
| StateInterface::SharedPtr joint_2_pos_ = | ||||||||||||||||||||||||||||||||
| std::make_shared<StateInterface>(joint_names_[1], HW_IF_POSITION, &joint_states_[1]); | ||||||||||||||||||||||||||||||||
| std::make_shared<StateInterface>(joint_names_[1], HW_IF_POSITION, "double", "2.2"); | ||||||||||||||||||||||||||||||||
| rclcpp::executors::SingleThreadedExecutor executor; | ||||||||||||||||||||||||||||||||
|
Comment on lines
+50
to
56
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||||||||||||||||||||||||
| }; | ||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here |
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
or remove the joint_states_ member (used twice in cpp)