HandoverCostmapBuilder.h
Go to the documentation of this file.
1/**
2 * This file is part of ArmarX.
3 *
4 * ArmarX is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
7 *
8 * ArmarX is distributed in the hope that it will be useful, but
9 * WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
12 *
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
15 *
16 * @author ( )
17 * @date 2026
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
24#include <optional>
25#include <vector>
26
29
31
33{
34
36 {
37 public:
39 {
40 // radial distance from human to handover location
41 float handoverDistanceMin = 700.0f; // in mm
42 float handoverDistanceMax = 1500.0f; // in mm
43 float handoverDistancePreference = 1000.0f; // in mm
44
45 // angular sector in front of human where handover location is preferred
46 float handoverAngleMin = -30.0f; // in degrees
47 float handoverAngleMax = 30.0f; // in degrees
48 float handoverAnglePreference = 0; // in degrees
49
50 // scene bound params from human position
51 float humanSceneBoundOffsetBehind = 1000.0f; // in mm
52 float humanSceneBoundOffsetFront = 2000.0f; // in mm
53 float humanSceneBoundOffsetSideLeft = 1500.0f; // in mm
54 float humanSceneBoundOffsetSideRight = 1500.0f; // in mm
55 };
56
58 {
59 //! information about the human for handover
61
62 //! information about other humans in the scene
63 std::vector<armarx::armem::human::HumanPose> otherHumans;
64
65 //! distance to obstacles in the environment
67 };
68
69 HandoverCostmapBuilder(const Costmap::Parameters& costmapParameters,
70 const Parameters& handoverParameters);
71
72 [[nodiscard]] std::optional<Costmap> create(const SceneInformation& sceneInfo);
73
74 std::optional<core::Pose2D> getOptimalHandoverPose(const SceneInformation& sceneInfo);
75
76 protected:
77 private:
78 const navigation::algorithms::Costmap::Parameters costmapParameters_;
79 const Parameters handoverParameters_;
80 };
81
82} // namespace armarx::navigation::algorithms::costmap
std::optional< core::Pose2D > getOptimalHandoverPose(const SceneInformation &sceneInfo)
std::optional< Costmap > create(const SceneInformation &sceneInfo)
HandoverCostmapBuilder(const Costmap::Parameters &costmapParameters, const Parameters &handoverParameters)
armarx::armem::human::HumanPose humanPose
information about the human for handover
std::vector< armarx::armem::human::HumanPose > otherHumans
information about other humans in the scene