SMACC2
Loading...
Searching...
No Matches
cb_survey_table.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
19
20#include <string>
21
22namespace cl_rgb
23{
24
26{
27 std::string camera = "cam_head";
29 int minBlobs = 0; // fewer than this is a failure
30 double waitS = 5.0; // wall time to wait for a first image, its calibration and its pose
31};
32
33// Looks at the table once and records what lies on it: the blobs of the latest image, each
34// with its place on the table, its size, its direction and its colour. The result is kept
35// by CpSceneSurvey. Success when at least minBlobs were found, failure otherwise.
37{
38public:
39 explicit CbSurveyTable(const SurveyTableParams & params = SurveyTableParams());
40
41 void setParams(const SurveyTableParams & params) { params_ = params; }
42
43 void onEntry() override;
44 void onExit() override {}
45
46private:
48};
49
50} // namespace cl_rgb
SurveyTableParams params_
void setParams(const SurveyTableParams &params)
CbSurveyTable(const SurveyTableParams &params=SurveyTableParams())