moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
This is a convenience class for obtaining access to an instance of a locked PlanningScene. More...
#include <planning_scene_monitor.h>
Public Member Functions | |
LockedPlanningSceneRW (const PlanningSceneMonitorPtr &planning_scene_monitor) | |
operator const planning_scene::PlanningScenePtr & () | |
const planning_scene::PlanningScenePtr & | operator-> () |
Public Member Functions inherited from planning_scene_monitor::LockedPlanningSceneRO | |
LockedPlanningSceneRO (const PlanningSceneMonitorPtr &planning_scene_monitor) | |
const PlanningSceneMonitorPtr & | getPlanningSceneMonitor () |
operator bool () const | |
operator const planning_scene::PlanningSceneConstPtr & () const | |
const planning_scene::PlanningSceneConstPtr & | operator-> () const |
Additional Inherited Members | |
Protected Member Functions inherited from planning_scene_monitor::LockedPlanningSceneRO | |
LockedPlanningSceneRO (const PlanningSceneMonitorPtr &planning_scene_monitor, bool read_only) | |
void | initialize (bool read_only) |
MOVEIT_STRUCT_FORWARD (SingleUnlock) | |
Protected Attributes inherited from planning_scene_monitor::LockedPlanningSceneRO | |
PlanningSceneMonitorPtr | planning_scene_monitor_ |
SingleUnlockPtr | lock_ |
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 PlanningScenePtr, this works.
Only one of these "ReadWrite" locks can exist at a given time. The intention is that users which need to write to the PlanningScene will use these, preventing other writers and readers from locking the same PlanningScene at the same time.
Definition at line 722 of file planning_scene_monitor.h.
|
inline |
Definition at line 725 of file planning_scene_monitor.h.
|
inline |
Definition at line 730 of file planning_scene_monitor.h.
|
inline |
Definition at line 735 of file planning_scene_monitor.h.