Scene.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::ObjectMemory
17 * @author Rainer Kartmann ( rainer dot kartmann 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#pragma once
23
24#include <map>
25#include <optional>
26#include <string>
27#include <vector>
28
29#include <Eigen/Core>
30#include <Eigen/Geometry>
31
33
34namespace armarx::objects
35{
36
38 {
39 std::string className;
40 std::string instanceName;
41 std::string collection;
42
43 Eigen::Vector3f position = Eigen::Vector3f::Zero();
44 Eigen::Quaternionf orientation = Eigen::Quaternionf::Identity();
45
46 std::optional<bool> isStatic;
47 std::map<std::string, float> jointValues;
48
49 ObjectID getClassID() const;
50 ObjectID getClassID(ObjectFinder& finder) const;
51 ObjectID getObjectID() const;
52 ObjectID getObjectID(ObjectFinder& finder) const;
53 };
54
55 struct Scene
56 {
57 std::vector<SceneObject> objects;
58 };
59
60} // namespace armarx::objects
Used to find objects in the ArmarX objects repository [1] (formerly [2]).
A known object ID of the form "Dataset/ClassName" or "Dataset/ClassName/InstanceName".
Definition ObjectID.h:11
Quaternion< float, 0 > Quaternionf
ObjectID getObjectID() const
Definition Scene.cpp:30
std::optional< bool > isStatic
Definition Scene.h:46
Eigen::Quaternionf orientation
Definition Scene.h:44
ObjectID getClassID() const
Definition Scene.cpp:10
std::map< std::string, float > jointValues
Definition Scene.h:47
std::string instanceName
Definition Scene.h:40
Eigen::Vector3f position
Definition Scene.h:43
std::vector< SceneObject > objects
Definition Scene.h:57