sick_generic_callback.cpp
Go to the documentation of this file.
1 /*
2 * Copyright (C) 2022, Ing.-Buero Dr. Michael Lehning, Hildesheim
3 * Copyright (C) 2022, SICK AG, Waldkirch
4 * All rights reserved.
5 *
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *
18 *
19 * All rights reserved.
20 *
21 * Redistribution and use in source and binary forms, with or without
22 * modification, are permitted provided that the following conditions are met:
23 *
24 * * Redistributions of source code must retain the above copyright
25 * notice, this list of conditions and the following disclaimer.
26 * * Redistributions in binary form must reproduce the above copyright
27 * notice, this list of conditions and the following disclaimer in the
28 * documentation and/or other materials provided with the distribution.
29 * * Neither the name of Osnabrueck University nor the names of its
30 * contributors may be used to endorse or promote products derived from
31 * this software without specific prior written permission.
32 * * Neither the name of SICK AG nor the names of its
33 * contributors may be used to endorse or promote products derived from
34 * this software without specific prior written permission
35 * * Neither the name of Ing.-Buero Dr. Michael Lehning nor the names of its
36 * contributors may be used to endorse or promote products derived from
37 * this software without specific prior written permission
38 *
39 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
40 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
41 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
42 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
43 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
44 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
45 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
46 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
47 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
48 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
49 * POSSIBILITY OF SUCH DAMAGE.
50 *
51 * Authors:
52 * Michael Lehning <michael.lehning@lehning.de>
53 *
54 */
56 
66 
67 namespace sick_scan_xd
68 {
70  {
71  s_cartesian_poincloud_callback_handler.addListener(handle, listener);
72  }
73 
75  {
76  s_cartesian_poincloud_callback_handler.notifyListener(handle, msg);
77  }
78 
80  {
81  s_cartesian_poincloud_callback_handler.removeListener(handle, listener);
82  }
83 
85  {
86  return s_cartesian_poincloud_callback_handler.isListenerRegistered(handle, listener);
87  }
88 
90  {
91  s_polar_poincloud_callback_handler.addListener(handle, listener);
92  }
93 
95  {
96  s_polar_poincloud_callback_handler.notifyListener(handle, msg);
97  }
98 
100  {
101  s_polar_poincloud_callback_handler.removeListener(handle, listener);
102  }
103 
105  {
106  return s_polar_poincloud_callback_handler.isListenerRegistered(handle, listener);
107  }
108 
109  void addImuListener(rosNodePtr handle, ImuCallback listener)
110  {
111  s_imu_callback_handler.addListener(handle, listener);
112  }
113 
115  {
116  s_imu_callback_handler.notifyListener(handle, msg);
117  }
118 
119  void removeImuListener(rosNodePtr handle, ImuCallback listener)
120  {
121  s_imu_callback_handler.removeListener(handle, listener);
122  }
123 
125  {
126  return s_imu_callback_handler.isListenerRegistered(handle, listener);
127  }
128 
130  {
131  s_lidoutputstate_callback_handler.addListener(handle, listener);
132  }
133 
135  {
136  s_lidoutputstate_callback_handler.notifyListener(handle, msg);
137  }
138 
140  {
141  s_lidoutputstate_callback_handler.removeListener(handle, listener);
142  }
143 
145  {
146  return s_lidoutputstate_callback_handler.isListenerRegistered(handle, listener);
147  }
148 
150  {
151  s_lferec_callback_handler.addListener(handle, listener);
152  }
153 
155  {
156  s_lferec_callback_handler.notifyListener(handle, msg);
157  }
158 
160  {
161  s_lferec_callback_handler.removeListener(handle, listener);
162  }
163 
165  {
166  return s_lferec_callback_handler.isListenerRegistered(handle, listener);
167  }
168 
170  {
171  s_ldmrsobjectarray_callback_handler.addListener(handle, listener);
172  }
173 
175  {
176  s_ldmrsobjectarray_callback_handler.notifyListener(handle, msg);
177  }
178 
180  {
181  s_ldmrsobjectarray_callback_handler.removeListener(handle, listener);
182  }
183 
185  {
186  return s_ldmrsobjectarray_callback_handler.isListenerRegistered(handle, listener);
187  }
188 
190  {
191  s_radarscan_callback_handler.addListener(handle, listener);
192  }
193 
195  {
196  s_radarscan_callback_handler.notifyListener(handle, msg);
197  }
198 
200  {
201  s_radarscan_callback_handler.removeListener(handle, listener);
202  }
203 
205  {
206  return s_radarscan_callback_handler.isListenerRegistered(handle, listener);
207  }
208 
210  {
211  s_visualizationmarker_callback_handler.addListener(handle, listener);
212  }
213 
215  {
216  s_visualizationmarker_callback_handler.notifyListener(handle, msg);
217  }
218 
220  {
221  s_visualizationmarker_callback_handler.removeListener(handle, listener);
222  }
223 
225  {
226  return s_visualizationmarker_callback_handler.isListenerRegistered(handle, listener);
227  }
228 
230  {
231  s_navposelandmark_callback_handler.addListener(handle, listener);
232  }
233 
235  {
236  s_navposelandmark_callback_handler.notifyListener(handle, msg);
237  }
238 
240  {
241  s_navposelandmark_callback_handler.removeListener(handle, listener);
242  }
243 
245  {
246  return s_navposelandmark_callback_handler.isListenerRegistered(handle, listener);
247  }
248 
249 } // namespace sick_scan_xd
sick_scan_xd::NAV350mNPOSDataCallback
void(* NAV350mNPOSDataCallback)(rosNodePtr handle, const NAV350mNPOSData *msg)
Definition: sick_generic_callback.h:97
sick_scan_xd::SickCallbackHandler
Definition: sick_generic_callback.h:147
s_visualizationmarker_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, ros_visualization_msgs::MarkerArray > s_visualizationmarker_callback_handler
Definition: sick_generic_callback.cpp:64
sensor_msgs::Imu
::sensor_msgs::Imu_< std::allocator< void > > Imu
Definition: Imu.h:93
msg
msg
sick_scan_xd::removeNavPoseLandmarkListener
void removeNavPoseLandmarkListener(rosNodePtr handle, NAV350mNPOSDataCallback listener)
Definition: sick_generic_callback.cpp:239
sick_scan_xd::notifyLdmrsObjectArrayListener
void notifyLdmrsObjectArrayListener(rosNodePtr handle, const sick_scan_msg::SickLdmrsObjectArray *msg)
Definition: sick_generic_callback.cpp:174
sick_scan_xd::notifyLIDoutputstateListener
void notifyLIDoutputstateListener(rosNodePtr handle, const sick_scan_msg::LIDoutputstateMsg *msg)
Definition: sick_generic_callback.cpp:134
s_polar_poincloud_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_xd::PointCloud2withEcho > s_polar_poincloud_callback_handler
Definition: sick_generic_callback.cpp:58
s_imu_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, ros_sensor_msgs::Imu > s_imu_callback_handler
Definition: sick_generic_callback.cpp:59
s_radarscan_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_msg::RadarScan > s_radarscan_callback_handler
Definition: sick_generic_callback.cpp:63
s_lidoutputstate_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_msg::LIDoutputstateMsg > s_lidoutputstate_callback_handler
Definition: sick_generic_callback.cpp:60
sick_scan_xd::removeLIDoutputstateListener
void removeLIDoutputstateListener(rosNodePtr handle, LIDoutputstateCallback listener)
Definition: sick_generic_callback.cpp:139
sick_scan_xd::isImuListenerRegistered
bool isImuListenerRegistered(rosNodePtr handle, ImuCallback listener)
Definition: sick_generic_callback.cpp:124
sick_scan_xd::removePolarPointcloudListener
void removePolarPointcloudListener(rosNodePtr handle, PointCloud2Callback listener)
Definition: sick_generic_callback.cpp:99
sick_scan_xd::addVisualizationMarkerListener
void addVisualizationMarkerListener(rosNodePtr handle, VisualizationMarkerCallback listener)
Definition: sick_generic_callback.cpp:209
sick_scan_xd::isLdmrsObjectArrayListenerRegistered
bool isLdmrsObjectArrayListenerRegistered(rosNodePtr handle, SickLdmrsObjectArrayCallback listener)
Definition: sick_generic_callback.cpp:184
sick_scan_xd::notifyPolarPointcloudListener
void notifyPolarPointcloudListener(rosNodePtr handle, const sick_scan_xd::PointCloud2withEcho *msg)
Definition: sick_generic_callback.cpp:94
sick_scan_xd::notifyImuListener
void notifyImuListener(rosNodePtr handle, const ros_sensor_msgs::Imu *msg)
Definition: sick_generic_callback.cpp:114
s_ldmrsobjectarray_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_msg::SickLdmrsObjectArray > s_ldmrsobjectarray_callback_handler
Definition: sick_generic_callback.cpp:62
sick_scan_xd::PointCloud2withEcho
Definition: sick_generic_callback.h:76
sick_generic_callback.h
sick_scan_xd::removeLFErecListener
void removeLFErecListener(rosNodePtr handle, LFErecCallback listener)
Definition: sick_generic_callback.cpp:159
sick_scan_xd::NAV350mNPOSData
Definition: sick_nav_scandata.h:200
sick_scan_xd::removeVisualizationMarkerListener
void removeVisualizationMarkerListener(rosNodePtr handle, VisualizationMarkerCallback listener)
Definition: sick_generic_callback.cpp:219
sick_scan_xd
Definition: abstract_parser.cpp:65
sick_scan_xd::addRadarScanListener
void addRadarScanListener(rosNodePtr handle, RadarScanCallback listener)
Definition: sick_generic_callback.cpp:189
sick_scan_xd::SickLdmrsObjectArray
::sick_scan_xd::SickLdmrsObjectArray_< std::allocator< void > > SickLdmrsObjectArray
Definition: SickLdmrsObjectArray.h:56
sick_scan_xd::addLIDoutputstateListener
void addLIDoutputstateListener(rosNodePtr handle, LIDoutputstateCallback listener)
Definition: sick_generic_callback.cpp:129
sick_scan_xd::LFErecMsg
::sick_scan_xd::LFErecMsg_< std::allocator< void > > LFErecMsg
Definition: LFErecMsg.h:61
sick_scan_xd::addLFErecListener
void addLFErecListener(rosNodePtr handle, LFErecCallback listener)
Definition: sick_generic_callback.cpp:149
sick_scan_xd::removeRadarScanListener
void removeRadarScanListener(rosNodePtr handle, RadarScanCallback listener)
Definition: sick_generic_callback.cpp:199
sick_scan_xd::PointCloud2Callback
void(* PointCloud2Callback)(rosNodePtr handle, const PointCloud2withEcho *msg)
Definition: sick_generic_callback.h:90
sick_scan_xd::notifyVisualizationMarkerListener
void notifyVisualizationMarkerListener(rosNodePtr handle, const ros_visualization_msgs::MarkerArray *msg)
Definition: sick_generic_callback.cpp:214
sick_scan_xd::isNavPoseLandmarkListenerRegistered
bool isNavPoseLandmarkListenerRegistered(rosNodePtr handle, NAV350mNPOSDataCallback listener)
Definition: sick_generic_callback.cpp:244
sick_scan_xd::LFErecCallback
void(* LFErecCallback)(rosNodePtr handle, const sick_scan_msg::LFErecMsg *msg)
Definition: sick_generic_callback.h:93
sick_scan_xd::removeLdmrsObjectArrayListener
void removeLdmrsObjectArrayListener(rosNodePtr handle, SickLdmrsObjectArrayCallback listener)
Definition: sick_generic_callback.cpp:179
visualization_msgs::MarkerArray
::visualization_msgs::MarkerArray_< std::allocator< void > > MarkerArray
Definition: MarkerArray.h:50
sick_scan_xd::addImuListener
void addImuListener(rosNodePtr handle, ImuCallback listener)
Definition: sick_generic_callback.cpp:109
sick_scan_xd::addCartesianPointcloudListener
void addCartesianPointcloudListener(rosNodePtr handle, PointCloud2Callback listener)
Definition: sick_generic_callback.cpp:69
sick_scan_xd::LIDoutputstateMsg
::sick_scan_xd::LIDoutputstateMsg_< std::allocator< void > > LIDoutputstateMsg
Definition: LIDoutputstateMsg.h:110
sick_scan_xd::isCartesianPointcloudListenerRegistered
bool isCartesianPointcloudListenerRegistered(rosNodePtr handle, PointCloud2Callback listener)
Definition: sick_generic_callback.cpp:84
sick_scan_xd::notifyLFErecListener
void notifyLFErecListener(rosNodePtr handle, const sick_scan_msg::LFErecMsg *msg)
Definition: sick_generic_callback.cpp:154
ros::NodeHandle
sick_scan_xd::RadarScanCallback
void(* RadarScanCallback)(rosNodePtr handle, const sick_scan_msg::RadarScan *msg)
Definition: sick_generic_callback.h:95
sick_scan_xd::VisualizationMarkerCallback
void(* VisualizationMarkerCallback)(rosNodePtr handle, const ros_visualization_msgs::MarkerArray *msg)
Definition: sick_generic_callback.h:96
s_navposelandmark_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_xd::NAV350mNPOSData > s_navposelandmark_callback_handler
Definition: sick_generic_callback.cpp:65
sick_scan_xd::isLIDoutputstateListenerRegistered
bool isLIDoutputstateListenerRegistered(rosNodePtr handle, LIDoutputstateCallback listener)
Definition: sick_generic_callback.cpp:144
sick_scan_xd::removeCartesianPointcloudListener
void removeCartesianPointcloudListener(rosNodePtr handle, PointCloud2Callback listener)
Definition: sick_generic_callback.cpp:79
s_cartesian_poincloud_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_xd::PointCloud2withEcho > s_cartesian_poincloud_callback_handler
Definition: sick_generic_callback.cpp:57
sick_scan_xd::removeImuListener
void removeImuListener(rosNodePtr handle, ImuCallback listener)
Definition: sick_generic_callback.cpp:119
sick_scan_xd::notifyRadarScanListener
void notifyRadarScanListener(rosNodePtr handle, const sick_scan_msg::RadarScan *msg)
Definition: sick_generic_callback.cpp:194
s_lferec_callback_handler
static sick_scan_xd::SickCallbackHandler< rosNodePtr, sick_scan_msg::LFErecMsg > s_lferec_callback_handler
Definition: sick_generic_callback.cpp:61
sick_scan_xd::ImuCallback
void(* ImuCallback)(rosNodePtr handle, const ros_sensor_msgs::Imu *msg)
Definition: sick_generic_callback.h:91
sick_scan_xd::isRadarScanListenerRegistered
bool isRadarScanListenerRegistered(rosNodePtr handle, RadarScanCallback listener)
Definition: sick_generic_callback.cpp:204
sick_scan_xd::LIDoutputstateCallback
void(* LIDoutputstateCallback)(rosNodePtr handle, const sick_scan_msg::LIDoutputstateMsg *msg)
Definition: sick_generic_callback.h:92
sick_scan_xd::addNavPoseLandmarkListener
void addNavPoseLandmarkListener(rosNodePtr handle, NAV350mNPOSDataCallback listener)
Definition: sick_generic_callback.cpp:229
sick_scan_xd::RadarScan
::sick_scan_xd::RadarScan_< std::allocator< void > > RadarScan
Definition: RadarScan.h:68
sick_scan_xd::notifyCartesianPointcloudListener
void notifyCartesianPointcloudListener(rosNodePtr handle, const sick_scan_xd::PointCloud2withEcho *msg)
Definition: sick_generic_callback.cpp:74
sick_scan_xd::addPolarPointcloudListener
void addPolarPointcloudListener(rosNodePtr handle, PointCloud2Callback listener)
Definition: sick_generic_callback.cpp:89
sick_scan_xd::isPolarPointcloudListenerRegistered
bool isPolarPointcloudListenerRegistered(rosNodePtr handle, PointCloud2Callback listener)
Definition: sick_generic_callback.cpp:104
sick_scan_xd::isLFErecListenerRegistered
bool isLFErecListenerRegistered(rosNodePtr handle, LFErecCallback listener)
Definition: sick_generic_callback.cpp:164
sick_scan_xd::SickLdmrsObjectArrayCallback
void(* SickLdmrsObjectArrayCallback)(rosNodePtr handle, const sick_scan_msg::SickLdmrsObjectArray *msg)
Definition: sick_generic_callback.h:94
sick_scan_xd::isVisualizationMarkerListenerRegistered
bool isVisualizationMarkerListenerRegistered(rosNodePtr handle, VisualizationMarkerCallback listener)
Definition: sick_generic_callback.cpp:224
sick_scan_xd::notifyNavPoseLandmarkListener
void notifyNavPoseLandmarkListener(rosNodePtr handle, NAV350mNPOSData *msg)
Definition: sick_generic_callback.cpp:234
sick_scan_xd::addLdmrsObjectArrayListener
void addLdmrsObjectArrayListener(rosNodePtr handle, SickLdmrsObjectArrayCallback listener)
Definition: sick_generic_callback.cpp:169


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