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.hpp>
Classes | |
struct | SingleUnlock |
Public Member Functions | |
LockedPlanningSceneRO (const PlanningSceneMonitorPtr &planning_scene_monitor) | |
const PlanningSceneMonitorPtr & | getPlanningSceneMonitor () |
operator bool () const | |
operator const planning_scene::PlanningSceneConstPtr & () const | |
const planning_scene::PlanningSceneConstPtr & | operator-> () const |
Protected Member Functions | |
LockedPlanningSceneRO (const PlanningSceneMonitorPtr &planning_scene_monitor, bool read_only) | |
void | initialize (bool read_only) |
MOVEIT_STRUCT_FORWARD (SingleUnlock) | |
Protected Attributes | |
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 PlanningSceneConstPtr, this works.
Any number of these "read_only" 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 626 of file planning_scene_monitor.hpp.
|
inline |
Definition at line 629 of file planning_scene_monitor.hpp.
|
inlineprotected |
Definition at line 656 of file planning_scene_monitor.hpp.
|
inline |
Definition at line 635 of file planning_scene_monitor.hpp.
|
inlineprotected |
Definition at line 662 of file planning_scene_monitor.hpp.
|
protected |
|
inline |
Definition at line 640 of file planning_scene_monitor.hpp.
|
inline |
Definition at line 645 of file planning_scene_monitor.hpp.
|
inline |
Definition at line 650 of file planning_scene_monitor.hpp.
|
protected |
Definition at line 702 of file planning_scene_monitor.hpp.
|
protected |
Definition at line 701 of file planning_scene_monitor.hpp.