Update of /cvsroot/playerstage/code/player/client_libs/libplayerc/test
In directory
sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1460/client_libs/libplayerc/test
Modified Files:
test.h test_laser.c test_speech.c test_wsn.c test_simulation.c
.cvsignore
Log Message:
Added entries to .cvsignore for eclipse CVS setup
Modified playerxdrgen to generate clone and free methods
Renamed dpcpy methods to copy and made argument order match memcpy
simplified vectormap interface a little
fixed misc warnings
cleanup tests
Index: test.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/client_libs/libplayerc/test/test.h,v
retrieving revision 1.24
retrieving revision 1.25
diff -C2 -d -r1.24 -r1.25
*** test.h 18 Sep 2006 13:20:02 -0000 1.24
--- test.h 17 Sep 2007 02:18:52 -0000 1.25
***************
*** 12,15 ****
--- 12,16 ----
#include <stdlib.h>
#include <string.h>
+ #include <unistd.h>
#include "playerc.h"
***************
*** 20,55 ****
#define FAIL() (1 ? printf("\033[41mfail\033[0m\n%s\n", playerc_error_str()),
fflush(stdout) : 0)
! // Basic laser test
extern int test_laser(playerc_client_t *client, int index);
!
! // Basic test for position2d device.
extern int test_position2d(playerc_client_t *client, int index);
-
- // Basic test for position3d device
extern int test_position3d(playerc_client_t *client, int index);
!
! // Basic test for log device.
! extern int test_log(playerc_client_t *client, int index);
!
! // Basic test for simulation device.
extern int test_simulation(playerc_client_t *client, int index);
-
- // Basic test for sonar device.
extern int test_sonar(playerc_client_t *client, int index);
- // Basic test for power device.
- extern int test_power(playerc_client_t *client, int index);
-
- // Basic test for map device
- extern int test_map(playerc_client_t *client, int index);
-
- // Basic test for camera device
- extern int test_camera(playerc_client_t *client, int index);
-
- // Basic blobfinder test
- extern int test_blobfinder(playerc_client_t *client, int index);
- // Basic test for ptz device.
- extern int test_ptz(playerc_client_t *client, int index);
#if 0
--- 21,47 ----
#define FAIL() (1 ? printf("\033[41mfail\033[0m\n%s\n", playerc_error_str()),
fflush(stdout) : 0)
! // Basic test for proxies
! extern int test_aio(playerc_client_t *client, int index);
! extern int test_blobfinder(playerc_client_t *client, int index);
! extern int test_camera(playerc_client_t *client, int index);
! extern int test_dio(playerc_client_t *client, int index);
! extern int test_graphics2d(playerc_client_t *client, int index);
! extern int test_graphics3d(playerc_client_t *client, int index);
! extern int test_gripper(playerc_client_t *client, int index);
! extern int test_imu(playerc_client_t *client, int index);
extern int test_laser(playerc_client_t *client, int index);
! extern int test_log(playerc_client_t *client, int index);
! extern int test_map(playerc_client_t *client, int index);
extern int test_position2d(playerc_client_t *client, int index);
extern int test_position3d(playerc_client_t *client, int index);
! extern int test_power(playerc_client_t *client, int index);
! extern int test_ptz(playerc_client_t *client, int index);
! extern int test_rfid(playerc_client_t *client, int index);
extern int test_simulation(playerc_client_t *client, int index);
extern int test_sonar(playerc_client_t *client, int index);
+ extern int test_speech(playerc_client_t *client, int index);
+ extern int test_wsn(playerc_client_t *client, int index);
#if 0
***************
*** 88,105 ****
#endif
- // Basic test for Graphics2D.
- extern int test_graphics2d(playerc_client_t *client, int index);
- // Basic test for Gripper.
- extern int test_gripper(playerc_client_t *client, int index);
-
- // Basic test for RFID.
- extern int test_rfid(playerc_client_t *client, int index);
-
- // Basic test for WSN.
- extern int test_wsn(playerc_client_t *client, int index);
-
- // Basic test for IMU.
- extern int test_imu(playerc_client_t *client, int index);
#endif // TEST_H
--- 80,84 ----
Index: .cvsignore
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/test/.cvsignore,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** .cvsignore 28 Oct 2002 18:52:31 -0000 1.2
--- .cvsignore 17 Sep 2007 02:18:53 -0000 1.3
***************
*** 2,3 ****
--- 2,5 ----
Makefile.in
test
+ .libs
+ .deps
Index: test_wsn.c
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/test/test_wsn.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_wsn.c 11 Apr 2006 15:40:31 -0000 1.1
--- test_wsn.c 17 Sep 2007 02:18:52 -0000 1.2
***************
*** 11,15 ****
int test_wsn(playerc_client_t *client, int index)
{
! int t, i, j;
void *rdevice;
playerc_wsn_t *device;
--- 11,15 ----
int test_wsn(playerc_client_t *client, int index)
{
! int t;//, i, j;
void *rdevice;
playerc_wsn_t *device;
Index: test_laser.c
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/test/test_laser.c,v
retrieving revision 1.20
retrieving revision 1.21
diff -C2 -d -r1.20 -r1.21
*** test_laser.c 13 Feb 2007 23:40:37 -0000 1.20
--- test_laser.c 17 Sep 2007 02:18:52 -0000 1.21
***************
*** 18,23 ****
playerc_laser_t *device;
! double min, max, scanning_frequency;
! unsigned char resolution, range_res, intensity;
printf("device [laser] index [%d]\n", index);
--- 18,23 ----
playerc_laser_t *device;
! double min, max, scanning_frequency, resolution, range_res;
! unsigned char intensity;
printf("device [laser] index [%d]\n", index);
Index: test_speech.c
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/test/test_speech.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** test_speech.c 19 Apr 2007 17:00:44 -0000 1.1
--- test_speech.c 17 Sep 2007 02:18:52 -0000 1.2
***************
*** 14,19 ****
int test_speech(playerc_client_t *client, int index)
{
! int t;
! void *rdevice;
playerc_speech_t *device;
--- 14,19 ----
int test_speech(playerc_client_t *client, int index)
{
! //int t;
! //void *rdevice;
playerc_speech_t *device;
***************
*** 33,37 ****
TEST1("writing data (attempt %d)",1);
! unsigned char text[]="Hello World!";
if (playerc_speech_say(device, text ) != 0) {
--- 33,37 ----
TEST1("writing data (attempt %d)",1);
! char text[]="Hello World!";
if (playerc_speech_say(device, text ) != 0) {
***************
*** 44,48 ****
TEST1("writing data (attempt %d)",2);
! unsigned char
text2[]="12345678901234567890123456789012345678901234567890";
TEST1("Printing: %s",text2);
--- 44,48 ----
TEST1("writing data (attempt %d)",2);
! char text2[]="12345678901234567890123456789012345678901234567890";
TEST1("Printing: %s",text2);
Index: test_simulation.c
===================================================================
RCS file:
/cvsroot/playerstage/code/player/client_libs/libplayerc/test/test_simulation.c,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** test_simulation.c 21 Nov 2006 02:12:34 -0000 1.4
--- test_simulation.c 17 Sep 2007 02:18:52 -0000 1.5
***************
*** 22,26 ****
{
double x,y,a;
! void *rdevice;
playerc_simulation_t *device;
--- 22,26 ----
{
double x,y,a;
! //void *rdevice;
playerc_simulation_t *device;
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Playerstage-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/playerstage-commit