Skip to content

Commit

Permalink
cleanup declaration of ModelInterface's SharedPtrs
Browse files Browse the repository at this point in the history
  • Loading branch information
rhaschke committed Sep 21, 2022
1 parent 2981892 commit c1d1f66
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 2 additions & 0 deletions include/urdf_model/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ URDF_TYPEDEF_CLASS_POINTER(Mesh);
URDF_TYPEDEF_CLASS_POINTER(Sphere);
URDF_TYPEDEF_CLASS_POINTER(Visual);

URDF_TYPEDEF_CLASS_POINTER(ModelInterface);

// create *_pointer_cast functions in urdf namespace
template<class T, class U>
std::shared_ptr<T> const_pointer_cast(std::shared_ptr<U> const & r)
Expand Down
13 changes: 2 additions & 11 deletions include/urdf_world/types.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,7 @@
#ifndef URDF_WORLD_TYPES_H
#define URDF_WORLD_TYPES_H

#include <memory>


namespace urdf{

class ModelInterface;

// typedef shared pointers
typedef std::shared_ptr<ModelInterface> ModelInterfaceSharedPtr;

}
#warning urdf_world/types.h is deprecated. Please use urdf_model/types.h instead.
#include <urdf_model/types.h>

#endif
4 changes: 1 addition & 3 deletions include/urdf_world/world.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,10 +74,9 @@
#include <vector>
#include <map>

#include "urdf_model/model.h"
#include "urdf_model/types.h"
#include "urdf_model/pose.h"
#include "urdf_model/twist.h"
#include "urdf_world/types.h"

namespace urdf{

Expand Down Expand Up @@ -107,4 +106,3 @@ class World
}

#endif

0 comments on commit c1d1f66

Please sign in to comment.