TinyURDF 1.0.0
Loading...
Searching...
No Matches
world.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CORE_WORLD_H_
2#define INCLUDE_TINYURDF_CORE_WORLD_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <loguru/loguru.hpp>
7#include <vector>
8
10#include "core/model.h"
11#include "core/pose.h"
12
16template <typename... PropertyBase>
17class Entity : public ObjectBase
18{
19 public:
20 void clear();
21
22 private:
23 std::shared_ptr<Model> model;
24 Pose origin;
25};
26
30template <typename... PropertyBase>
31class World : public ObjectBase
32{
33 public:
34 World();
35 void clear();
36
37 private:
38 std::shared_ptr<std::string> name = nullptr;
39 std::vector<Entity<PropertyBase...>> models;
40};
41#endif // INCLUDE_TINYURDF_CORE_WORLD_H_
Base class for all subObjects in a world.
Definition world.h:18
void clear()
Definition object_base.h:9
Represents a pose, consisting of position and rotation.
Definition pose.h:13
Definition property_base.h:9
Base class for models enviroment defintions.
Definition world.h:32
World()
Definition world.cc:4
void clear()
Definition world.cc:10