util.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  * @author Christian R. G. Dreher ( c dot dreher at kit dot edu )
18  * @date 2021
19  * @copyright http://www.gnu.org/licenses/gpl-2.0.txt
20  * GNU General Public License
21  */
22 
23 #pragma once
24 
25 #include <VirtualRobot/VirtualRobot.h>
26 
30 
32 {
34  const std::vector<std::string>& datasetBlacklist);
35 
36  std::optional<objpose::ObjectPose> findObject(const objpose::ObjectPoseSeq& objectPoses,
37  const armarx::ObjectID& objectID);
38 
39  VirtualRobot::ManipulationObjectPtr asManipulationObject(const objpose::ObjectPose& objectPose);
40  VirtualRobot::SceneObjectSetPtr asSceneObjects(const objpose::ObjectPoseSeq& objectPoses);
41  VirtualRobot::SceneObjectSetPtr
42  asSceneObjects(const armem::vision::OccupancyGrid& occupancyGrid,
43  const OccupancyGridHelper::Params& params);
44 
46 
47  VirtualRobot::SceneObjectPtr asSceneObject(const objpose::ObjectPose& objectPose);
48 } // namespace armarx::navigation::util
armarx::navigation::util::filterObjects
objpose::ObjectPoseSeq filterObjects(objpose::ObjectPoseSeq objects, const std::vector< std::string > &datasetBlacklist)
Definition: util.cpp:49
armarx::ObjectID
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition: ObjectID.h:11
armarx::navigation::util
This file is part of ArmarX.
Definition: geometry.cpp:8
armarx::objpose::ObjectPoseSeq
std::vector< ObjectPose > ObjectPoseSeq
Definition: forward_declarations.h:20
armarx::navigation::util::asSceneObject
VirtualRobot::SceneObjectPtr asSceneObject(const objpose::ObjectPose &objectPose)
Definition: util.cpp:125
armarx::OccupancyGridHelper::Params
detail::OccupancyGridHelperParams Params
Definition: OccupancyGridHelper.h:26
armarx::navigation::util::findObject
std::optional< objpose::ObjectPose > findObject(const objpose::ObjectPoseSeq &objectPoses, const armarx::ObjectID &objectID)
Definition: util.cpp:74
ObjectPose.h
armarx::navigation::util::asSceneObjects
VirtualRobot::SceneObjectSetPtr asSceneObjects(const objpose::ObjectPoseSeq &objectPoses)
Definition: util.cpp:106
armarx::navigation::util::asManipulationObject
VirtualRobot::ManipulationObjectPtr asManipulationObject(const objpose::ObjectPose &objectPose)
Definition: util.cpp:89
types.h
OccupancyGridHelper.h
armarx::navigation::util::staticObjects
objpose::ObjectPoseSeq staticObjects(objpose::ObjectPoseSeq objects)
Definition: util.cpp:64
scene3D::SceneObjectPtr
boost::intrusive_ptr< SceneObject > SceneObjectPtr
Definition: PointerDefinitions.h:40