Add smart ptr typedefs (#153)

This commit is contained in:
Bence Magyar 2016-09-28 09:54:02 +01:00 committed by William Woodall
parent ce0fcc860a
commit f8cb99cd0f
1 changed files with 6 additions and 0 deletions

View File

@ -41,6 +41,8 @@
#include <map> #include <map>
#include <urdf_model/model.h> #include <urdf_model/model.h>
#include <tinyxml.h> #include <tinyxml.h>
#include <boost/shared_ptr.hpp>
#include <boost/weak_ptr.hpp>
namespace urdf{ namespace urdf{
@ -59,6 +61,10 @@ public:
bool initString(const std::string& xmlstring); bool initString(const std::string& xmlstring);
}; };
typedef boost::shared_ptr<Model> ModelSharedPtr;
typedef boost::shared_ptr<const Model> ModelConstSharedPtr;
typedef boost::weak_ptr<Model> ModelWeakPtr;
} }
#endif #endif