Apollo 10.0
自动驾驶开放平台
smartereye_handler.cc
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2020 The Apollo Authors. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *****************************************************************************/
17
18#include <math.h>
19#include <iostream>
20#include <string>
21
22#include "third_party/camera_library/smartereye/include/LdwDataInterface.h"
23#include "third_party/camera_library/smartereye/include/disparityconvertor.h"
24#include "third_party/camera_library/smartereye/include/frameid.h"
25#include "third_party/camera_library/smartereye/include/obstacleData.h"
26#include "third_party/camera_library/smartereye/include/satpext.h"
27
28namespace apollo {
29namespace drivers {
30namespace smartereye {
31
33 : mName(name) {
34 pCallbackFunc = nullptr;
35}
36
38 pCallbackFunc = nullptr;
39}
40
42 pCallbackFunc = ptr;
43
44 return true;
45}
46
47void SmartereyeHandler::handleRawFrame(const RawImageFrame *rawFrame) {
48 pCallbackFunc(const_cast<RawImageFrame *>(rawFrame));
49}
50
51} // namespace smartereye
52} // namespace drivers
53} // namespace apollo
void handleRawFrame(const RawImageFrame *rawFrame)
std::function< bool(RawImageFrame *rawFrame)> CallbackFunc
class register implement
Definition arena_queue.h:37