-
Notifications
You must be signed in to change notification settings - Fork 0
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 tests to ROS node #10
Conversation
- Creates MaliputQueryNode as a ROS2 proxy to make RoadNetwork queries. - Provides a sample configuration file use maliput_malidrive. Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
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.
Great job on testing. I left some comments ptal
rclcpp::Event::SharedPtr graph_event = node->get_graph_event(); | ||
node->wait_for_graph_change(graph_event, sleep_period); |
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.
Just to fully understand the logic here, which are the graph events here? RElated to the lifecycle states?
node->wait_for_graph_change(graph_event, sleep_period);
Are we waiting here for the graph_event to happen? or are we waiting to change from graph_event
instead?
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.
- NodeInterface::get_graph_event() returns an event that will be set when the event occurs.
- NodeInterface::wait_for_graph_change() waits for graph_event to be set.
We are waiting for an event to occur.
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
Interestingly, maliput_ros_interfaces failed at bf1e6ed [...]
Summary: 3 packages finished [34.7s]
1 package had stderr output: maliput_ros_interfaces
1 package had test failures: maliput_ros_interfaces pep 257 check failed in one of the tests that the code generation automatically creates. |
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.
LGTM! Only CI is missing to pass
Signed-off-by: Agustin Alba Chicar <ag.albachicar@gmail.com>
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.
LGTM
🎉 New feature
Part of #1
Goes on top of #8
Summary
Adds test coverage to the ROS2 and MaliputQuery. To do, I've done the following:
In the process learned that there should be a ros2 way to indicate a service call has failed, I'll do that in a follow up PR.
Test it
Checklist
Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.