abstract_parser.h
Go to the documentation of this file.
1 #include "sick_scan/sick_scan_base.h" /* Base definitions included in all header files, added by add_sick_scan_base_header.py. Do not edit this line. */
2 /*
3  * Copyright (C) 2013, Osnabrueck University
4  * All rights reserved.
5  *
6  * Redistribution and use in source and binary forms, with or without
7  * modification, are permitted provided that the following conditions are met:
8  *
9  * * Redistributions of source code must retain the above copyright
10  * notice, this list of conditions and the following disclaimer.
11  * * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the distribution.
14  * * Neither the name of Osnabrueck University nor the names of its
15  * contributors may be used to endorse or promote products derived from
16  * this software without specific prior written permission.
17  *
18  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
19  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
22  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28  * POSSIBILITY OF SUCH DAMAGE.
29  *
30  * Created on: 15.08.2013
31  *
32  * Author: Martin Günther <mguenthe@uos.de>
33  *
34  */
35 
36 #ifndef ABSTRACT_PARSER_H_
37 #define ABSTRACT_PARSER_H_
38 
40 
41 namespace sick_scan_xd
42 {
43 
45 {
47  , ExitError = 1 // non-fatal error, retry
48  , ExitFatal = 2 // fatal error, exit
49 };
50 
52  {
53  public:
55 
56  virtual ~AbstractParser();
57 
58  virtual int parse_datagram(char *datagram, size_t datagram_length, SickScanConfig &config,
59  ros_sensor_msgs::LaserScan &msg, int &numEchos, int &echoMask) = 0;
60  };
61 
62 } /* namespace sick_scan_xd */
63 #endif /* ABSTRACT_PARSER_H_ */
msg
msg
sick_scan_xd::AbstractParser::~AbstractParser
virtual ~AbstractParser()
Definition: abstract_parser.cpp:72
sick_scan_xd::ExitFatal
@ ExitFatal
Definition: abstract_parser.h:48
sick_scan_xd
Definition: abstract_parser.cpp:65
sick_ros_wrapper.h
sensor_msgs::LaserScan
::sensor_msgs::LaserScan_< std::allocator< void > > LaserScan
Definition: LaserScan.h:94
sick_scan_xd::SickScanConfig
Definition: sick_ros_wrapper.h:512
sick_scan_xd::ExitSuccess
@ ExitSuccess
Definition: abstract_parser.h:46
sick_scan_xd::AbstractParser
Definition: abstract_parser.h:51
sick_scan_xd::ExitCode
ExitCode
Definition: abstract_parser.h:44
sick_scan_base.h
sick_scan_xd::AbstractParser::parse_datagram
virtual int parse_datagram(char *datagram, size_t datagram_length, SickScanConfig &config, ros_sensor_msgs::LaserScan &msg, int &numEchos, int &echoMask)=0
config
config
sick_scan_xd::ExitError
@ ExitError
Definition: abstract_parser.h:47
sick_scan_xd::AbstractParser::AbstractParser
AbstractParser()
Definition: abstract_parser.cpp:68


sick_scan_xd
Author(s): Michael Lehning , Jochen Sprickerhof , Martin Günther
autogenerated on Fri Oct 25 2024 02:47:07