From ec8d8640a9ffcbfe619e4aa098f3f80cfee1c599 Mon Sep 17 00:00:00 2001 From: Florent Lamiraux <florent@laas.fr> Date: Sat, 25 Nov 2017 12:07:38 +0100 Subject: [PATCH] Add className static members in classes Handle and AxialHandle. --- include/hpp/manipulation/axial-handle.hh | 1 + include/hpp/manipulation/handle.hh | 1 + src/axial-handle.cc | 1 + src/handle.cc | 1 + 4 files changed, 4 insertions(+) diff --git a/include/hpp/manipulation/axial-handle.hh b/include/hpp/manipulation/axial-handle.hh index 28de06e..605f436 100644 --- a/include/hpp/manipulation/axial-handle.hh +++ b/include/hpp/manipulation/axial-handle.hh @@ -32,6 +32,7 @@ namespace hpp { class HPP_MANIPULATION_DLLAPI AxialHandle : public Handle { public: + static std::string className; /// Create constraint corresponding to a gripper grasping this object /// \param robot the robot that grasps the handle, /// \param grasp object containing the grasp information diff --git a/include/hpp/manipulation/handle.hh b/include/hpp/manipulation/handle.hh index a0e7ebb..e59c784 100644 --- a/include/hpp/manipulation/handle.hh +++ b/include/hpp/manipulation/handle.hh @@ -31,6 +31,7 @@ namespace hpp { class HPP_MANIPULATION_DLLAPI Handle { public: + static std::string className; virtual ~Handle () {}; /// Create constraint corresponding to a gripper grasping this object diff --git a/src/axial-handle.cc b/src/axial-handle.cc index 1c5af7e..5446451 100644 --- a/src/axial-handle.cc +++ b/src/axial-handle.cc @@ -30,6 +30,7 @@ namespace hpp { namespace manipulation { + std::string AxialHandle::className ("AxialHandle"); static const matrix3_t I3 = matrix3_t::Identity(); AxialHandlePtr_t AxialHandle::create (const std::string& name, diff --git a/src/handle.cc b/src/handle.cc index 9ed7057..446fc9b 100644 --- a/src/handle.cc +++ b/src/handle.cc @@ -37,6 +37,7 @@ namespace hpp { namespace manipulation { + std::string Handle::className ("Handle"); namespace { static const matrix3_t I3 = matrix3_t::Identity(); -- GitLab