TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
world.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_WORLD_H_
2#define INCLUDE_TINYURDF_WORLD_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <string>
7#include <vector>
8#include <memory>
9
10#include <loguru/loguru.hpp>
11
12#include "model.h"
13#include "object_base.h"
14#include "pose.h"
15#include "property_base.h"
16
17template<typename... PropertyBase>
18class Entity : public ObjectBase
19{
20public:
21 void clear();
22private:
23 std::shared_ptr<Model> model;
24 Pose origin;
25};
26
27template<typename... PropertyBase>
28class World : public ObjectBase{
29public:
30 World();
31 void clear();
32private:
33 std::shared_ptr<std::string> name = nullptr;
34 std::vector<Entity<PropertyBase...>> models;
35};
36#endif // TINYURDF_WORLD_H_
Definition world.h:19
void clear()
Definition object_base.h:11
Represents a pose, consisting of position and rotation.
Definition pose.h:13
Definition property_base.h:9
Definition world.h:28
World()
Definition world.cc:4
void clear()
Definition world.cc:10