Skip to content
Snippets Groups Projects
Commit be1df5fa authored by Joseph Mirabel's avatar Joseph Mirabel Committed by Joseph Mirabel
Browse files

Update Handle

parent 905e4092
No related branches found
No related tags found
No related merge requests found
......@@ -20,14 +20,13 @@
#ifndef HPP_MANIPULATION_HANDLE_HH
# define HPP_MANIPULATION_HANDLE_HH
# include <hpp/fcl/math/transform.h>
# include <hpp/manipulation/config.hh>
# include <hpp/manipulation/fwd.hh>
# include <hpp/manipulation/config.hh>
namespace hpp {
namespace manipulation {
/// Part of an object that is aimed at being grasped
class Handle
class HPP_MANIPULATION_DLLAPI Handle
{
public:
/// Create constraint corresponding to a gripper grasping this object
......
......@@ -19,15 +19,15 @@
#include <hpp/manipulation/handle.hh>
#include <hpp/util/debug.hh>
#include <hpp/model/device.hh>
#include <boost/assign/list_of.hpp>
#include <hpp/fcl/math/transform.h>
#include <pinocchio/multibody/joint/joint-free-flyer.hpp>
#include <hpp/util/debug.hh>
#include <hpp/model/joint.hh>
#include <hpp/model/gripper.hh>
#include <hpp/pinocchio/device.hh>
#include <hpp/pinocchio/joint.hh>
#include <hpp/pinocchio/gripper.hh>
#include <hpp/constraints/generic-transformation.hh>
......@@ -58,9 +58,8 @@ namespace hpp {
bool isHandleOnR3SO3 (const Handle& handle)
{
if ((dynamic_cast <model::JointSO3*> (handle.joint ())) &&
(dynamic_cast <model::JointTranslation <3>* >
(handle.joint ()->parentJoint ()))) {
if (handle.joint()->jointModel().shortname() == se3::JointModelFreeFlyer::classname()
&& handle.joint ()->parentJoint ()) {
return true;
}
return false;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment