utils.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 * @package RobotAPI::ArmarXObjects::armem_objects
17 * @author Rainer Kartmann ( rainer dot kartmann at kit dot edu )
18 * @date 2022
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
29#include <RobotAPI/libraries/armem_objects/aron/FamiliarObjectInstance.aron.generated.h>
30
32{
33
34 armem::MemoryID reconstructObjectInstanceID(const objpose::ObjectPose& objectPose);
35
36 /**
37 * @brief createFamiliarObjectInstanceFromManipulationObject Create a FamiliarObjectInstance from a known ManipulationObject.
38 *
39 * @details This function creates a FamiliarObjectInstance from the provided ManipulationObject by sampling the mesh points.
40 *
41 * @param manipulationObject The ManipulationObject to create the FamiliarObjectInstance from.
42 * @param objectID The ObjectID to assign to the FamiliarObjectInstance.
43 *
44 * @return The created FamiliarObjectInstance.
45 */
46 armarx::armem::arondto::FamiliarObjectInstance
48 const VirtualRobot::ManipulationObject& manipulationObject,
49 const armarx::ObjectID& objectID);
50
51 pcl::PointCloud<pcl::PointXYZRGBA>
52 samplePointCloudFromTriMesh(const VirtualRobot::TriMeshModel& mesh, int sampleCount);
53
54
55} // namespace armarx::armem::objects
armarx::armem::arondto::FamiliarObjectInstance createFamiliarObjectInstanceFromManipulationObject(const VirtualRobot::ManipulationObject &manipulationObject, const armarx::ObjectID &objectID)
createFamiliarObjectInstanceFromManipulationObject Create a FamiliarObjectInstance from a known Manip...
Definition utils.cpp:115
pcl::PointCloud< pcl::PointXYZRGBA > samplePointCloudFromTriMesh(const VirtualRobot::TriMeshModel &mesh, int sampleCount)
armem::MemoryID reconstructObjectInstanceID(const objpose::ObjectPose &objectPose)
Definition utils.cpp:104