SMACC2
Loading...
Searching...
No Matches
cl_rgb.hpp
Go to the documentation of this file.
1// Copyright 2026 RobosoftAI 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#pragma once
16
17#include <smacc2/smacc.hpp>
18
24
25#include <vector>
26
27namespace cl_rgb
28{
29
31{
32 std::vector<CameraParams> cameras; // one CpCamera is created per entry, under its name
35};
36
37// Vision from colour images alone. The client only assembles the components: the cameras,
38// the table they look at, the segmenter and the place where a survey's result is kept.
40{
41public:
42 explicit ClRgb(const RgbParams & params);
43 ~ClRgb() override;
44
45 template <typename TOrthogonal, typename TClient>
47 {
48 // the transform tree first: every camera resolves it in onInitialize
50 for (const auto & camera : params_.cameras)
51 {
53 }
57 }
58
59private:
61};
62
63} // namespace cl_rgb
void onComponentInitialization()
Definition cl_rgb.hpp:46
RgbParams params_
Definition cl_rgb.hpp:60
ClRgb(const RgbParams &params)
Definition cl_rgb.cpp:20
~ClRgb() override
Definition cl_rgb.cpp:22
SmaccComponentType * createComponent(const TArgs &... targs)
SmaccComponentType * createNamedComponent(const std::string &name, const TArgs &... targs)
SegmenterParams segmenter
Definition cl_rgb.hpp:34
TableParams table
Definition cl_rgb.hpp:33
std::vector< CameraParams > cameras
Definition cl_rgb.hpp:32