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 new test message type DynamicArrayStaticArrayPrimitivesNested #302

Merged
merged 1 commit into from
Oct 26, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions test_communication/test/test_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,9 @@ int main(int argc, char ** argv)
} else if (message == "DynamicArrayPrimitivesNested") {
publish<test_msgs::msg::DynamicArrayPrimitivesNested>(
node, message, get_messages_dynamic_array_primitives_nested());
} else if (message == "DynamicArrayStaticArrayPrimitivesNested") {
publish<test_msgs::msg::DynamicArrayStaticArrayPrimitivesNested>(
node, message, get_messages_dynamic_array_static_array_primitives_nested());
} else if (message == "BoundedArrayPrimitives") {
publish<test_msgs::msg::BoundedArrayPrimitives>(
node, message, get_messages_bounded_array_primitives());
Expand Down
7 changes: 7 additions & 0 deletions test_communication/test/test_publisher_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,8 @@ int main(int argc, char ** argv)
auto messages_static_array_primitives = get_messages_static_array_primitives();
auto messages_dynamic_array_primitives = get_messages_dynamic_array_primitives();
auto messages_dynamic_array_primitives_nested = get_messages_dynamic_array_primitives_nested();
auto messages_dynamic_array_static_array_primitives_nested =
get_messages_dynamic_array_static_array_primitives_nested();
auto messages_bounded_array_primitives = get_messages_bounded_array_primitives();
auto messages_nested = get_messages_nested();
auto messages_dynamic_array_nested = get_messages_dynamic_array_nested();
Expand Down Expand Up @@ -153,6 +155,11 @@ int main(int argc, char ** argv)
node, message, messages_dynamic_array_primitives_nested, received_messages);
publish<test_msgs::msg::DynamicArrayPrimitivesNested>(node, message,
messages_dynamic_array_primitives_nested);
} else if (message == "DynamicArrayStaticArrayPrimitivesNested") {
subscriber = subscribe<test_msgs::msg::DynamicArrayStaticArrayPrimitivesNested>(
node, message, messages_dynamic_array_static_array_primitives_nested, received_messages);
publish<test_msgs::msg::DynamicArrayStaticArrayPrimitivesNested>(
node, message, get_messages_dynamic_array_static_array_primitives_nested());
} else if (message == "BoundedArrayPrimitives") {
subscriber = subscribe<test_msgs::msg::BoundedArrayPrimitives>(
node, message, messages_bounded_array_primitives, received_messages);
Expand Down
5 changes: 5 additions & 0 deletions test_communication/test/test_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ int main(int argc, char ** argv)
auto messages_static_array_primitives = get_messages_static_array_primitives();
auto messages_dynamic_array_primitives = get_messages_dynamic_array_primitives();
auto messages_dynamic_array_primitives_nested = get_messages_dynamic_array_primitives_nested();
auto messages_dynamic_array_static_array_primitives_nested =
get_messages_dynamic_array_static_array_primitives_nested();
auto messages_bounded_array_primitives = get_messages_bounded_array_primitives();
auto messages_nested = get_messages_nested();
auto messages_dynamic_array_nested = get_messages_dynamic_array_nested();
Expand All @@ -115,6 +117,9 @@ int main(int argc, char ** argv)
} else if (message == "DynamicArrayPrimitives") {
subscriber = subscribe<test_msgs::msg::DynamicArrayPrimitives>(
node, message, messages_dynamic_array_primitives, received_messages);
} else if (message == "DynamicArrayStaticArrayPrimitivesNested") {
subscriber = subscribe<test_msgs::msg::DynamicArrayStaticArrayPrimitivesNested>(
node, message, messages_dynamic_array_static_array_primitives_nested, received_messages);
} else if (message == "BoundedArrayPrimitives") {
subscriber = subscribe<test_msgs::msg::BoundedArrayPrimitives>(
node, message, messages_bounded_array_primitives, received_messages);
Expand Down