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 
48 
49  VirtualRobot::SceneObjectPtr asSceneObject(const objpose::ObjectPose& objectPose);
50 } // namespace armarx::navigation::util
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:165
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:114
armarx::navigation::util::nonArticulatedObjects
objpose::ObjectPoseSeq nonArticulatedObjects(objpose::ObjectPoseSeq objects)
Definition: util.cpp:77
armarx::navigation::util::articulatedObjects
objpose::ObjectPoseSeq articulatedObjects(objpose::ObjectPoseSeq objects)
Definition: util.cpp:95
ObjectPose.h
armarx::navigation::util::asSceneObjects
VirtualRobot::SceneObjectSetPtr asSceneObjects(const objpose::ObjectPoseSeq &objectPoses)
Definition: util.cpp:146
armarx::navigation::util::asManipulationObject
VirtualRobot::ManipulationObjectPtr asManipulationObject(const objpose::ObjectPose &objectPose)
Definition: util.cpp:129
types.h
OccupancyGridHelper.h
armarx::navigation::util::staticObjects
objpose::ObjectPoseSeq staticObjects(objpose::ObjectPoseSeq objects)
Definition: util.cpp:67
scene3D::SceneObjectPtr
boost::intrusive_ptr< SceneObject > SceneObjectPtr
Definition: PointerDefinitions.h:40
armarx::navigation::util::filterObjects
objpose::ObjectPoseSeq filterObjects(objpose::ObjectPoseSeq objects, const std::vector< std::string > &datasetDisableList)
Definition: util.cpp:50