aron_conversions.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 2021
18 * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
19 * GNU General Public License
20 */
21
22#pragma once
23
26
29#include <armarx/navigation/algorithms/aron/Costmap3D.aron.generated.h>
30#include <armarx/navigation/algorithms/aron/Room.aron.generated.h>
33
35{
36 // TODO fix ADL and remove this function
37 template <class DtoT, class BoT>
38 DtoT
39 toAron(const BoT& bo)
40 {
41 DtoT dto;
42 toAron(dto, bo);
43 return dto;
44 }
45
46 // aron xml definition is not complete. "grid" and "mask" fields will be added
47 armarx::aron::data::DictPtr toAron(const Costmap& bo);
48
49 // Costmap does not provide a default c'tor
50 Costmap fromAron(const armem::wm::EntityInstance& entityInstance);
51
52 Costmap costmapFromAron(const aron::data::DictPtr& dto);
53
54 armarx::aron::data::DictPtr toAron(const orientation_aware::Costmap3D& bo);
55
56 orientation_aware::Costmap3D costmap3dFromAron(const armem::wm::EntityInstance& entityInstance);
57
58 namespace arondto
59 {
60 class ShortestPathFasterAlgorithmParams;
61 }
62
63 void toAron(arondto::ShortestPathFasterAlgorithmParams& dto,
65
66 void fromAron(const arondto::ShortestPathFasterAlgorithmParams& dto,
68
69
70 void toAron(arondto::Room& dto, const Room& bo);
71 void fromAron(const arondto::Room& dto, Room& bo);
72
73
74} // namespace armarx::navigation::algorithms
Client-side working entity instance.
std::shared_ptr< Dict > DictPtr
Definition Dict.h:42
This file is part of ArmarX.
armarx::aron::data::DictPtr toAron(const Costmap &bo)
Costmap costmapFromAron(const aron::data::DictPtr &dto)
Costmap fromAron(const armem::wm::EntityInstance &entityInstance)
orientation_aware::Costmap3D costmap3dFromAron(const armem::wm::EntityInstance &entityInstance)