00001 /* 00002 * Copyright (C) 2010, Peter Soetens 00003 * 00004 * Redistribution and use in source and binary forms, with or without 00005 * modification, are permitted provided that the following conditions are met: 00006 * * Redistributions of source code must retain the above copyright notice, 00007 * this list of conditions and the following disclaimer. 00008 * * Redistributions in binary form must reproduce the above copyright 00009 * notice, this list of conditions and the following disclaimer in the 00010 * documentation and/or other materials provided with the distribution. 00011 * * Neither the names of Willow Garage, Inc. nor the names of its 00012 * contributors may be used to endorse or promote products derived from 00013 * this software without specific prior written permission. 00014 * 00015 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00016 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00017 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00018 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00019 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00020 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00021 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00022 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00023 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00024 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00025 * POSSIBILITY OF SUCH DAMAGE. 00026 */ 00027 00028 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00029 #define ROSCPP_SERIALIZATION_BOOST_H 00030 00031 #include "types.h" 00032 #include "time.h" 00033 00034 #include <vector> 00035 #include <string> 00036 #include <boost/shared_array.hpp> 00037 #include <boost/serialization/serialization.hpp> 00038 #include <boost/serialization/vector.hpp> 00039 #include <boost/serialization/string.hpp> 00040 00041 namespace boost { 00042 namespace serialization { 00043 00047 template<class Archive> 00048 void serialize(Archive& a, ros::Time& t, unsigned int) { 00049 a & t.sec; 00050 a & t.nsec; 00051 } 00052 00056 template<class Archive> 00057 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00058 a & d.sec; 00059 a & d.nsec; 00060 } 00061 00062 } // namespace serialization 00063 } // namespace boost 00064 00065 #endif // ROSCPP_SERIALIZATION_BOOST_H 00066 /* 00067 * Copyright (C) 2010, Peter Soetens 00068 * 00069 * Redistribution and use in source and binary forms, with or without 00070 * modification, are permitted provided that the following conditions are met: 00071 * * Redistributions of source code must retain the above copyright notice, 00072 * this list of conditions and the following disclaimer. 00073 * * Redistributions in binary form must reproduce the above copyright 00074 * notice, this list of conditions and the following disclaimer in the 00075 * documentation and/or other materials provided with the distribution. 00076 * * Neither the names of Willow Garage, Inc. nor the names of its 00077 * contributors may be used to endorse or promote products derived from 00078 * this software without specific prior written permission. 00079 * 00080 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00081 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00082 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00083 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00084 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00085 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00086 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00087 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00088 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00089 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00090 * POSSIBILITY OF SUCH DAMAGE. 00091 */ 00092 00093 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00094 #define ROSCPP_SERIALIZATION_BOOST_H 00095 00096 #include "types.h" 00097 #include "time.h" 00098 00099 #include <vector> 00100 #include <string> 00101 #include <boost/shared_array.hpp> 00102 #include <boost/serialization/serialization.hpp> 00103 #include <boost/serialization/vector.hpp> 00104 #include <boost/serialization/string.hpp> 00105 00106 namespace boost { 00107 namespace serialization { 00108 00112 template<class Archive> 00113 void serialize(Archive& a, ros::Time& t, unsigned int) { 00114 a & t.sec; 00115 a & t.nsec; 00116 } 00117 00121 template<class Archive> 00122 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00123 a & d.sec; 00124 a & d.nsec; 00125 } 00126 00127 } // namespace serialization 00128 } // namespace boost 00129 00130 #endif // ROSCPP_SERIALIZATION_BOOST_H 00131 /* 00132 * Copyright (C) 2010, Peter Soetens 00133 * 00134 * Redistribution and use in source and binary forms, with or without 00135 * modification, are permitted provided that the following conditions are met: 00136 * * Redistributions of source code must retain the above copyright notice, 00137 * this list of conditions and the following disclaimer. 00138 * * Redistributions in binary form must reproduce the above copyright 00139 * notice, this list of conditions and the following disclaimer in the 00140 * documentation and/or other materials provided with the distribution. 00141 * * Neither the names of Willow Garage, Inc. nor the names of its 00142 * contributors may be used to endorse or promote products derived from 00143 * this software without specific prior written permission. 00144 * 00145 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00146 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00147 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00148 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00149 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00150 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00151 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00152 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00153 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00154 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00155 * POSSIBILITY OF SUCH DAMAGE. 00156 */ 00157 00158 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00159 #define ROSCPP_SERIALIZATION_BOOST_H 00160 00161 #include "types.h" 00162 #include "time.h" 00163 00164 #include <vector> 00165 #include <string> 00166 #include <boost/shared_array.hpp> 00167 #include <boost/serialization/serialization.hpp> 00168 #include <boost/serialization/vector.hpp> 00169 #include <boost/serialization/string.hpp> 00170 00171 namespace boost { 00172 namespace serialization { 00173 00177 template<class Archive> 00178 void serialize(Archive& a, ros::Time& t, unsigned int) { 00179 a & t.sec; 00180 a & t.nsec; 00181 } 00182 00186 template<class Archive> 00187 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00188 a & d.sec; 00189 a & d.nsec; 00190 } 00191 00192 } // namespace serialization 00193 } // namespace boost 00194 00195 #endif // ROSCPP_SERIALIZATION_BOOST_H 00196 /* 00197 * Copyright (C) 2010, Peter Soetens 00198 * 00199 * Redistribution and use in source and binary forms, with or without 00200 * modification, are permitted provided that the following conditions are met: 00201 * * Redistributions of source code must retain the above copyright notice, 00202 * this list of conditions and the following disclaimer. 00203 * * Redistributions in binary form must reproduce the above copyright 00204 * notice, this list of conditions and the following disclaimer in the 00205 * documentation and/or other materials provided with the distribution. 00206 * * Neither the names of Willow Garage, Inc. nor the names of its 00207 * contributors may be used to endorse or promote products derived from 00208 * this software without specific prior written permission. 00209 * 00210 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00211 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00212 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00213 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00214 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00215 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00216 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00217 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00218 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00219 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00220 * POSSIBILITY OF SUCH DAMAGE. 00221 */ 00222 00223 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00224 #define ROSCPP_SERIALIZATION_BOOST_H 00225 00226 #include "types.h" 00227 #include "time.h" 00228 00229 #include <vector> 00230 #include <string> 00231 #include <boost/shared_array.hpp> 00232 #include <boost/serialization/serialization.hpp> 00233 #include <boost/serialization/vector.hpp> 00234 #include <boost/serialization/string.hpp> 00235 00236 namespace boost { 00237 namespace serialization { 00238 00242 template<class Archive> 00243 void serialize(Archive& a, ros::Time& t, unsigned int) { 00244 a & t.sec; 00245 a & t.nsec; 00246 } 00247 00251 template<class Archive> 00252 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00253 a & d.sec; 00254 a & d.nsec; 00255 } 00256 00257 } // namespace serialization 00258 } // namespace boost 00259 00260 #endif // ROSCPP_SERIALIZATION_BOOST_H 00261 /* 00262 * Copyright (C) 2010, Peter Soetens 00263 * 00264 * Redistribution and use in source and binary forms, with or without 00265 * modification, are permitted provided that the following conditions are met: 00266 * * Redistributions of source code must retain the above copyright notice, 00267 * this list of conditions and the following disclaimer. 00268 * * Redistributions in binary form must reproduce the above copyright 00269 * notice, this list of conditions and the following disclaimer in the 00270 * documentation and/or other materials provided with the distribution. 00271 * * Neither the names of Willow Garage, Inc. nor the names of its 00272 * contributors may be used to endorse or promote products derived from 00273 * this software without specific prior written permission. 00274 * 00275 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00276 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00277 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00278 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00279 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00280 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00281 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00282 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00283 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00284 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00285 * POSSIBILITY OF SUCH DAMAGE. 00286 */ 00287 00288 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00289 #define ROSCPP_SERIALIZATION_BOOST_H 00290 00291 #include "types.h" 00292 #include "time.h" 00293 00294 #include <vector> 00295 #include <string> 00296 #include <boost/shared_array.hpp> 00297 #include <boost/serialization/serialization.hpp> 00298 #include <boost/serialization/vector.hpp> 00299 #include <boost/serialization/string.hpp> 00300 00301 namespace boost { 00302 namespace serialization { 00303 00307 template<class Archive> 00308 void serialize(Archive& a, ros::Time& t, unsigned int) { 00309 a & t.sec; 00310 a & t.nsec; 00311 } 00312 00316 template<class Archive> 00317 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00318 a & d.sec; 00319 a & d.nsec; 00320 } 00321 00322 } // namespace serialization 00323 } // namespace boost 00324 00325 #endif // ROSCPP_SERIALIZATION_BOOST_H 00326 /* 00327 * Copyright (C) 2010, Peter Soetens 00328 * 00329 * Redistribution and use in source and binary forms, with or without 00330 * modification, are permitted provided that the following conditions are met: 00331 * * Redistributions of source code must retain the above copyright notice, 00332 * this list of conditions and the following disclaimer. 00333 * * Redistributions in binary form must reproduce the above copyright 00334 * notice, this list of conditions and the following disclaimer in the 00335 * documentation and/or other materials provided with the distribution. 00336 * * Neither the names of Willow Garage, Inc. nor the names of its 00337 * contributors may be used to endorse or promote products derived from 00338 * this software without specific prior written permission. 00339 * 00340 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00341 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00342 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00343 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00344 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00345 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00346 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00347 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00348 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00349 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00350 * POSSIBILITY OF SUCH DAMAGE. 00351 */ 00352 00353 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00354 #define ROSCPP_SERIALIZATION_BOOST_H 00355 00356 #include "types.h" 00357 #include "time.h" 00358 00359 #include <vector> 00360 #include <string> 00361 #include <boost/shared_array.hpp> 00362 #include <boost/serialization/serialization.hpp> 00363 #include <boost/serialization/vector.hpp> 00364 #include <boost/serialization/string.hpp> 00365 00366 namespace boost { 00367 namespace serialization { 00368 00372 template<class Archive> 00373 void serialize(Archive& a, ros::Time& t, unsigned int) { 00374 a & t.sec; 00375 a & t.nsec; 00376 } 00377 00381 template<class Archive> 00382 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00383 a & d.sec; 00384 a & d.nsec; 00385 } 00386 00387 } // namespace serialization 00388 } // namespace boost 00389 00390 #endif // ROSCPP_SERIALIZATION_BOOST_H 00391 /* 00392 * Copyright (C) 2010, Peter Soetens 00393 * 00394 * Redistribution and use in source and binary forms, with or without 00395 * modification, are permitted provided that the following conditions are met: 00396 * * Redistributions of source code must retain the above copyright notice, 00397 * this list of conditions and the following disclaimer. 00398 * * Redistributions in binary form must reproduce the above copyright 00399 * notice, this list of conditions and the following disclaimer in the 00400 * documentation and/or other materials provided with the distribution. 00401 * * Neither the names of Willow Garage, Inc. nor the names of its 00402 * contributors may be used to endorse or promote products derived from 00403 * this software without specific prior written permission. 00404 * 00405 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00406 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00407 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00408 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00409 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00410 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00411 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00412 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00413 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00414 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00415 * POSSIBILITY OF SUCH DAMAGE. 00416 */ 00417 00418 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00419 #define ROSCPP_SERIALIZATION_BOOST_H 00420 00421 #include "types.h" 00422 #include "time.h" 00423 00424 #include <vector> 00425 #include <string> 00426 #include <boost/shared_array.hpp> 00427 #include <boost/serialization/serialization.hpp> 00428 #include <boost/serialization/vector.hpp> 00429 #include <boost/serialization/string.hpp> 00430 00431 namespace boost { 00432 namespace serialization { 00433 00437 template<class Archive> 00438 void serialize(Archive& a, ros::Time& t, unsigned int) { 00439 a & t.sec; 00440 a & t.nsec; 00441 } 00442 00446 template<class Archive> 00447 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00448 a & d.sec; 00449 a & d.nsec; 00450 } 00451 00452 } // namespace serialization 00453 } // namespace boost 00454 00455 #endif // ROSCPP_SERIALIZATION_BOOST_H 00456 /* 00457 * Copyright (C) 2010, Peter Soetens 00458 * 00459 * Redistribution and use in source and binary forms, with or without 00460 * modification, are permitted provided that the following conditions are met: 00461 * * Redistributions of source code must retain the above copyright notice, 00462 * this list of conditions and the following disclaimer. 00463 * * Redistributions in binary form must reproduce the above copyright 00464 * notice, this list of conditions and the following disclaimer in the 00465 * documentation and/or other materials provided with the distribution. 00466 * * Neither the names of Willow Garage, Inc. nor the names of its 00467 * contributors may be used to endorse or promote products derived from 00468 * this software without specific prior written permission. 00469 * 00470 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00471 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00472 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00473 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00474 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00475 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00476 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00477 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00478 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00479 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00480 * POSSIBILITY OF SUCH DAMAGE. 00481 */ 00482 00483 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00484 #define ROSCPP_SERIALIZATION_BOOST_H 00485 00486 #include "types.h" 00487 #include "time.h" 00488 00489 #include <vector> 00490 #include <string> 00491 #include <boost/shared_array.hpp> 00492 #include <boost/serialization/serialization.hpp> 00493 #include <boost/serialization/vector.hpp> 00494 #include <boost/serialization/string.hpp> 00495 00496 namespace boost { 00497 namespace serialization { 00498 00502 template<class Archive> 00503 void serialize(Archive& a, ros::Time& t, unsigned int) { 00504 a & t.sec; 00505 a & t.nsec; 00506 } 00507 00511 template<class Archive> 00512 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00513 a & d.sec; 00514 a & d.nsec; 00515 } 00516 00517 } // namespace serialization 00518 } // namespace boost 00519 00520 #endif // ROSCPP_SERIALIZATION_BOOST_H 00521 /* 00522 * Copyright (C) 2010, Peter Soetens 00523 * 00524 * Redistribution and use in source and binary forms, with or without 00525 * modification, are permitted provided that the following conditions are met: 00526 * * Redistributions of source code must retain the above copyright notice, 00527 * this list of conditions and the following disclaimer. 00528 * * Redistributions in binary form must reproduce the above copyright 00529 * notice, this list of conditions and the following disclaimer in the 00530 * documentation and/or other materials provided with the distribution. 00531 * * Neither the names of Willow Garage, Inc. nor the names of its 00532 * contributors may be used to endorse or promote products derived from 00533 * this software without specific prior written permission. 00534 * 00535 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00536 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00537 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00538 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00539 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00540 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00541 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00542 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00543 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00544 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00545 * POSSIBILITY OF SUCH DAMAGE. 00546 */ 00547 00548 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00549 #define ROSCPP_SERIALIZATION_BOOST_H 00550 00551 #include "types.h" 00552 #include "time.h" 00553 00554 #include <vector> 00555 #include <string> 00556 #include <boost/shared_array.hpp> 00557 #include <boost/serialization/serialization.hpp> 00558 #include <boost/serialization/vector.hpp> 00559 #include <boost/serialization/string.hpp> 00560 00561 namespace boost { 00562 namespace serialization { 00563 00567 template<class Archive> 00568 void serialize(Archive& a, ros::Time& t, unsigned int) { 00569 a & t.sec; 00570 a & t.nsec; 00571 } 00572 00576 template<class Archive> 00577 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00578 a & d.sec; 00579 a & d.nsec; 00580 } 00581 00582 } // namespace serialization 00583 } // namespace boost 00584 00585 #endif // ROSCPP_SERIALIZATION_BOOST_H 00586 /* 00587 * Copyright (C) 2010, Peter Soetens 00588 * 00589 * Redistribution and use in source and binary forms, with or without 00590 * modification, are permitted provided that the following conditions are met: 00591 * * Redistributions of source code must retain the above copyright notice, 00592 * this list of conditions and the following disclaimer. 00593 * * Redistributions in binary form must reproduce the above copyright 00594 * notice, this list of conditions and the following disclaimer in the 00595 * documentation and/or other materials provided with the distribution. 00596 * * Neither the names of Willow Garage, Inc. nor the names of its 00597 * contributors may be used to endorse or promote products derived from 00598 * this software without specific prior written permission. 00599 * 00600 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00601 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00602 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00603 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00604 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00605 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00606 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00607 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00608 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00609 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00610 * POSSIBILITY OF SUCH DAMAGE. 00611 */ 00612 00613 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00614 #define ROSCPP_SERIALIZATION_BOOST_H 00615 00616 #include "types.h" 00617 #include "time.h" 00618 00619 #include <vector> 00620 #include <string> 00621 #include <boost/shared_array.hpp> 00622 #include <boost/serialization/serialization.hpp> 00623 #include <boost/serialization/vector.hpp> 00624 #include <boost/serialization/string.hpp> 00625 00626 namespace boost { 00627 namespace serialization { 00628 00632 template<class Archive> 00633 void serialize(Archive& a, ros::Time& t, unsigned int) { 00634 a & t.sec; 00635 a & t.nsec; 00636 } 00637 00641 template<class Archive> 00642 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00643 a & d.sec; 00644 a & d.nsec; 00645 } 00646 00647 } // namespace serialization 00648 } // namespace boost 00649 00650 #endif // ROSCPP_SERIALIZATION_BOOST_H 00651 /* 00652 * Copyright (C) 2010, Peter Soetens 00653 * 00654 * Redistribution and use in source and binary forms, with or without 00655 * modification, are permitted provided that the following conditions are met: 00656 * * Redistributions of source code must retain the above copyright notice, 00657 * this list of conditions and the following disclaimer. 00658 * * Redistributions in binary form must reproduce the above copyright 00659 * notice, this list of conditions and the following disclaimer in the 00660 * documentation and/or other materials provided with the distribution. 00661 * * Neither the names of Willow Garage, Inc. nor the names of its 00662 * contributors may be used to endorse or promote products derived from 00663 * this software without specific prior written permission. 00664 * 00665 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00666 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00667 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00668 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00669 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00670 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00671 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00672 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00673 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00674 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00675 * POSSIBILITY OF SUCH DAMAGE. 00676 */ 00677 00678 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00679 #define ROSCPP_SERIALIZATION_BOOST_H 00680 00681 #include "types.h" 00682 #include "time.h" 00683 00684 #include <vector> 00685 #include <string> 00686 #include <boost/shared_array.hpp> 00687 #include <boost/serialization/serialization.hpp> 00688 #include <boost/serialization/vector.hpp> 00689 #include <boost/serialization/string.hpp> 00690 00691 namespace boost { 00692 namespace serialization { 00693 00697 template<class Archive> 00698 void serialize(Archive& a, ros::Time& t, unsigned int) { 00699 a & t.sec; 00700 a & t.nsec; 00701 } 00702 00706 template<class Archive> 00707 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00708 a & d.sec; 00709 a & d.nsec; 00710 } 00711 00712 } // namespace serialization 00713 } // namespace boost 00714 00715 #endif // ROSCPP_SERIALIZATION_BOOST_H 00716 /* 00717 * Copyright (C) 2010, Peter Soetens 00718 * 00719 * Redistribution and use in source and binary forms, with or without 00720 * modification, are permitted provided that the following conditions are met: 00721 * * Redistributions of source code must retain the above copyright notice, 00722 * this list of conditions and the following disclaimer. 00723 * * Redistributions in binary form must reproduce the above copyright 00724 * notice, this list of conditions and the following disclaimer in the 00725 * documentation and/or other materials provided with the distribution. 00726 * * Neither the names of Willow Garage, Inc. nor the names of its 00727 * contributors may be used to endorse or promote products derived from 00728 * this software without specific prior written permission. 00729 * 00730 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00731 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00732 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00733 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00734 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00735 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00736 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00737 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00738 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00739 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00740 * POSSIBILITY OF SUCH DAMAGE. 00741 */ 00742 00743 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00744 #define ROSCPP_SERIALIZATION_BOOST_H 00745 00746 #include "types.h" 00747 #include "time.h" 00748 00749 #include <vector> 00750 #include <string> 00751 #include <boost/shared_array.hpp> 00752 #include <boost/serialization/serialization.hpp> 00753 #include <boost/serialization/vector.hpp> 00754 #include <boost/serialization/string.hpp> 00755 00756 namespace boost { 00757 namespace serialization { 00758 00762 template<class Archive> 00763 void serialize(Archive& a, ros::Time& t, unsigned int) { 00764 a & t.sec; 00765 a & t.nsec; 00766 } 00767 00771 template<class Archive> 00772 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00773 a & d.sec; 00774 a & d.nsec; 00775 } 00776 00777 } // namespace serialization 00778 } // namespace boost 00779 00780 #endif // ROSCPP_SERIALIZATION_BOOST_H 00781 /* 00782 * Copyright (C) 2010, Peter Soetens 00783 * 00784 * Redistribution and use in source and binary forms, with or without 00785 * modification, are permitted provided that the following conditions are met: 00786 * * Redistributions of source code must retain the above copyright notice, 00787 * this list of conditions and the following disclaimer. 00788 * * Redistributions in binary form must reproduce the above copyright 00789 * notice, this list of conditions and the following disclaimer in the 00790 * documentation and/or other materials provided with the distribution. 00791 * * Neither the names of Willow Garage, Inc. nor the names of its 00792 * contributors may be used to endorse or promote products derived from 00793 * this software without specific prior written permission. 00794 * 00795 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00796 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00797 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00798 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00799 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00800 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00801 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00802 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00803 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00804 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00805 * POSSIBILITY OF SUCH DAMAGE. 00806 */ 00807 00808 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00809 #define ROSCPP_SERIALIZATION_BOOST_H 00810 00811 #include "types.h" 00812 #include "time.h" 00813 00814 #include <vector> 00815 #include <string> 00816 #include <boost/shared_array.hpp> 00817 #include <boost/serialization/serialization.hpp> 00818 #include <boost/serialization/vector.hpp> 00819 #include <boost/serialization/string.hpp> 00820 00821 namespace boost { 00822 namespace serialization { 00823 00827 template<class Archive> 00828 void serialize(Archive& a, ros::Time& t, unsigned int) { 00829 a & t.sec; 00830 a & t.nsec; 00831 } 00832 00836 template<class Archive> 00837 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00838 a & d.sec; 00839 a & d.nsec; 00840 } 00841 00842 } // namespace serialization 00843 } // namespace boost 00844 00845 #endif // ROSCPP_SERIALIZATION_BOOST_H 00846 /* 00847 * Copyright (C) 2010, Peter Soetens 00848 * 00849 * Redistribution and use in source and binary forms, with or without 00850 * modification, are permitted provided that the following conditions are met: 00851 * * Redistributions of source code must retain the above copyright notice, 00852 * this list of conditions and the following disclaimer. 00853 * * Redistributions in binary form must reproduce the above copyright 00854 * notice, this list of conditions and the following disclaimer in the 00855 * documentation and/or other materials provided with the distribution. 00856 * * Neither the names of Willow Garage, Inc. nor the names of its 00857 * contributors may be used to endorse or promote products derived from 00858 * this software without specific prior written permission. 00859 * 00860 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00861 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00862 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00863 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00864 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00865 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00866 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00867 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00868 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00869 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00870 * POSSIBILITY OF SUCH DAMAGE. 00871 */ 00872 00873 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00874 #define ROSCPP_SERIALIZATION_BOOST_H 00875 00876 #include "types.h" 00877 #include "time.h" 00878 00879 #include <vector> 00880 #include <string> 00881 #include <boost/shared_array.hpp> 00882 #include <boost/serialization/serialization.hpp> 00883 #include <boost/serialization/vector.hpp> 00884 #include <boost/serialization/string.hpp> 00885 00886 namespace boost { 00887 namespace serialization { 00888 00892 template<class Archive> 00893 void serialize(Archive& a, ros::Time& t, unsigned int) { 00894 a & t.sec; 00895 a & t.nsec; 00896 } 00897 00901 template<class Archive> 00902 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00903 a & d.sec; 00904 a & d.nsec; 00905 } 00906 00907 } // namespace serialization 00908 } // namespace boost 00909 00910 #endif // ROSCPP_SERIALIZATION_BOOST_H 00911 /* 00912 * Copyright (C) 2010, Peter Soetens 00913 * 00914 * Redistribution and use in source and binary forms, with or without 00915 * modification, are permitted provided that the following conditions are met: 00916 * * Redistributions of source code must retain the above copyright notice, 00917 * this list of conditions and the following disclaimer. 00918 * * Redistributions in binary form must reproduce the above copyright 00919 * notice, this list of conditions and the following disclaimer in the 00920 * documentation and/or other materials provided with the distribution. 00921 * * Neither the names of Willow Garage, Inc. nor the names of its 00922 * contributors may be used to endorse or promote products derived from 00923 * this software without specific prior written permission. 00924 * 00925 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00926 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00927 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00928 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00929 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00930 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00931 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00932 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00933 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00934 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 00935 * POSSIBILITY OF SUCH DAMAGE. 00936 */ 00937 00938 #ifndef ROSCPP_SERIALIZATION_BOOST_H 00939 #define ROSCPP_SERIALIZATION_BOOST_H 00940 00941 #include "types.h" 00942 #include "time.h" 00943 00944 #include <vector> 00945 #include <string> 00946 #include <boost/shared_array.hpp> 00947 #include <boost/serialization/serialization.hpp> 00948 #include <boost/serialization/vector.hpp> 00949 #include <boost/serialization/string.hpp> 00950 00951 namespace boost { 00952 namespace serialization { 00953 00957 template<class Archive> 00958 void serialize(Archive& a, ros::Time& t, unsigned int) { 00959 a & t.sec; 00960 a & t.nsec; 00961 } 00962 00966 template<class Archive> 00967 void serialize(Archive& a, ros::Duration& d, unsigned int) { 00968 a & d.sec; 00969 a & d.nsec; 00970 } 00971 00972 } // namespace serialization 00973 } // namespace boost 00974 00975 #endif // ROSCPP_SERIALIZATION_BOOST_H 00976 /* 00977 * Copyright (C) 2010, Peter Soetens 00978 * 00979 * Redistribution and use in source and binary forms, with or without 00980 * modification, are permitted provided that the following conditions are met: 00981 * * Redistributions of source code must retain the above copyright notice, 00982 * this list of conditions and the following disclaimer. 00983 * * Redistributions in binary form must reproduce the above copyright 00984 * notice, this list of conditions and the following disclaimer in the 00985 * documentation and/or other materials provided with the distribution. 00986 * * Neither the names of Willow Garage, Inc. nor the names of its 00987 * contributors may be used to endorse or promote products derived from 00988 * this software without specific prior written permission. 00989 * 00990 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 00991 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 00992 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 00993 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 00994 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 00995 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 00996 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 00997 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 00998 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 00999 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 01000 * POSSIBILITY OF SUCH DAMAGE. 01001 */ 01002 01003 #ifndef ROSCPP_SERIALIZATION_BOOST_H 01004 #define ROSCPP_SERIALIZATION_BOOST_H 01005 01006 #include "types.h" 01007 #include "time.h" 01008 01009 #include <vector> 01010 #include <string> 01011 #include <boost/shared_array.hpp> 01012 #include <boost/serialization/serialization.hpp> 01013 #include <boost/serialization/vector.hpp> 01014 #include <boost/serialization/string.hpp> 01015 01016 namespace boost { 01017 namespace serialization { 01018 01022 template<class Archive> 01023 void serialize(Archive& a, ros::Time& t, unsigned int) { 01024 a & t.sec; 01025 a & t.nsec; 01026 } 01027 01031 template<class Archive> 01032 void serialize(Archive& a, ros::Duration& d, unsigned int) { 01033 a & d.sec; 01034 a & d.nsec; 01035 } 01036 01037 } // namespace serialization 01038 } // namespace boost 01039 01040 #endif // ROSCPP_SERIALIZATION_BOOST_H 01041 /* 01042 * Copyright (C) 2010, Peter Soetens 01043 * 01044 * Redistribution and use in source and binary forms, with or without 01045 * modification, are permitted provided that the following conditions are met: 01046 * * Redistributions of source code must retain the above copyright notice, 01047 * this list of conditions and the following disclaimer. 01048 * * Redistributions in binary form must reproduce the above copyright 01049 * notice, this list of conditions and the following disclaimer in the 01050 * documentation and/or other materials provided with the distribution. 01051 * * Neither the names of Willow Garage, Inc. nor the names of its 01052 * contributors may be used to endorse or promote products derived from 01053 * this software without specific prior written permission. 01054 * 01055 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 01056 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 01057 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 01058 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 01059 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 01060 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 01061 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 01062 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 01063 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 01064 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 01065 * POSSIBILITY OF SUCH DAMAGE. 01066 */ 01067 01068 #ifndef ROSCPP_SERIALIZATION_BOOST_H 01069 #define ROSCPP_SERIALIZATION_BOOST_H 01070 01071 #include "types.h" 01072 #include "time.h" 01073 01074 #include <vector> 01075 #include <string> 01076 #include <boost/shared_array.hpp> 01077 #include <boost/serialization/serialization.hpp> 01078 #include <boost/serialization/vector.hpp> 01079 #include <boost/serialization/string.hpp> 01080 01081 namespace boost { 01082 namespace serialization { 01083 01087 template<class Archive> 01088 void serialize(Archive& a, ros::Time& t, unsigned int) { 01089 a & t.sec; 01090 a & t.nsec; 01091 } 01092 01096 template<class Archive> 01097 void serialize(Archive& a, ros::Duration& d, unsigned int) { 01098 a & d.sec; 01099 a & d.nsec; 01100 } 01101 01102 } // namespace serialization 01103 } // namespace boost 01104 01105 #endif // ROSCPP_SERIALIZATION_BOOST_H