Autoware.Auto
system_wrapper.hpp
Go to the documentation of this file.
1
// Copyright 2020 Apex.AI, Inc.
2
//
3
// Licensed under the Apache License, Version 2.0 (the "License");
4
// you may not use this file except in compliance with the License.
5
// You may obtain a copy of the License at
6
//
7
// http://www.apache.org/licenses/LICENSE-2.0
8
//
9
// Unless required by applicable law or agreed to in writing, software
10
// distributed under the License is distributed on an "AS IS" BASIS,
11
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12
// See the License for the specific language governing permissions and
13
// limitations under the License.
14
15
#ifndef SPINNAKER_CAMERA_DRIVER__SYSTEM_WRAPPER_HPP_
16
#define SPINNAKER_CAMERA_DRIVER__SYSTEM_WRAPPER_HPP_
17
18
#ifndef DOXYGEN_SKIP
19
#include <Spinnaker.h>
20
#endif
21
22
#include <
spinnaker_camera_driver/camera_list_wrapper.hpp
>
23
#include <
spinnaker_camera_driver/visibility_control.hpp
>
24
25
#include <memory>
26
#include <vector>
27
28
namespace
autoware
29
{
30
namespace
drivers
31
{
32
namespace
camera
33
{
34
namespace
spinnaker
35
{
36
38
class
SPINNAKER_CAMERA_PUBLIC
SystemWrapper
39
{
40
public
:
42
SystemWrapper
();
43
45
~
SystemWrapper
();
46
48
CameraListWrapper
& create_cameras(
49
const
CameraSettings
& camera_settings);
50
52
CameraListWrapper
& create_cameras(
53
const
std::vector<CameraSettings> & camera_settings);
54
56
CameraListWrapper
& get_cameras();
57
58
private
:
59
Spinnaker::SystemPtr m_system{};
60
std::unique_ptr<CameraListWrapper> m_camera_list{};
61
};
62
63
}
// namespace spinnaker
64
}
// namespace camera
65
}
// namespace drivers
66
}
// namespace autoware
67
68
#endif // SPINNAKER_CAMERA_DRIVER__SYSTEM_WRAPPER_HPP_
autoware::drivers::camera::spinnaker::CameraSettings
Encapsulate settings that make sense to pass to a camera.
Definition:
camera_settings.hpp:35
autoware
This file defines the lanelet2_map_provider_node class.
Definition:
quick_sort.hpp:24
visibility_control.hpp
autoware::drivers::camera::spinnaker::SystemWrapper
A class that wraps the Spinnaker SDK system pointer and handles its correct release.
Definition:
system_wrapper.hpp:38
camera_list_wrapper.hpp
autoware::drivers::camera::spinnaker::CameraListWrapper
Definition:
camera_list_wrapper.hpp:49