This is a convenience class for obtaining access to an instance of a locked PlanningScene. More...
#include <planning_scene_monitor.h>
Classes | |
struct | SingleUnlock |
Public Member Functions | |
const PlanningSceneMonitorPtr & | getPlanningSceneMonitor () |
LockedPlanningSceneRO (const PlanningSceneMonitorPtr &planning_scene_monitor) | |
operator bool () const | |
operator const planning_scene::PlanningSceneConstPtr & () const | |
const planning_scene::PlanningSceneConstPtr & | operator-> () const |
Protected Member Functions | |
void | initialize (bool read_only) |
LockedPlanningSceneRO (const PlanningSceneMonitorPtr &planning_scene_monitor, bool read_only) | |
MOVEIT_STRUCT_FORWARD (SingleUnlock) | |
Protected Attributes | |
SingleUnlockPtr | lock_ |
PlanningSceneMonitorPtr | planning_scene_monitor_ |
This is a convenience class for obtaining access to an instance of a locked PlanningScene.
Instances of this class can be used almost exactly like instances of a PlanningScenePtr because of the typecast operator and "operator->" functions. Therefore you will often see code like this:
The function "getRobotModel()" is a member of PlanningScene and not a member of this class. However because of the "operator->" here which returns a PlanningSceneConstPtr, this works.
Any number of these "ReadOnly" locks can exist at a given time. The intention is that users which only need to read from the PlanningScene will use these and will thus not interfere with each other.
Definition at line 647 of file planning_scene_monitor.h.
|
inline |
Definition at line 650 of file planning_scene_monitor.h.
|
inlineprotected |
Definition at line 677 of file planning_scene_monitor.h.
|
inline |
Definition at line 656 of file planning_scene_monitor.h.
|
inlineprotected |
Definition at line 683 of file planning_scene_monitor.h.
|
protected |
|
inline |
Definition at line 661 of file planning_scene_monitor.h.
|
inline |
Definition at line 666 of file planning_scene_monitor.h.
|
inline |
Definition at line 671 of file planning_scene_monitor.h.
|
protected |
Definition at line 715 of file planning_scene_monitor.h.
|
protected |
Definition at line 714 of file planning_scene_monitor.h.