45
45
#include < vector>
46
46
#include < map>
47
47
#include < limits>
48
- #include < boost/shared_ptr.hpp>
49
- #include < boost/weak_ptr.hpp>
48
+ #include < memory>
50
49
51
50
namespace fcl
52
51
{
@@ -61,7 +60,7 @@ class Joint
61
60
{
62
61
public:
63
62
64
- Joint (const boost ::shared_ptr<Link>& link_parent, const boost ::shared_ptr<Link>& link_child,
63
+ Joint (const std ::shared_ptr<Link>& link_parent, const std ::shared_ptr<Link>& link_child,
65
64
const Transform3f& transform_to_parent,
66
65
const std::string& name);
67
66
@@ -76,14 +75,14 @@ class Joint
76
75
77
76
virtual std::size_t getNumDofs () const = 0;
78
77
79
- boost ::shared_ptr<JointConfig> getJointConfig () const ;
80
- void setJointConfig (const boost ::shared_ptr<JointConfig>& joint_cfg);
78
+ std ::shared_ptr<JointConfig> getJointConfig () const ;
79
+ void setJointConfig (const std ::shared_ptr<JointConfig>& joint_cfg);
81
80
82
- boost ::shared_ptr<Link> getParentLink () const ;
83
- boost ::shared_ptr<Link> getChildLink () const ;
81
+ std ::shared_ptr<Link> getParentLink () const ;
82
+ std ::shared_ptr<Link> getChildLink () const ;
84
83
85
- void setParentLink (const boost ::shared_ptr<Link>& link);
86
- void setChildLink (const boost ::shared_ptr<Link>& link);
84
+ void setParentLink (const std ::shared_ptr<Link>& link);
85
+ void setChildLink (const std ::shared_ptr<Link>& link);
87
86
88
87
JointType getJointType () const ;
89
88
@@ -93,13 +92,13 @@ class Joint
93
92
protected:
94
93
95
94
// / links to parent and child are only for connection, so weak_ptr to avoid cyclic dependency
96
- boost ::weak_ptr<Link> link_parent_, link_child_;
95
+ std ::weak_ptr<Link> link_parent_, link_child_;
97
96
98
97
JointType type_;
99
98
100
99
std::string name_;
101
100
102
- boost ::shared_ptr<JointConfig> joint_cfg_;
101
+ std ::shared_ptr<JointConfig> joint_cfg_;
103
102
104
103
Transform3f transform_to_parent_;
105
104
};
@@ -108,7 +107,7 @@ class Joint
108
107
class PrismaticJoint : public Joint
109
108
{
110
109
public:
111
- PrismaticJoint (const boost ::shared_ptr<Link>& link_parent, const boost ::shared_ptr<Link>& link_child,
110
+ PrismaticJoint (const std ::shared_ptr<Link>& link_parent, const std ::shared_ptr<Link>& link_child,
112
111
const Transform3f& transform_to_parent,
113
112
const std::string& name,
114
113
const Vec3f& axis);
@@ -128,7 +127,7 @@ class PrismaticJoint : public Joint
128
127
class RevoluteJoint : public Joint
129
128
{
130
129
public:
131
- RevoluteJoint (const boost ::shared_ptr<Link>& link_parent, const boost ::shared_ptr<Link>& link_child,
130
+ RevoluteJoint (const std ::shared_ptr<Link>& link_parent, const std ::shared_ptr<Link>& link_child,
132
131
const Transform3f& transform_to_parent,
133
132
const std::string& name,
134
133
const Vec3f& axis);
@@ -150,7 +149,7 @@ class RevoluteJoint : public Joint
150
149
class BallEulerJoint : public Joint
151
150
{
152
151
public:
153
- BallEulerJoint (const boost ::shared_ptr<Link>& link_parent, const boost ::shared_ptr<Link>& link_child,
152
+ BallEulerJoint (const std ::shared_ptr<Link>& link_parent, const std ::shared_ptr<Link>& link_child,
154
153
const Transform3f& transform_to_parent,
155
154
const std::string& name);
156
155
0 commit comments