Fawkes API  Fawkes Development Version
qa_worldinfo_msgsizes.cpp
1 
2 /***************************************************************************
3  * qa_worldinfo_msgsizes.h - Worldinfo QA showing sizes of messages
4  *
5  * Created: Wed Jun 13 18:43:00
6  * Copyright 2006-2008 Tim Niemueller [www.niemueller.de]
7  *
8  ****************************************************************************/
9 
10 /* This program is free software; you can redistribute it and/or modify
11  * it under the terms of the GNU General Public License as published by
12  * the Free Software Foundation; either version 2 of the License, or
13  * (at your option) any later version. A runtime exception applies to
14  * this software (see LICENSE.GPL_WRE file mentioned below for details).
15  *
16  * This program is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19  * GNU Library General Public License for more details.
20  *
21  * Read the full text in the LICENSE.GPL_WRE file in the doc directory.
22  */
23 
24 #include <netcomm/worldinfo/messages.h>
25 
26 #include <cstdio>
27 
28 using namespace fawkes;
29 
30 int
31 main(int argc, char **argv)
32 {
33  printf("sizeof(worldinfo_message_header_t) = %lu\n",
34  (unsigned long int)sizeof(worldinfo_message_header_t));
35  printf("sizeof(worldinfo_header_t) = %lu\n", (unsigned long int)sizeof(worldinfo_header_t));
36  printf("sizeof(worldinfo_pose_message_t) = %lu\n",
37  (unsigned long int)sizeof(worldinfo_pose_message_t));
38  printf("sizeof(worldinfo_velocity_message_t) = %lu\n",
39  (unsigned long int)sizeof(worldinfo_velocity_message_t));
40  printf("sizeof(worldinfo_relballpos_message_t) = %lu\n",
41  (unsigned long int)sizeof(worldinfo_relballpos_message_t));
42  printf("sizeof(worldinfo_relballvelo_message_t) = %lu\n",
43  (unsigned long int)sizeof(worldinfo_relballvelo_message_t));
44  printf("sizeof(worldinfo_opppose_message_t) = %lu\n",
45  (unsigned long int)sizeof(worldinfo_opppose_message_t));
46  printf("sizeof(worldinfo_fat_message_t) = %lu\n",
47  (unsigned long int)sizeof(worldinfo_fat_message_t));
48 
49  return 0;
50 }
fawkes
Fawkes library namespace.