From c1d1f66cc05a8c46cb3e7475c4d5fcfc2f399550 Mon Sep 17 00:00:00 2001 From: Robert Haschke Date: Thu, 27 Oct 2016 14:05:42 +0200 Subject: [PATCH] cleanup declaration of ModelInterface's SharedPtrs --- include/urdf_model/types.h | 2 ++ include/urdf_world/types.h | 13 ++----------- include/urdf_world/world.h | 4 +--- 3 files changed, 5 insertions(+), 14 deletions(-) diff --git a/include/urdf_model/types.h b/include/urdf_model/types.h index 3041765..7165c41 100644 --- a/include/urdf_model/types.h +++ b/include/urdf_model/types.h @@ -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 std::shared_ptr const_pointer_cast(std::shared_ptr const & r) diff --git a/include/urdf_world/types.h b/include/urdf_world/types.h index 1cd5be9..e7c4077 100644 --- a/include/urdf_world/types.h +++ b/include/urdf_world/types.h @@ -37,16 +37,7 @@ #ifndef URDF_WORLD_TYPES_H #define URDF_WORLD_TYPES_H -#include - - -namespace urdf{ - -class ModelInterface; - -// typedef shared pointers -typedef std::shared_ptr ModelInterfaceSharedPtr; - -} +#warning urdf_world/types.h is deprecated. Please use urdf_model/types.h instead. +#include #endif diff --git a/include/urdf_world/world.h b/include/urdf_world/world.h index 2a98b81..909d599 100644 --- a/include/urdf_world/world.h +++ b/include/urdf_world/world.h @@ -74,10 +74,9 @@ #include #include -#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{ @@ -107,4 +106,3 @@ class World } #endif -