39
39
#ifndef POSE_SE2_H_
40
40
#define POSE_SE2_H_
41
41
42
- #include < g2o/stuff/misc.h>
43
-
44
42
#include < Eigen/Core>
45
43
#include " teb_local_planner/misc.h"
46
44
#include < geometry_msgs/msg/pose.hpp>
@@ -254,7 +252,7 @@ class PoseSE2
254
252
void scale (double factor)
255
253
{
256
254
_position *= factor;
257
- _theta = g2o:: normalize_theta ( _theta*factor );
255
+ _theta = normalize_theta ( _theta*factor );
258
256
}
259
257
260
258
/* *
@@ -266,7 +264,7 @@ class PoseSE2
266
264
{
267
265
_position.coeffRef (0 ) += pose_as_array[0 ];
268
266
_position.coeffRef (1 ) += pose_as_array[1 ];
269
- _theta = g2o:: normalize_theta ( _theta + pose_as_array[2 ] );
267
+ _theta = normalize_theta ( _theta + pose_as_array[2 ] );
270
268
}
271
269
272
270
/* *
@@ -279,7 +277,7 @@ class PoseSE2
279
277
void averageInPlace (const PoseSE2& pose1, const PoseSE2& pose2)
280
278
{
281
279
_position = (pose1._position + pose2._position )/2 ;
282
- _theta = g2o:: average_angle (pose1._theta , pose2._theta );
280
+ _theta = average_angle (pose1._theta , pose2._theta );
283
281
}
284
282
285
283
/* *
@@ -292,7 +290,7 @@ class PoseSE2
292
290
*/
293
291
static PoseSE2 average (const PoseSE2& pose1, const PoseSE2& pose2)
294
292
{
295
- return PoseSE2 ( (pose1._position + pose2._position )/2 , g2o:: average_angle (pose1._theta , pose2._theta ) );
293
+ return PoseSE2 ( (pose1._position + pose2._position )/2 , average_angle (pose1._theta , pose2._theta ) );
296
294
}
297
295
298
296
/* *
@@ -310,7 +308,7 @@ class PoseSE2
310
308
_position.x () = new_x;
311
309
_position.y () = new_y;
312
310
if (adjust_theta)
313
- _theta = g2o:: normalize_theta (_theta+angle);
311
+ _theta = normalize_theta (_theta+angle);
314
312
}
315
313
316
314
// /@}
@@ -341,7 +339,7 @@ class PoseSE2
341
339
PoseSE2& operator +=(const PoseSE2& rhs)
342
340
{
343
341
_position += rhs._position ;
344
- _theta = g2o:: normalize_theta (_theta + rhs._theta );
342
+ _theta = normalize_theta (_theta + rhs._theta );
345
343
return *this ;
346
344
}
347
345
@@ -362,7 +360,7 @@ class PoseSE2
362
360
PoseSE2& operator -=(const PoseSE2& rhs)
363
361
{
364
362
_position -= rhs._position ;
365
- _theta = g2o:: normalize_theta (_theta - rhs._theta );
363
+ _theta = normalize_theta (_theta - rhs._theta );
366
364
return *this ;
367
365
}
368
366
0 commit comments