Skip to content

Commit

Permalink
Update System Tests to compile when working with ros2/rosidl#781
Browse files Browse the repository at this point in the history
Signed-off-by: Arjo Chakravarty <[email protected]>
  • Loading branch information
arjo129 committed Jan 4, 2024
1 parent 9a469a2 commit bd078d0
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test_communication/test/test_messages_c.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -665,7 +665,7 @@ void get_message(test_msgs__msg__Arrays * msg, size_t msg_num)
msg->byte_values[1] = 0xff;
msg->byte_values[2] = 0;
msg->char_values[0] = 0;
msg->char_values[1] = 255;
msg->char_values[1] = 127;
msg->char_values[2] = 0;
msg->float32_values[0] = 0.0f;
msg->float32_values[1] = 1.125f;
Expand Down Expand Up @@ -770,7 +770,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)
case 0:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, 0);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, 0);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, 0);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, 0);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, 0);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, 0);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, 0);
Expand All @@ -787,7 +787,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)
case 1:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, 1);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, 1);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, 1);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, 1);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, 1);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, 1);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, 1);
Expand All @@ -802,7 +802,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)

msg->bool_values.data[0] = true;
msg->byte_values.data[0] = 0xff;
msg->char_values.data[0] = 255;
msg->char_values.data[0] = -1;
msg->float32_values.data[0] = 1.125f;
msg->float64_values.data[0] = 1.125;
msg->int8_values.data[0] = (std::numeric_limits<int8_t>::max)();
Expand All @@ -819,7 +819,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)
case 2:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, 2);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, 2);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, 2);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, 2);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, 3);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, 3);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, 3);
Expand All @@ -837,7 +837,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)
msg->byte_values.data[0] = 0x00;
msg->byte_values.data[1] = 0xff;
msg->char_values.data[0] = 0;
msg->char_values.data[1] = 255;
msg->char_values.data[1] = 127;
msg->float32_values.data[0] = 0.0f;
msg->float32_values.data[1] = 1.125f;
msg->float32_values.data[2] = -2.125f;
Expand Down Expand Up @@ -872,7 +872,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)
case 3:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, size);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, size);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, size);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, size);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, size);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, size);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, size);
Expand Down Expand Up @@ -911,7 +911,7 @@ void get_message(test_msgs__msg__UnboundedSequences * msg, size_t msg_num)
case 4:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, 0);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, 0);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, 0);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, 0);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, 0);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, 0);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, 0);
Expand Down Expand Up @@ -1020,7 +1020,7 @@ void get_message(test_msgs__msg__BoundedSequences * msg, size_t msg_num)
case 0:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, 3);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, 3);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, 3);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, 3);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, 3);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, 3);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, 3);
Expand All @@ -1041,7 +1041,7 @@ void get_message(test_msgs__msg__BoundedSequences * msg, size_t msg_num)
msg->byte_values.data[2] = 0xff;
msg->char_values.data[0] = 0;
msg->char_values.data[1] = 1;
msg->char_values.data[2] = 255;
msg->char_values.data[2] = 127;
msg->float32_values.data[0] = 0.0f;
msg->float32_values.data[1] = 1.125f;
msg->float32_values.data[2] = -2.125f;
Expand Down Expand Up @@ -1080,7 +1080,7 @@ void get_message(test_msgs__msg__BoundedSequences * msg, size_t msg_num)
case 1:
rosidl_runtime_c__bool__Sequence__init(&msg->bool_values, 0);
rosidl_runtime_c__byte__Sequence__init(&msg->byte_values, 0);
rosidl_runtime_c__uint8__Sequence__init(&msg->char_values, 0);
rosidl_runtime_c__char__Sequence__init(&msg->char_values, 0);
rosidl_runtime_c__float32__Sequence__init(&msg->float32_values, 0);
rosidl_runtime_c__float64__Sequence__init(&msg->float64_values, 0);
rosidl_runtime_c__int8__Sequence__init(&msg->int8_values, 0);
Expand Down

0 comments on commit bd078d0

Please sign in to comment.