@@ -347,19 +347,12 @@ class MOVEIT_PLANNING_SCENE_EXPORT PlanningScene : public std::enable_shared_fro
347
347
void checkCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res);
348
348
349
349
/* * \brief Check whether the current state is in collision. The current state is expected to be updated. */
350
- void checkCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res) const
351
- {
352
- checkCollision (req, res, getCurrentState ());
353
- }
350
+ void checkCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res) const ;
354
351
355
352
/* * \brief Check whether a specified state (\e robot_state) is in collision. This variant of the function takes
356
353
a non-const \e robot_state and calls updateCollisionBodyTransforms() on it. */
357
354
void checkCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
358
- moveit::core::RobotState& robot_state) const
359
- {
360
- robot_state.updateCollisionBodyTransforms ();
361
- checkCollision (req, res, static_cast <const moveit::core::RobotState&>(robot_state));
362
- }
355
+ moveit::core::RobotState& robot_state) const ;
363
356
364
357
/* * \brief Check whether a specified state (\e robot_state) is in collision. The collision transforms of \e
365
358
* robot_state are
@@ -372,11 +365,7 @@ class MOVEIT_PLANNING_SCENE_EXPORT PlanningScene : public std::enable_shared_fro
372
365
a non-const \e robot_state and updates its link transforms if needed. */
373
366
void checkCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
374
367
moveit::core::RobotState& robot_state,
375
- const collision_detection::AllowedCollisionMatrix& acm) const
376
- {
377
- robot_state.updateCollisionBodyTransforms ();
378
- checkCollision (req, res, static_cast <const moveit::core::RobotState&>(robot_state), acm);
379
- }
368
+ const collision_detection::AllowedCollisionMatrix& acm) const ;
380
369
381
370
/* * \brief Check whether a specified state (\e robot_state) is in collision, with respect to a given
382
371
allowed collision matrix (\e acm). */
@@ -387,99 +376,69 @@ class MOVEIT_PLANNING_SCENE_EXPORT PlanningScene : public std::enable_shared_fro
387
376
/* * \brief Check whether the current state is in collision,
388
377
but use a collision_detection::CollisionRobot instance that has no padding.
389
378
Since the function is non-const, the current state transforms are also updated if needed. */
390
- void checkCollisionUnpadded ( const collision_detection:: CollisionRequest& req,
391
- collision_detection::CollisionResult& res);
379
+ [[deprecated( " Use new CollisionRequest flags to enable/ disable padding instead. " )]] void
380
+ checkCollisionUnpadded ( const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res);
392
381
393
382
/* * \brief Check whether the current state is in collision,
394
383
but use a collision_detection::CollisionRobot instance that has no padding. */
395
- void checkCollisionUnpadded (const collision_detection::CollisionRequest& req,
396
- collision_detection::CollisionResult& res) const
397
- {
398
- checkCollisionUnpadded (req, res, getCurrentState (), getAllowedCollisionMatrix ());
399
- }
384
+ [[deprecated(" Use new CollisionRequest flags to enable/ disable padding instead." )]] void
385
+ checkCollisionUnpadded (const collision_detection::CollisionRequest& req,
386
+ collision_detection::CollisionResult& res) const ;
400
387
401
388
/* * \brief Check whether a specified state (\e robot_state) is in collision,
402
389
but use a collision_detection::CollisionRobot instance that has no padding. */
403
- void checkCollisionUnpadded (const collision_detection::CollisionRequest& req,
404
- collision_detection::CollisionResult& res,
405
- const moveit::core::RobotState& robot_state) const
406
- {
407
- checkCollisionUnpadded (req, res, robot_state, getAllowedCollisionMatrix ());
408
- }
390
+ [[deprecated(" Use new CollisionRequest flags to enable/ disable padding instead." )]] void
391
+ checkCollisionUnpadded (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
392
+ const moveit::core::RobotState& robot_state) const ;
409
393
410
394
/* * \brief Check whether a specified state (\e robot_state) is in collision,
411
395
but use a collision_detection::CollisionRobot instance that has no padding.
412
396
Update the link transforms of \e robot_state if needed. */
413
- void checkCollisionUnpadded (const collision_detection::CollisionRequest& req,
414
- collision_detection::CollisionResult& res, moveit::core::RobotState& robot_state) const
415
- {
416
- robot_state.updateCollisionBodyTransforms ();
417
- checkCollisionUnpadded (req, res, static_cast <const moveit::core::RobotState&>(robot_state),
418
- getAllowedCollisionMatrix ());
419
- }
397
+ [[deprecated(" Use new CollisionRequest flags to enable/ disable padding instead." )]] void
398
+ checkCollisionUnpadded (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
399
+ moveit::core::RobotState& robot_state) const ;
420
400
421
401
/* * \brief Check whether a specified state (\e robot_state) is in collision, with respect to a given
422
402
allowed collision matrix (\e acm), but use a collision_detection::CollisionRobot instance that has no padding.
423
403
This variant of the function takes a non-const \e robot_state and calls updates the link transforms if needed. */
424
- void checkCollisionUnpadded (const collision_detection::CollisionRequest& req,
425
- collision_detection::CollisionResult& res, moveit::core::RobotState& robot_state,
426
- const collision_detection::AllowedCollisionMatrix& acm) const
427
- {
428
- robot_state.updateCollisionBodyTransforms ();
429
- checkCollisionUnpadded (req, res, static_cast <const moveit::core::RobotState&>(robot_state), acm);
430
- }
404
+ [[deprecated(" Use new CollisionRequest flags to enable/ disable padding instead." )]] void
405
+ checkCollisionUnpadded (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
406
+ moveit::core::RobotState& robot_state,
407
+ const collision_detection::AllowedCollisionMatrix& acm) const ;
431
408
432
409
/* * \brief Check whether a specified state (\e robot_state) is in collision, with respect to a given
433
410
allowed collision matrix (\e acm), but use a collision_detection::CollisionRobot instance that has no padding. */
434
- void checkCollisionUnpadded (const collision_detection::CollisionRequest& req,
435
- collision_detection::CollisionResult& res, const moveit::core::RobotState& robot_state,
436
- const collision_detection::AllowedCollisionMatrix& acm) const ;
411
+ [[deprecated(" Use new CollisionRequest flags to enable/ disable padding instead." )]] void
412
+ checkCollisionUnpadded (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
413
+ const moveit::core::RobotState& robot_state,
414
+ const collision_detection::AllowedCollisionMatrix& acm) const ;
437
415
438
416
/* * \brief Check whether the current state is in self collision */
439
417
void checkSelfCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res);
440
418
441
419
/* * \brief Check whether the current state is in self collision */
442
420
void checkSelfCollision (const collision_detection::CollisionRequest& req,
443
- collision_detection::CollisionResult& res) const
444
- {
445
- checkSelfCollision (req, res, getCurrentState ());
446
- }
421
+ collision_detection::CollisionResult& res) const ;
447
422
448
423
/* * \brief Check whether a specified state (\e robot_state) is in self collision */
449
424
void checkSelfCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
450
- moveit::core::RobotState& robot_state) const
451
- {
452
- robot_state.updateCollisionBodyTransforms ();
453
- checkSelfCollision (req, res, static_cast <const moveit::core::RobotState&>(robot_state), getAllowedCollisionMatrix ());
454
- }
425
+ moveit::core::RobotState& robot_state) const ;
455
426
456
427
/* * \brief Check whether a specified state (\e robot_state) is in self collision */
457
428
void checkSelfCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
458
- const moveit::core::RobotState& robot_state) const
459
- {
460
- // do self-collision checking with the unpadded version of the robot
461
- getCollisionEnvUnpadded ()->checkSelfCollision (req, res, robot_state, getAllowedCollisionMatrix ());
462
- }
429
+ const moveit::core::RobotState& robot_state) const ;
463
430
464
431
/* * \brief Check whether a specified state (\e robot_state) is in self collision, with respect to a given
465
432
allowed collision matrix (\e acm). The link transforms of \e robot_state are updated if needed. */
466
433
void checkSelfCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
467
434
moveit::core::RobotState& robot_state,
468
- const collision_detection::AllowedCollisionMatrix& acm) const
469
- {
470
- robot_state.updateCollisionBodyTransforms ();
471
- checkSelfCollision (req, res, static_cast <const moveit::core::RobotState&>(robot_state), acm);
472
- }
435
+ const collision_detection::AllowedCollisionMatrix& acm) const ;
473
436
474
437
/* * \brief Check whether a specified state (\e robot_state) is in self collision, with respect to a given
475
438
allowed collision matrix (\e acm) */
476
439
void checkSelfCollision (const collision_detection::CollisionRequest& req, collision_detection::CollisionResult& res,
477
440
const moveit::core::RobotState& robot_state,
478
- const collision_detection::AllowedCollisionMatrix& acm) const
479
- {
480
- // do self-collision checking with the unpadded version of the robot
481
- getCollisionEnvUnpadded ()->checkSelfCollision (req, res, robot_state, acm);
482
- }
441
+ const collision_detection::AllowedCollisionMatrix& acm) const ;
483
442
484
443
/* * \brief Get the names of the links that are involved in collisions for the current state */
485
444
void getCollidingLinks (std::vector<std::string>& links);
0 commit comments