Update of /cvsroot/playerstage/code/player/libplayercore
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv20455/libplayercore
Modified Files:
message.cc player.h
Log Message:
added vectormap interface
added postgis vectormap driver
Thanks to Ben Morelli for these changes
Index: player.h
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayercore/player.h,v
retrieving revision 1.138
retrieving revision 1.139
diff -C2 -d -r1.138 -r1.139
*** player.h 20 Aug 2007 06:37:26 -0000 1.138
--- player.h 20 Aug 2007 19:42:47 -0000 1.139
***************
*** 378,381 ****
--- 378,397 ----
} player_segment_t;
+ /** @brief A rectangular bounding box, used to define the origin and bounds
of an object.
+ * It is expected that x0 is less than x1 and y0 is less than y1. The points
(x0,y0) and (x1,y1)
+ * represent opposite sides of the rectangle.
+ */
+ typedef struct player_extent2d
+ {
+ /** Origin x [m] */
+ double x0;
+ /** Origin y [m] */
+ double y0;
+ /** Endpoints [m] */
+ double x1;
+ /** Endpoints [m] */
+ double y1;
+ } player_extent2d_t;
+
/** @brief A color descriptor */
typedef struct player_color
Index: message.cc
===================================================================
RCS file: /cvsroot/playerstage/code/player/libplayercore/message.cc,v
retrieving revision 1.22
retrieving revision 1.23
diff -C2 -d -r1.22 -r1.23
*** message.cc 10 Jul 2007 09:01:52 -0000 1.22
--- message.cc 20 Aug 2007 19:42:47 -0000 1.23
***************
*** 78,82 ****
memcpy(&this->Data[sizeof(struct player_msghdr)],data,data_size);
// Perform deep copy if necessary
! if (do_deepcopy && data != NULL)
{
player_dpcpy_fn_t dpcpyfunc = NULL;
--- 78,82 ----
memcpy(&this->Data[sizeof(struct player_msghdr)],data,data_size);
// Perform deep copy if necessary
! if (do_deepcopy && data != NULL && data_size > 0)
{
player_dpcpy_fn_t dpcpyfunc = NULL;
***************
*** 87,90 ****
--- 87,91 ----
// Possible error
PLAYER_WARN3 ("copied zero bytes in deep copy of message %s: %s, %d",
interf_to_str (Header.addr.interf), msgtype_to_str (Header.type),
Header.subtype);
+ assert(0);
}
}
-------------------------------------------------------------------------
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