Update of /cvsroot/playerstage/code/player/libplayerxdr
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30199/libplayerxdr

Modified Files:
        .cvsignore Makefile.am functiontable.c playerxdrgen.py 
Log Message:
overhaul of the player interface definitions
interfaces are now defined with a very light weight IDL allowing them to be 
edited in a single file
some subtype names were also modified as a side effect, making them more 
consistent globally


Index: .cvsignore
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayerxdr/.cvsignore,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** .cvsignore  30 Jul 2005 21:27:36 -0000      1.3
--- .cvsignore  20 Aug 2007 06:37:26 -0000      1.4
***************
*** 4,5 ****
--- 4,6 ----
  playerxdr.h
  playerxdr.pc
+ functiontable_gen.c

Index: playerxdrgen.py
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayerxdr/playerxdrgen.py,v
retrieving revision 1.10
retrieving revision 1.11
diff -C2 -d -r1.10 -r1.11
*** playerxdrgen.py     22 May 2007 16:07:00 -0000      1.10
--- playerxdrgen.py     20 Aug 2007 06:37:26 -0000      1.11
***************
*** 10,14 ****
  import sys
  
! USAGE = 'USAGE: playerxdrgen.y [-distro] <interface-spec.h> <pack.c> <pack.h>'
  
  if __name__ == '__main__':
--- 10,14 ----
  import sys
  
! USAGE = 'USAGE: playerxdrgen.y [-distro] <interface-spec.h> 
[<extra_interface-spec.h>] <pack.c> <pack.h>'
  
  if __name__ == '__main__':
***************
*** 21,42 ****
  
    idx = 1
!   if len(sys.argv) == 5:
!     if sys.argv[idx] == '-distro':
!       distro = 1
!       idx += 1
!     else:
        print USAGE
        sys.exit(-1)
  
!   infilename = sys.argv[idx]
    idx += 1
    sourcefilename = sys.argv[idx]
    idx += 1
    headerfilename = sys.argv[idx]
  
    # Read in the entire file
!   infile = open(infilename, 'r')
!   instream = infile.read()
!   infile.close()
  
    sourcefile = open(sourcefilename, 'w+')
--- 21,49 ----
  
    idx = 1
!   if sys.argv[1] == '-distro':
!     if len(sys.argv) < 5:
        print USAGE
        sys.exit(-1)
+     distro = 1
+     idx += 1
  
!   infilenames = [sys.argv[idx],]
    idx += 1
    sourcefilename = sys.argv[idx]
    idx += 1
    headerfilename = sys.argv[idx]
+   idx += 1
+   if len(sys.argv) > idx:
+     for opt in sys.argv[idx:]:
+       infilenames.append(opt)
+       print "processeing extra file ", opt
+ 
  
    # Read in the entire file
!   instream = ""
!   for f in infilenames:
!     infile = open(f, 'r')
!     instream += infile.read()
!     infile.close()
  
    sourcefile = open(sourcefilename, 'w+')
***************
*** 155,158 ****
--- 162,166 ----
          # If type is not in hasdynamic, not going to write a function so may 
as well just continue with the next struct
          if typename not in hasdynamic:
+           headerfile.write('#define ' + typename + '_dpcpy NULL\n')
            continue
          headerfile.write('unsigned int ' + typename + '_dpcpy(const ' + 
typename + '* src, ' + typename + '* dest);\n')
***************
*** 164,167 ****
--- 172,176 ----
          # If type is not in hasdynamic, not going to write a function so may 
as well just continue with the next struct
          if typename not in hasdynamic:
+           headerfile.write('#define ' + typename + '_cleanup NULL\n')
            continue
          headerfile.write('void ' + typename + '_cleanup(' + typename + '* 
msg);\n')

Index: functiontable.c
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayerxdr/functiontable.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -C2 -d -r1.88 -r1.89
*** functiontable.c     11 Aug 2007 00:21:28 -0000      1.88
--- functiontable.c     20 Aug 2007 06:37:26 -0000      1.89
***************
*** 76,557 ****
     (player_pack_fn_t)player_strprop_req_pack, 
(player_dpcpy_fn_t)player_strprop_req_t_dpcpy, 
(player_cleanup_fn_t)player_strprop_req_t_cleanup},
  
!   /* actarray messages */
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_DATA, PLAYER_ACTARRAY_DATA_STATE,
!    (player_pack_fn_t)player_actarray_data_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_REQ, PLAYER_ACTARRAY_POWER_REQ,
!    (player_pack_fn_t)player_actarray_power_config_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_REQ, PLAYER_ACTARRAY_BRAKES_REQ,
!    (player_pack_fn_t)player_actarray_brakes_config_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_REQ, PLAYER_ACTARRAY_GET_GEOM_REQ,
!    (player_pack_fn_t)player_actarray_geom_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_REQ, PLAYER_ACTARRAY_SPEED_REQ,
!    (player_pack_fn_t)player_actarray_speed_config_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_REQ, PLAYER_ACTARRAY_ACCEL_REQ,
!    (player_pack_fn_t)player_actarray_accel_config_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD, PLAYER_ACTARRAY_POS_CMD,
!    (player_pack_fn_t)player_actarray_position_cmd_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD, PLAYER_ACTARRAY_MULTI_POS_CMD,
!    (player_pack_fn_t)player_actarray_multi_position_cmd_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD, PLAYER_ACTARRAY_SPEED_CMD,
!    (player_pack_fn_t)player_actarray_speed_cmd_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD,  PLAYER_ACTARRAY_MULTI_SPEED_CMD,
!    (player_pack_fn_t)player_actarray_multi_speed_cmd_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD, PLAYER_ACTARRAY_HOME_CMD,
!    (player_pack_fn_t)player_actarray_home_cmd_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD, PLAYER_ACTARRAY_CURRENT_CMD,
!    (player_pack_fn_t)player_actarray_current_cmd_pack, NULL, NULL},
!   {PLAYER_ACTARRAY_CODE, PLAYER_MSGTYPE_CMD, 
PLAYER_ACTARRAY_MULTI_CURRENT_CMD,
!    (player_pack_fn_t)player_actarray_multi_current_cmd_pack, NULL, NULL},
! 
!   /* aio messages */
!   {PLAYER_AIO_CODE, PLAYER_MSGTYPE_DATA, PLAYER_AIO_DATA_STATE,
!    (player_pack_fn_t)player_aio_data_pack, NULL, NULL},
!   {PLAYER_AIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_AIO_CMD_STATE,
!    (player_pack_fn_t)player_aio_cmd_pack, NULL, NULL},
! 
!   /* audio messages */
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_AUDIO_MIXER_CHANNEL_CMD,
!    (player_pack_fn_t)player_audio_mixer_channel_list_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_DATA, PLAYER_AUDIO_MIXER_CHANNEL_DATA,
!    (player_pack_fn_t)player_audio_mixer_channel_list_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_AUDIO_MIXER_CHANNEL_LEVEL_REQ,
!    (player_pack_fn_t)player_audio_mixer_channel_list_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_REQ, PLAYER_AUDIO_MIXER_CHANNEL_LIST_REQ,
!    (player_pack_fn_t)player_audio_mixer_channel_list_detail_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_REQ, PLAYER_AUDIO_SAMPLE_LOAD_REQ,
!    (player_pack_fn_t)player_audio_sample_pack, 
(player_dpcpy_fn_t)player_audio_sample_t_dpcpy, 
(player_cleanup_fn_t)player_audio_sample_t_cleanup},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_AUDIO_SAMPLE_PLAY_CMD,
!    (player_pack_fn_t)player_audio_sample_item_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_REQ, PLAYER_AUDIO_SAMPLE_REC_REQ,
!    (player_pack_fn_t)player_audio_sample_rec_req_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_REQ, PLAYER_AUDIO_SAMPLE_RETRIEVE_REQ,
!    (player_pack_fn_t)player_audio_sample_pack, 
(player_dpcpy_fn_t)player_audio_sample_t_dpcpy, 
(player_cleanup_fn_t)player_audio_sample_t_cleanup},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_DATA, PLAYER_AUDIO_SEQ_DATA,
!    (player_pack_fn_t)player_audio_seq_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_AUDIO_SEQ_PLAY_CMD,
!    (player_pack_fn_t)player_audio_seq_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_AUDIO_WAV_PLAY_CMD,
!    (player_pack_fn_t)player_audio_wav_pack, 
(player_dpcpy_fn_t)player_audio_wav_t_dpcpy, 
(player_cleanup_fn_t)player_audio_wav_t_cleanup},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_DATA, PLAYER_AUDIO_WAV_REC_DATA,
!    (player_pack_fn_t)player_audio_wav_pack, 
(player_dpcpy_fn_t)player_audio_wav_t_dpcpy, 
(player_cleanup_fn_t)player_audio_wav_t_cleanup},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_REQ, PLAYER_AUDIO_WAV_REC_REQ,
!    (player_pack_fn_t)player_audio_wav_pack, 
(player_dpcpy_fn_t)player_audio_wav_t_dpcpy, 
(player_cleanup_fn_t)player_audio_wav_t_cleanup},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_AUDIO_WAV_STREAM_REC_CMD,
!    (player_pack_fn_t)player_bool_pack, NULL, NULL},
!   {PLAYER_AUDIO_CODE, PLAYER_MSGTYPE_DATA, PLAYER_AUDIO_STATE_DATA,
!    (player_pack_fn_t)player_audio_state_pack, NULL, NULL},
! 
!   /* blinkenlight messages */
!   {PLAYER_BLINKENLIGHT_CODE, PLAYER_MSGTYPE_DATA, 
PLAYER_BLINKENLIGHT_DATA_STATE,
!    (player_pack_fn_t)player_blinkenlight_data_pack, NULL, NULL},
!   {PLAYER_BLINKENLIGHT_CODE, PLAYER_MSGTYPE_CMD, 
PLAYER_BLINKENLIGHT_CMD_STATE,
!    (player_pack_fn_t)player_blinkenlight_cmd_pack, NULL, NULL},
!   {PLAYER_BLINKENLIGHT_CODE, PLAYER_MSGTYPE_CMD, 
PLAYER_BLINKENLIGHT_CMD_POWER,
!    (player_pack_fn_t)player_blinkenlight_cmd_power_pack, NULL, NULL},
!   {PLAYER_BLINKENLIGHT_CODE, PLAYER_MSGTYPE_CMD, 
PLAYER_BLINKENLIGHT_CMD_COLOR,
!    (player_pack_fn_t)player_blinkenlight_cmd_color_pack, NULL, NULL},
!   {PLAYER_BLINKENLIGHT_CODE, PLAYER_MSGTYPE_CMD, 
PLAYER_BLINKENLIGHT_CMD_DUTYCYCLE,
!    (player_pack_fn_t)player_blinkenlight_cmd_dutycycle_pack, NULL, NULL},
!   {PLAYER_BLINKENLIGHT_CODE, PLAYER_MSGTYPE_CMD, 
PLAYER_BLINKENLIGHT_CMD_PERIOD,
!    (player_pack_fn_t)player_blinkenlight_cmd_period_pack, NULL, NULL},
! 
!   /* blobfinder messages */
!   {PLAYER_BLOBFINDER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_BLOBFINDER_DATA_BLOBS,
!    (player_pack_fn_t)player_blobfinder_data_pack, NULL, NULL},
!   {PLAYER_BLOBFINDER_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_BLOBFINDER_REQ_SET_COLOR,
!    (player_pack_fn_t)player_blobfinder_color_config_pack, NULL, NULL},
!   {PLAYER_BLOBFINDER_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_BLOBFINDER_REQ_SET_IMAGER_PARAMS,
!    (player_pack_fn_t)player_blobfinder_imager_config_pack, NULL, NULL},
! 
!   /* bumper messages */
!   {PLAYER_BUMPER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_BUMPER_DATA_STATE,
!    (player_pack_fn_t)player_bumper_data_pack, NULL, NULL},
!   {PLAYER_BUMPER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_BUMPER_DATA_GEOM,
!    (player_pack_fn_t)player_bumper_geom_pack, NULL, NULL},
!   {PLAYER_BUMPER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_BUMPER_GET_GEOM,
!    (player_pack_fn_t)player_bumper_geom_pack, NULL, NULL},
! 
!   /* camera messages */
!   {PLAYER_CAMERA_CODE, PLAYER_MSGTYPE_DATA, PLAYER_CAMERA_DATA_STATE,
!    (player_pack_fn_t)player_camera_data_pack, NULL, NULL},
! 
!  /* dio messages */
!   {PLAYER_DIO_CODE, PLAYER_MSGTYPE_DATA, PLAYER_DIO_DATA_VALUES,
!    (player_pack_fn_t)player_dio_data_pack, NULL, NULL},
!   {PLAYER_DIO_CODE, PLAYER_MSGTYPE_CMD, PLAYER_DIO_CMD_VALUES,
!    (player_pack_fn_t)player_dio_cmd_pack, NULL, NULL},
! 
!   /* fiducial messages */
!   {PLAYER_FIDUCIAL_CODE, PLAYER_MSGTYPE_DATA, PLAYER_FIDUCIAL_DATA_SCAN,
!    (player_pack_fn_t)player_fiducial_data_pack, NULL, NULL},
!   {PLAYER_FIDUCIAL_CODE, PLAYER_MSGTYPE_REQ, PLAYER_FIDUCIAL_REQ_GET_GEOM,
!    (player_pack_fn_t)player_fiducial_geom_pack, NULL, NULL},
!   {PLAYER_FIDUCIAL_CODE, PLAYER_MSGTYPE_REQ, PLAYER_FIDUCIAL_REQ_GET_FOV,
!    (player_pack_fn_t)player_fiducial_fov_pack, NULL, NULL},
!   {PLAYER_FIDUCIAL_CODE, PLAYER_MSGTYPE_REQ, PLAYER_FIDUCIAL_REQ_SET_FOV,
!    (player_pack_fn_t)player_fiducial_fov_pack, NULL, NULL},
!   {PLAYER_FIDUCIAL_CODE, PLAYER_MSGTYPE_REQ, PLAYER_FIDUCIAL_REQ_GET_ID,
!    (player_pack_fn_t)player_fiducial_id_pack, NULL, NULL},
!   {PLAYER_FIDUCIAL_CODE, PLAYER_MSGTYPE_REQ, PLAYER_FIDUCIAL_REQ_SET_ID,
!    (player_pack_fn_t)player_fiducial_id_pack, NULL, NULL},
! 
!   /* gps messages */
!   {PLAYER_GPS_CODE, PLAYER_MSGTYPE_DATA, PLAYER_GPS_DATA_STATE,
!    (player_pack_fn_t)player_gps_data_pack, NULL, NULL},
! 
!   /* graphics2d messages */
!   {PLAYER_GRAPHICS2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRAPHICS2D_CMD_CLEAR,
!    (player_pack_fn_t)player_graphics2d_cmd_points_pack, NULL, NULL},
!   {PLAYER_GRAPHICS2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRAPHICS2D_CMD_POINTS,
!    (player_pack_fn_t)player_graphics2d_cmd_points_pack, NULL, NULL},
!   {PLAYER_GRAPHICS2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRAPHICS2D_CMD_POLYGON,
!    (player_pack_fn_t)player_graphics2d_cmd_polygon_pack, NULL, NULL},
!   {PLAYER_GRAPHICS2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRAPHICS2D_CMD_POLYLINE,
!    (player_pack_fn_t)player_graphics2d_cmd_polyline_pack, NULL, NULL},
! 
!   /* graphics3d messages */
!   {PLAYER_GRAPHICS3D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRAPHICS3D_CMD_CLEAR,
!    (player_pack_fn_t)player_graphics3d_cmd_draw_pack, NULL, NULL},
!   {PLAYER_GRAPHICS3D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRAPHICS3D_CMD_DRAW,
!    (player_pack_fn_t)player_graphics3d_cmd_draw_pack, NULL, NULL},
! 
!   /* gripper messages */
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_GRIPPER_DATA_STATE,
!    (player_pack_fn_t)player_gripper_data_pack, NULL, NULL},
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_GRIPPER_REQ_GET_GEOM,
!    (player_pack_fn_t)player_gripper_geom_pack, NULL, NULL},
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRIPPER_CMD_OPEN,
!    (player_pack_fn_t)player_gripper_cmd_open_pack, NULL, NULL},
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRIPPER_CMD_CLOSE,
!    (player_pack_fn_t)player_gripper_cmd_close_pack, NULL, NULL},
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRIPPER_CMD_STOP,
!    (player_pack_fn_t)player_gripper_cmd_stop_pack, NULL, NULL},
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRIPPER_CMD_STORE,
!    (player_pack_fn_t)player_gripper_cmd_store_pack, NULL, NULL},
!   {PLAYER_GRIPPER_CODE, PLAYER_MSGTYPE_CMD, PLAYER_GRIPPER_CMD_RETRIEVE,
!    (player_pack_fn_t)player_gripper_cmd_retrieve_pack, NULL, NULL},
! 
!   /* health messages */
!   {PLAYER_HEALTH_CODE, PLAYER_MSGTYPE_DATA, PLAYER_HEALTH_DATA,
!    (player_pack_fn_t)player_health_data_pack, NULL, NULL},
! 
!   /* ir messages */
!   {PLAYER_IR_CODE, PLAYER_MSGTYPE_DATA, PLAYER_IR_DATA_RANGES,
!     (player_pack_fn_t)player_ir_data_pack, NULL, NULL},
!   {PLAYER_IR_CODE, PLAYER_MSGTYPE_REQ, PLAYER_IR_POSE,
!     (player_pack_fn_t)player_ir_pose_pack, NULL, NULL},
!   {PLAYER_IR_CODE, PLAYER_MSGTYPE_REQ, PLAYER_IR_POWER,
!     (player_pack_fn_t)player_ir_power_req_pack, NULL, NULL},
! 
!   /* ir messages */
!   {PLAYER_JOYSTICK_CODE, PLAYER_MSGTYPE_DATA, PLAYER_JOYSTICK_DATA_STATE,
!     (player_pack_fn_t)player_joystick_data_pack, NULL, NULL},
! 
!   /* laser messages */
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_LASER_DATA_SCAN,
!     (player_pack_fn_t)player_laser_data_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_LASER_DATA_SCANPOSE,
!     (player_pack_fn_t)player_laser_data_scanpose_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LASER_REQ_GET_GEOM,
!     (player_pack_fn_t)player_laser_geom_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LASER_REQ_GET_CONFIG,
!     (player_pack_fn_t)player_laser_config_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LASER_REQ_SET_CONFIG,
!     (player_pack_fn_t)player_laser_config_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LASER_REQ_POWER,
!     (player_pack_fn_t)player_laser_power_config_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LASER_REQ_GET_ID,
!     (player_pack_fn_t)player_laser_get_id_config_pack, NULL, NULL},
!   {PLAYER_LASER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LASER_REQ_SET_FILTER,
!     (player_pack_fn_t)player_laser_set_filter_config_pack, NULL, NULL},
! 
!   /* limb messages */
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_DATA, PLAYER_LIMB_DATA,
!     (player_pack_fn_t)player_limb_data_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_CMD, PLAYER_LIMB_HOME_CMD,
!     (player_pack_fn_t)player_limb_home_cmd_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_CMD, PLAYER_LIMB_STOP_CMD,
!     (player_pack_fn_t)player_limb_stop_cmd_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_CMD, PLAYER_LIMB_SETPOSE_CMD,
!     (player_pack_fn_t)player_limb_setpose_cmd_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_CMD, PLAYER_LIMB_SETPOSITION_CMD,
!     (player_pack_fn_t)player_limb_setposition_cmd_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_CMD, PLAYER_LIMB_VECMOVE_CMD,
!     (player_pack_fn_t)player_limb_vecmove_cmd_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LIMB_POWER_REQ,
!     (player_pack_fn_t)player_limb_power_req_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LIMB_BRAKES_REQ,
!     (player_pack_fn_t)player_limb_brakes_req_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LIMB_GEOM_REQ,
!     (player_pack_fn_t)player_limb_geom_req_pack, NULL, NULL},
!   {PLAYER_LIMB_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LIMB_SPEED_REQ,
!     (player_pack_fn_t)player_limb_speed_req_pack, NULL, NULL},
! 
!   /* localize messages */
!   {PLAYER_LOCALIZE_CODE, PLAYER_MSGTYPE_DATA, PLAYER_LOCALIZE_DATA_HYPOTHS,
!     (player_pack_fn_t)player_localize_data_pack, NULL, NULL},
!   {PLAYER_LOCALIZE_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LOCALIZE_REQ_SET_POSE,
!     (player_pack_fn_t)player_localize_set_pose_pack, NULL, NULL},
!   {PLAYER_LOCALIZE_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_LOCALIZE_REQ_GET_PARTICLES,
!     (player_pack_fn_t)player_localize_get_particles_pack, NULL, NULL},
! 
!   /* log messages */
!   {PLAYER_LOG_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LOG_REQ_SET_WRITE_STATE,
!     (player_pack_fn_t)player_log_set_write_state_pack, NULL, NULL},
!   {PLAYER_LOG_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LOG_REQ_SET_READ_STATE,
!     (player_pack_fn_t)player_log_set_read_state_pack, NULL, NULL},
!   {PLAYER_LOG_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LOG_REQ_GET_STATE,
!     (player_pack_fn_t)player_log_get_state_pack, NULL, NULL},
!   {PLAYER_LOG_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LOG_REQ_SET_READ_REWIND,
!     (player_pack_fn_t)player_log_set_read_rewind_pack, NULL, NULL},
!   {PLAYER_LOG_CODE, PLAYER_MSGTYPE_REQ, PLAYER_LOG_REQ_SET_FILENAME,
!     (player_pack_fn_t)player_log_set_filename_pack, NULL, NULL},
! 
!   /* map messages */
!   {PLAYER_MAP_CODE, PLAYER_MSGTYPE_REQ, PLAYER_MAP_REQ_GET_INFO,
!     (player_pack_fn_t)player_map_info_pack, NULL, NULL},
!   {PLAYER_MAP_CODE, PLAYER_MSGTYPE_REQ, PLAYER_MAP_REQ_GET_DATA,
!     (player_pack_fn_t)player_map_data_pack, NULL, NULL},
!   {PLAYER_MAP_CODE, PLAYER_MSGTYPE_DATA, PLAYER_MAP_DATA_INFO,
!     (player_pack_fn_t)player_map_info_pack, NULL, NULL},
!   {PLAYER_MAP_CODE, PLAYER_MSGTYPE_REQ, PLAYER_MAP_REQ_GET_VECTOR,
!     (player_pack_fn_t)player_map_data_vector_pack, NULL, NULL},
! 
!   /* opaque messages */
!   {PLAYER_OPAQUE_CODE, PLAYER_MSGTYPE_DATA, PLAYER_OPAQUE_DATA_STATE,
!     (player_pack_fn_t)player_opaque_data_pack, NULL, NULL},
!   {PLAYER_OPAQUE_CODE, PLAYER_MSGTYPE_CMD, PLAYER_OPAQUE_CMD,
!     (player_pack_fn_t)player_opaque_data_pack, NULL, NULL},
!   {PLAYER_OPAQUE_CODE, PLAYER_MSGTYPE_REQ, PLAYER_OPAQUE_REQ,
!     (player_pack_fn_t)player_opaque_data_pack, NULL, NULL},
! 
!   /* planner messages */
!   {PLAYER_PLANNER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_PLANNER_DATA_STATE,
!     (player_pack_fn_t)player_planner_data_pack, NULL, NULL},
!   {PLAYER_PLANNER_CODE, PLAYER_MSGTYPE_CMD, PLAYER_PLANNER_CMD_GOAL,
!     (player_pack_fn_t)player_planner_cmd_pack, NULL, NULL},
!   {PLAYER_PLANNER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLANNER_REQ_ENABLE,
!     (player_pack_fn_t)player_planner_enable_req_pack, NULL, NULL},
!   {PLAYER_PLANNER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLANNER_REQ_GET_WAYPOINTS,
!     (player_pack_fn_t)player_planner_waypoints_req_pack, NULL, NULL},
! 
!   /* player messages */
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_DEVLIST,
!     (player_pack_fn_t)player_device_devlist_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_DRIVERINFO,
!     (player_pack_fn_t)player_device_driverinfo_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_DEV,
!     (player_pack_fn_t)player_device_req_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_DATA,
!     (player_pack_fn_t)player_device_data_req_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_DATAMODE,
!     (player_pack_fn_t)player_device_datamode_req_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_AUTH,
!     (player_pack_fn_t)player_device_auth_req_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_NAMESERVICE,
!     (player_pack_fn_t)player_device_nameservice_req_pack, NULL, NULL},
!   {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PLAYER_REQ_ADD_REPLACE_RULE,
!     (player_pack_fn_t)player_add_replace_rule_req_pack, NULL, NULL},
    {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_SYNCH, 0,
      (player_pack_fn_t)player_add_replace_rule_req_pack, NULL, NULL},
  
!   /* pointcloud3d messages */
!   {PLAYER_POINTCLOUD3D_CODE, PLAYER_MSGTYPE_DATA, 
PLAYER_POINTCLOUD3D_DATA_STATE,
!     (player_pack_fn_t)player_pointcloud3d_data_pack, NULL, NULL},
! 
!   /* position1d messages */
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_DATA, PLAYER_POSITION1D_DATA_STATE,
!     (player_pack_fn_t)player_position1d_data_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_DATA, PLAYER_POSITION1D_DATA_GEOM,
!     (player_pack_fn_t)player_position1d_geom_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION1D_CMD_VEL,
!     (player_pack_fn_t)player_position1d_cmd_vel_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION1D_CMD_POS,
!     (player_pack_fn_t)player_position1d_cmd_pos_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION1D_REQ_GET_GEOM,
!     (player_pack_fn_t)player_position1d_geom_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_MOTOR_POWER,
!     (player_pack_fn_t)player_position1d_power_config_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_VELOCITY_MODE,
!     (player_pack_fn_t)player_position1d_velocity_mode_config_pack, NULL, 
NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_POSITION_MODE,
!     (player_pack_fn_t)player_position1d_position_mode_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION1D_REQ_SET_ODOM,
!     (player_pack_fn_t)player_position1d_set_odom_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_RESET_ODOM,
!     (player_pack_fn_t)player_position1d_reset_odom_config_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_SPEED_PID,
!     (player_pack_fn_t)player_position1d_speed_pid_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_POSITION_PID,
!     (player_pack_fn_t)player_position1d_position_pid_pack, NULL, NULL},
!   {PLAYER_POSITION1D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION1D_REQ_SPEED_PROF,
!     (player_pack_fn_t)player_position1d_speed_prof_pack, NULL, NULL},
! 
! 
!   /* position2d messages */
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_DATA, PLAYER_POSITION2D_DATA_STATE,
!     (player_pack_fn_t)player_position2d_data_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION2D_CMD_VEL,
!     (player_pack_fn_t)player_position2d_cmd_vel_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION2D_CMD_POS,
!     (player_pack_fn_t)player_position2d_cmd_pos_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION2D_CMD_CAR,
!     (player_pack_fn_t)player_position2d_cmd_car_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION2D_REQ_GET_GEOM,
!     (player_pack_fn_t)player_position2d_geom_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_MOTOR_POWER,
!     (player_pack_fn_t)player_position2d_power_config_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_VELOCITY_MODE,
!     (player_pack_fn_t)player_position2d_velocity_mode_config_pack, NULL, 
NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_POSITION_MODE,
!     (player_pack_fn_t)player_position2d_position_mode_req_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_RESET_ODOM,
!     (player_pack_fn_t)player_position2d_reset_odom_config_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION2D_REQ_SET_ODOM,
!     (player_pack_fn_t)player_position2d_set_odom_req_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_SPEED_PID,
!     (player_pack_fn_t)player_position2d_speed_pid_req_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_POSITION_PID,
!     (player_pack_fn_t)player_position2d_position_pid_req_pack, NULL, NULL},
!   {PLAYER_POSITION2D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION2D_REQ_SPEED_PROF,
!     (player_pack_fn_t)player_position2d_speed_prof_req_pack, NULL, NULL},
! 
!   /* position3d messages */
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_DATA, PLAYER_POSITION3D_DATA_STATE,
!     (player_pack_fn_t)player_position3d_data_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_DATA, 
PLAYER_POSITION3D_DATA_GEOMETRY,
!     (player_pack_fn_t)player_position3d_data_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION3D_CMD_SET_POS,
!     (player_pack_fn_t)player_position3d_cmd_pos_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_CMD, PLAYER_POSITION3D_CMD_SET_VEL,
!     (player_pack_fn_t)player_position3d_cmd_vel_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_GET_GEOM,
!     (player_pack_fn_t)player_position3d_geom_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_MOTOR_POWER,
!     (player_pack_fn_t)player_position3d_power_config_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION3D_POSITION_MODE,
!     (player_pack_fn_t)player_position3d_position_mode_req_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_RESET_ODOM,
!     (player_pack_fn_t)player_position3d_reset_odom_config_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_SET_ODOM,
!     (player_pack_fn_t)player_position3d_set_odom_req_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_POSITION3D_VELOCITY_MODE,
!     (player_pack_fn_t)player_position3d_velocity_mode_config_pack, NULL, 
NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_SPEED_PID,
!     (player_pack_fn_t)player_position3d_speed_pid_req_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_POSITION_PID,
!     (player_pack_fn_t)player_position3d_position_pid_req_pack, NULL, NULL},
!   {PLAYER_POSITION3D_CODE, PLAYER_MSGTYPE_REQ, PLAYER_POSITION3D_SPEED_PROF,
!     (player_pack_fn_t)player_position3d_speed_prof_req_pack, NULL, NULL},
! 
!   /* power messages */
!   {PLAYER_POWER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_POWER_DATA_STATE,
!     (player_pack_fn_t)player_power_data_pack, NULL, NULL},
! 
!   /* ptz messages */
!   {PLAYER_PTZ_CODE, PLAYER_MSGTYPE_DATA, PLAYER_PTZ_DATA_STATE,
!     (player_pack_fn_t)player_ptz_data_pack, NULL, NULL},
!   {PLAYER_PTZ_CODE, PLAYER_MSGTYPE_CMD, PLAYER_PTZ_CMD_STATE,
!     (player_pack_fn_t)player_ptz_cmd_pack, NULL, NULL},
!   {PLAYER_PTZ_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PTZ_REQ_STATUS,
!     (player_pack_fn_t)player_ptz_req_status_pack, NULL, NULL},
!   {PLAYER_PTZ_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PTZ_REQ_GEOM,
!     (player_pack_fn_t)player_ptz_geom_pack, NULL, NULL},
!   {PLAYER_PTZ_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PTZ_REQ_GENERIC,
!     (player_pack_fn_t)player_ptz_req_generic_pack, NULL, NULL},
!   {PLAYER_PTZ_CODE, PLAYER_MSGTYPE_REQ, PLAYER_PTZ_REQ_CONTROL_MODE,
!     (player_pack_fn_t)player_ptz_req_control_mode_pack, NULL, NULL},
! 
!   /* ranger messages */
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_RANGER_DATA_RANGE,
!    (player_pack_fn_t)player_ranger_data_range_pack, 
(player_dpcpy_fn_t)player_ranger_data_range_t_dpcpy, 
(player_cleanup_fn_t)player_ranger_data_range_t_cleanup},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_RANGER_DATA_RANGEPOSE,
!    (player_pack_fn_t)player_ranger_data_rangepose_pack, 
(player_dpcpy_fn_t)player_ranger_data_rangepose_t_dpcpy, 
(player_cleanup_fn_t)player_ranger_data_rangepose_t_cleanup},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_RANGER_DATA_INTNS,
!    (player_pack_fn_t)player_ranger_data_intns_pack, 
(player_dpcpy_fn_t)player_ranger_data_intns_t_dpcpy, 
(player_cleanup_fn_t)player_ranger_data_intns_t_cleanup},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_RANGER_DATA_INTNSPOSE,
!    (player_pack_fn_t)player_ranger_data_intnspose_pack, 
(player_dpcpy_fn_t)player_ranger_data_intnspose_t_dpcpy, 
(player_cleanup_fn_t)player_ranger_data_intnspose_t_cleanup},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_DATA, PLAYER_RANGER_DATA_GEOM,
!    (player_pack_fn_t)player_ranger_geom_pack, 
(player_dpcpy_fn_t)player_ranger_geom_t_dpcpy, 
(player_cleanup_fn_t)player_ranger_geom_t_cleanup},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_RANGER_REQ_GET_GEOM,
!    (player_pack_fn_t)player_ranger_geom_pack, 
(player_dpcpy_fn_t)player_ranger_geom_t_dpcpy, 
(player_cleanup_fn_t)player_ranger_geom_t_cleanup},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_RANGER_REQ_POWER,
!    (player_pack_fn_t)player_ranger_power_config_pack, NULL, NULL},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_RANGER_REQ_INTNS,
!    (player_pack_fn_t)player_ranger_intns_config_pack, NULL, NULL},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_RANGER_REQ_GET_CONFIG,
!    (player_pack_fn_t)player_ranger_config_pack, NULL, NULL},
!   {PLAYER_RANGER_CODE, PLAYER_MSGTYPE_REQ, PLAYER_RANGER_REQ_SET_CONFIG,
!    (player_pack_fn_t)player_ranger_config_pack, NULL, NULL},
! 
!   /* rfid messages */
!   {PLAYER_RFID_CODE, PLAYER_MSGTYPE_DATA, PLAYER_RFID_DATA,
!     (player_pack_fn_t)player_rfid_data_pack, NULL, NULL},
! 
!   /* simulation messages */
!   {PLAYER_SIMULATION_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_SIMULATION_REQ_SET_POSE2D,
!     (player_pack_fn_t)player_simulation_pose2d_req_pack, NULL, NULL},
!   {PLAYER_SIMULATION_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_SIMULATION_REQ_GET_POSE2D,
!     (player_pack_fn_t)player_simulation_pose2d_req_pack, NULL, NULL},
!   {PLAYER_SIMULATION_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_SIMULATION_REQ_SET_POSE3D,
!     (player_pack_fn_t)player_simulation_pose3d_req_pack, NULL, NULL},
!   {PLAYER_SIMULATION_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_SIMULATION_REQ_GET_POSE3D,
!     (player_pack_fn_t)player_simulation_pose3d_req_pack, NULL, NULL},
!   {PLAYER_SIMULATION_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_SIMULATION_REQ_GET_PROPERTY,
!     (player_pack_fn_t)player_simulation_property_req_pack, NULL, NULL},
!   {PLAYER_SIMULATION_CODE, PLAYER_MSGTYPE_REQ, 
PLAYER_SIMULATION_REQ_SET_PROPERTY,
!     (player_pack_fn_t)player_simulation_property_req_pack, NULL, NULL},
! 
!   /* sonar messages */
!   {PLAYER_SONAR_CODE, PLAYER_MSGTYPE_DATA, PLAYER_SONAR_DATA_RANGES,
!     (player_pack_fn_t)player_sonar_data_pack, NULL, NULL},
!   {PLAYER_SONAR_CODE, PLAYER_MSGTYPE_REQ, PLAYER_SONAR_REQ_GET_GEOM,
!     (player_pack_fn_t)player_sonar_geom_pack, NULL, NULL},
! 
!   /* speech messages */
!   {PLAYER_SPEECH_CODE, PLAYER_MSGTYPE_CMD, PLAYER_SPEECH_CMD_SAY,
!     (player_pack_fn_t)player_speech_cmd_pack, NULL, NULL},
! 
!   /* speech recognition messages */
!   {PLAYER_SPEECH_RECOGNITION_CODE, PLAYER_MSGTYPE_DATA, 
PLAYER_SPEECH_RECOGNITION_DATA_STRING,
!     (player_pack_fn_t)player_speech_recognition_data_pack, NULL, NULL},
! 
!   /* wifi messages */
!   {PLAYER_WIFI_CODE, PLAYER_MSGTYPE_DATA, PLAYER_WIFI_DATA_STATE,
!     (player_pack_fn_t)player_wifi_data_pack, NULL, NULL},
!   {PLAYER_WIFI_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WIFI_MAC,
!     (player_pack_fn_t)player_wifi_mac_req_pack, NULL, NULL},
!   {PLAYER_WIFI_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WIFI_IWSPY_ADD,
!     (player_pack_fn_t)player_wifi_iwspy_addr_req_pack, NULL, NULL},
!   {PLAYER_WIFI_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WIFI_IWSPY_DEL,
!     (player_pack_fn_t)player_wifi_iwspy_addr_req_pack, NULL, NULL},
!   {PLAYER_WIFI_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WIFI_IWSPY_PING,
!     (player_pack_fn_t)player_wifi_iwspy_addr_req_pack, NULL, NULL},
! 
!   /* wsn messages */
!   {PLAYER_WSN_CODE, PLAYER_MSGTYPE_DATA, PLAYER_WSN_DATA,
!     (player_pack_fn_t)player_wsn_data_pack, NULL, NULL},
!   {PLAYER_WSN_CODE, PLAYER_MSGTYPE_CMD, PLAYER_WSN_CMD_DEVSTATE,
!    (player_pack_fn_t)player_wsn_cmd_pack, NULL, NULL},
!   {PLAYER_WSN_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WSN_REQ_POWER,
!    (player_pack_fn_t)player_wsn_power_config_pack, NULL, NULL},
!   {PLAYER_WSN_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WSN_REQ_DATATYPE,
!    (player_pack_fn_t)player_wsn_datatype_config_pack, NULL, NULL},
!   {PLAYER_WSN_CODE, PLAYER_MSGTYPE_REQ, PLAYER_WSN_REQ_DATAFREQ,
!    (player_pack_fn_t)player_wsn_datafreq_config_pack, NULL, NULL},
! 
!   /* imu messages */
!   {PLAYER_IMU_CODE, PLAYER_MSGTYPE_DATA, PLAYER_IMU_DATA_STATE,
!     (player_pack_fn_t)player_imu_data_state_pack, NULL, NULL},
!   {PLAYER_IMU_CODE, PLAYER_MSGTYPE_DATA, PLAYER_IMU_DATA_CALIB,
!    (player_pack_fn_t)player_imu_data_calib_pack, NULL, NULL},
!   {PLAYER_IMU_CODE, PLAYER_MSGTYPE_DATA, PLAYER_IMU_DATA_QUAT,
!    (player_pack_fn_t)player_imu_data_quat_pack, NULL, NULL},
!   {PLAYER_IMU_CODE, PLAYER_MSGTYPE_DATA, PLAYER_IMU_DATA_EULER,
!    (player_pack_fn_t)player_imu_data_euler_pack, NULL, NULL},
!   {PLAYER_IMU_CODE, PLAYER_MSGTYPE_REQ, PLAYER_IMU_REQ_SET_DATATYPE,
!    (player_pack_fn_t)player_imu_datatype_config_pack, NULL, NULL},
!   {PLAYER_IMU_CODE, PLAYER_MSGTYPE_REQ, PLAYER_IMU_REQ_RESET_ORIENTATION,
!    (player_pack_fn_t)player_imu_reset_orientation_config_pack, NULL, NULL},
  
    /* This NULL element signals the end of the list; don't remove it */
--- 76,85 ----
     (player_pack_fn_t)player_strprop_req_pack, 
(player_dpcpy_fn_t)player_strprop_req_t_dpcpy, 
(player_cleanup_fn_t)player_strprop_req_t_cleanup},
  
!   /* Special messages */
    {PLAYER_PLAYER_CODE, PLAYER_MSGTYPE_SYNCH, 0,
      (player_pack_fn_t)player_add_replace_rule_req_pack, NULL, NULL},
  
!   /* generated messages from the interface definitions */
! #include "functiontable_gen.c"
  
    /* This NULL element signals the end of the list; don't remove it */

Index: Makefile.am
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayerxdr/Makefile.am,v
retrieving revision 1.18
retrieving revision 1.19
diff -C2 -d -r1.18 -r1.19
*** Makefile.am 16 Mar 2007 15:06:41 -0000      1.18
--- Makefile.am 20 Aug 2007 06:37:26 -0000      1.19
***************
*** 7,11 ****
  BUILT_SOURCES =
  if HAVE_PYTHON
! BUILT_SOURCES += playerxdr.c playerxdr.h
  endif
  
--- 7,11 ----
  BUILT_SOURCES =
  if HAVE_PYTHON
! BUILT_SOURCES += playerxdr.c playerxdr.h functiontable_gen.c
  endif
  
***************
*** 20,27 ****
  CLEANFILES = playerxdr.pc
  
  playerxdr.h: playerxdr.c
  
! playerxdr.c: playerxdrgen.py $(top_srcdir)/libplayercore/player.h
!       python $(srcdir)/playerxdrgen.py -distro 
$(top_srcdir)/libplayercore/player.h playerxdr.c playerxdr.h
  
  libplayerxdr_la_SOURCES = playerxdr.c playerxdr.h functiontable.h 
functiontable.c
--- 20,33 ----
  CLEANFILES = playerxdr.pc
  
+ functiontable_gen.c: $(top_srcdir)/libplayercore/playerinterfacegen.py 
$(top_srcdir)/libplayercore/interfaces/*
+       if ! $(top_srcdir)/libplayercore/playerinterfacegen.py --functiontable 
$(top_srcdir)/libplayercore/interfaces/ > functiontable_gen.c; then rm 
functiontable_gen.c; fi
+ 
+ $(top_srcdir)/libplayercore/player_interfaces.h: 
$(top_srcdir)/libplayercore/interfaces/*
+       make -C $(top_srcdir)/libplayercore/ player_interfaces.h
+ 
  playerxdr.h: playerxdr.c
  
! playerxdr.c: playerxdrgen.py $(top_srcdir)/libplayercore/player.h 
$(top_srcdir)/libplayercore/player_interfaces.h
!       python $(srcdir)/playerxdrgen.py -distro 
$(top_srcdir)/libplayercore/player.h playerxdr.c playerxdr.h 
$(top_srcdir)/libplayercore/player_interfaces.h
  
  libplayerxdr_la_SOURCES = playerxdr.c playerxdr.h functiontable.h 
functiontable.c


-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit

Reply via email to