From 995aa1e23a1571d456b3213a6fa6a983a2227b84 Mon Sep 17 00:00:00 2001 From: Steven Peters Date: Tue, 10 Oct 2017 10:32:37 -0700 Subject: [PATCH] world.h: remove initXml function, tinyxml include (#39) * world.h: forward declare tinyxml and don't include The urdf::World class uses a pointer to a tinyxml symbol in the initXml function, but we don't want to export that dependency, so just forward declare the symbol since it's a pointer. * Remove the unimplemented initXml method. This allows us to remove tinyxml.h from the header file. Signed-off-by: Chris Lalancette --- urdf_world/include/urdf_world/world.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/urdf_world/include/urdf_world/world.h b/urdf_world/include/urdf_world/world.h index 7b0e8c1..2a98b81 100644 --- a/urdf_world/include/urdf_world/world.h +++ b/urdf_world/include/urdf_world/world.h @@ -67,13 +67,12 @@ */ -#ifndef USDF_STATE_H -#define USDF_STATE_H +#ifndef URDF_WORLD_H +#define URDF_WORLD_H #include #include #include -#include #include "urdf_model/model.h" #include "urdf_model/pose.h" @@ -100,8 +99,6 @@ class World std::vector models; - void initXml(TiXmlElement* config); - void clear() { this->name.clear();