fastrtps: clean up and fix template for client/agent code

This commit is contained in:
TSC21
2018-06-11 22:54:58 +02:00
committed by Lorenz Meier
parent 3399ec9e73
commit 518daa4a8d
6 changed files with 40 additions and 38 deletions
@@ -194,7 +194,7 @@ void t_send(void *data)
// Send subscribed topics over UART
while (topics.hasMsg(&topic_ID))
{
uint16_t header_length = get_header_length();
uint16_t header_length = transport_node->get_header_length();
/* make room for the header to fill in later */
eprosima::fastcdr::FastBuffer cdrbuffer(&data_buffer[header_length], sizeof(data_buffer)-header_length);
eprosima::fastcdr::Cdr scdr(cdrbuffer);