source: pacpussensors/trunk/Vislab/20150310_lib3dv-1.2.0/src/utils.h@ 149

Last change on this file since 149 was 136, checked in by ldecherf, 7 years ago

Doc

File size: 2.6 KB
Line 
1#ifndef _3DV_UTILS_H
2#define _3DV_UTILS_H
3
4/* 3dv-client/utils.h
5 *
6 * Copyright (C) 2013 VisLab
7 *
8 * This file is part of lib3dv; you can redistribute it and/or modify
9 * it under the terms of the GNU Lesser General Public License as published by
10 * the Free Software Foundation; either version 3 of the License, or (at
11 * your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful, but
14 * WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, see <http://www.gnu.org/licenses/>.
20 */
21
22#include "file.h"
23
24#include <lib3dv/image.h>
25#include <lib3dv/terrain.h>
26#include <lib3dv/obstacle.h>
27#include <lib3dv/classification.h>
28
29
30#include <boost/asio/ip/address.hpp>
31#include <boost/asio/io_service.hpp>
32#include <boost/filesystem/path.hpp>
33#include <boost/function.hpp>
34#include <boost/thread/condition_variable.hpp>
35#include <boost/thread/mutex.hpp>
36#include <boost/thread/thread.hpp>
37
38#include <vector>
39
40std::vector<boost::asio::ip::address> list_interface_addresses();
41
42#ifdef PCL
43class display;
44
45void image_callback_display(boost::shared_ptr<const lib3dv::image> image, uint32_t guid, display& display, uint8_t log_level);
46
47void terrain_callback_display(boost::shared_ptr<const lib3dv::terrain> terrain, uint32_t guid, display& display, uint8_t log_level);
48
49void obstacles_callback_display(boost::shared_ptr<const std::vector<lib3dv::obstacle> > obstacles, uint32_t guid, display& display, uint8_t log_level);
50
51void motion_callback_display(boost::shared_ptr<const lib3dv::motion> motion, uint32_t guid, display& display, uint8_t log_level);
52
53void classification_callback_display(boost::shared_ptr<const lib3dv::classification> classificat, uint32_t guid, display& display, uint8_t log_level);
54#endif
55
56class disk_writer;
57
58#ifdef PCL
59void signal_handler(const boost::system::error_code& error, int signal_number, boost::shared_ptr<disk_writer>& disk_writer, boost::shared_ptr<display>& display, boost::asio::io_service& sighandler);
60void timeout_callback(boost::shared_ptr<disk_writer>& disk_writer, boost::shared_ptr<display>& display, boost::asio::io_service& sighandler);
61#else
62void signal_handler(const boost::system::error_code& error, int signal_number, boost::shared_ptr<disk_writer>& disk_writer, boost::asio::io_service& sighandler);
63void timeout_callback(boost::shared_ptr<disk_writer>& disk_writer, boost::asio::io_service& sighandler);
64#endif
65
66
67#endif
Note: See TracBrowser for help on using the repository browser.