RoomNavigationTargetCreator.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 Fabian Reister ( fabian dot reister at kit dot edu )
17 * @date 2023
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
27
28namespace armarx::viz
29{
30 class Client;
31}
32
34{
35
37 {
38 public:
39 struct Params
40 {
41 float distanceToRoomEntry = 1000;
42 };
43
45
46 struct Result
47 {
49 core::Position global_P_robot; // where the robot should be placed
50 };
51
52 Result getClosestPositionOutsideOfRoom(const algorithms::Costmap& obstacleDistancesCostmap,
53 const algorithms::Room& room,
54 const core::Position& global_P_robot,
55 viz::Client* arviz = nullptr) const;
56
57 protected:
58 private:
59 const Params params;
60 };
61} // namespace armarx::navigation::rooms
Result getClosestPositionOutsideOfRoom(const algorithms::Costmap &obstacleDistancesCostmap, const algorithms::Room &room, const core::Position &global_P_robot, viz::Client *arviz=nullptr) const
Eigen::Vector3f Position
Definition basic_types.h:36
This file is part of ArmarX.