Skip to content

Commit c92d084

Browse files
committed
Fix deprecated-copy
1 parent 3f0d51b commit c92d084

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

orocos_kdl/src/frameacc.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ class VectorAcc
6666
Vector dv; //!< acceleration vector
6767
public:
6868
VectorAcc():p(),v(),dv() {}
69+
VectorAcc(const VectorAcc& arg) = default;
6970
explicit VectorAcc(const Vector& _p):p(_p),v(Vector::Zero()),dv(Vector::Zero()) {}
7071
VectorAcc(const Vector& _p,const Vector& _v):p(_p),v(_v),dv(Vector::Zero()) {}
7172
VectorAcc(const Vector& _p,const Vector& _v,const Vector& _dv):
@@ -114,6 +115,7 @@ class RotationAcc
114115
Vector dw; //!< angular acceration vector
115116
public:
116117
RotationAcc():R(),w() {}
118+
RotationAcc(const RotationAcc& arg) = default;
117119
explicit RotationAcc(const Rotation& _R):R(_R),w(Vector::Zero()){}
118120
RotationAcc(const Rotation& _R,const Vector& _w,const Vector& _dw):
119121
R(_R),w(_w),dw(_dw) {}
@@ -166,6 +168,7 @@ class FrameAcc
166168
VectorAcc p; //!< Translation, velocity and acceleration of origin.
167169
public:
168170
FrameAcc(){}
171+
FrameAcc(const FrameAcc& arg) = default;
169172
explicit FrameAcc(const Frame& _T):M(_T.M),p(_T.p) {}
170173
FrameAcc(const Frame& _T,const Twist& _t,const Twist& _dt):
171174
M(_T.M,_t.rot,_dt.rot),p(_T.p,_t.vel,_dt.vel) {}
@@ -205,6 +208,7 @@ class TwistAcc
205208
public:
206209

207210
TwistAcc():vel(),rot() {};
211+
TwistAcc(const TwistAcc& arg) = default;
208212
TwistAcc(const VectorAcc& _vel,const VectorAcc& _rot):vel(_vel),rot(_rot) {};
209213

210214
IMETHOD TwistAcc& operator-=(const TwistAcc& arg);

orocos_kdl/src/framevel.hpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ class VectorVel
9292
Vector v; // velocity vector
9393
public:
9494
VectorVel():p(),v(){}
95+
VectorVel(const VectorVel& arg) = default;
9596
VectorVel(const Vector& _p,const Vector& _v):p(_p),v(_v) {}
9697
explicit VectorVel(const Vector& _p):p(_p),v(Vector::Zero()) {}
9798

@@ -154,6 +155,7 @@ class RotationVel
154155
Vector w; // rotation vector
155156
public:
156157
RotationVel():R(),w() {}
158+
RotationVel(const RotationVel& arg) = default;
157159
explicit RotationVel(const Rotation& _R):R(_R),w(Vector::Zero()){}
158160
RotationVel(const Rotation& _R,const Vector& _w):R(_R),w(_w){}
159161

@@ -219,6 +221,7 @@ class FrameVel
219221
VectorVel p;
220222
public:
221223
FrameVel(){}
224+
FrameVel(const FrameVel& arg) = default;
222225

223226
explicit FrameVel(const Frame& _T):
224227
M(_T.M),p(_T.p) {}
@@ -277,6 +280,7 @@ class TwistVel
277280

278281
// = Constructors
279282
TwistVel():vel(),rot() {};
283+
TwistVel(const TwistVel& arg) = default;
280284
TwistVel(const VectorVel& _vel,const VectorVel& _rot):vel(_vel),rot(_rot) {};
281285
TwistVel(const Twist& p,const Twist& v):vel(p.vel, v.vel), rot( p.rot, v.rot) {};
282286
TwistVel(const Twist& p):vel(p.vel), rot( p.rot) {};

0 commit comments

Comments
 (0)