moveit2
The MoveIt Motion Planning Framework for ROS 2.
|
Maintain a diff list of changes that have happened to a World. More...
#include <world_diff.h>
Public Types | |
using | const_iterator = std::map< std::string, World::Action >::const_iterator |
Public Member Functions | |
WorldDiff () | |
Constructor. More... | |
WorldDiff (const WorldPtr &world) | |
Constructor. More... | |
WorldDiff (WorldDiff &other) | |
copy constructor. More... | |
~WorldDiff () | |
void | setWorld (const WorldPtr &world) |
Set which world to record. Records all objects in old world (if any) as DESTROYED and all objects in new world as CREATED and ADD_SHAPE. More... | |
void | reset (const WorldPtr &world) |
Set which world to record. Erases all previously recorded changes. More... | |
void | reset () |
Turn off recording and erase all previously recorded changes. More... | |
const std::map< std::string, World::Action > & | getChanges () const |
Return all the changes that have been recorded. More... | |
const_iterator | begin () const |
const_iterator | end () const |
size_t | size () const |
const_iterator | find (const std::string &id) const |
void | set (const std::string &id, World::Action val) |
void | clearChanges () |
Clear the internally maintained vector of changes. More... | |
Maintain a diff list of changes that have happened to a World.
Definition at line 47 of file world_diff.h.
using collision_detection::WorldDiff::const_iterator = std::map<std::string, World::Action>::const_iterator |
Definition at line 79 of file world_diff.h.
collision_detection::WorldDiff::WorldDiff | ( | ) |
Constructor.
Definition at line 49 of file world_diff.cpp.
collision_detection::WorldDiff::WorldDiff | ( | const WorldPtr & | world | ) |
Constructor.
Definition at line 53 of file world_diff.cpp.
collision_detection::WorldDiff::WorldDiff | ( | WorldDiff & | other | ) |
copy constructor.
Definition at line 59 of file world_diff.cpp.
collision_detection::WorldDiff::~WorldDiff | ( | ) |
Definition at line 42 of file world_diff.cpp.
|
inline |
iterator pointing to first change
Definition at line 81 of file world_diff.h.
void collision_detection::WorldDiff::clearChanges | ( | ) |
Clear the internally maintained vector of changes.
Definition at line 112 of file world_diff.cpp.
|
inline |
iterator pointing to end of changes
Definition at line 86 of file world_diff.h.
|
inline |
find changes for a named object
Definition at line 96 of file world_diff.h.
|
inline |
Return all the changes that have been recorded.
Definition at line 74 of file world_diff.h.
void collision_detection::WorldDiff::reset | ( | ) |
Turn off recording and erase all previously recorded changes.
Definition at line 72 of file world_diff.cpp.
void collision_detection::WorldDiff::reset | ( | const WorldPtr & | world | ) |
Set which world to record. Erases all previously recorded changes.
Definition at line 83 of file world_diff.cpp.
|
inline |
set the entry for an id
Definition at line 101 of file world_diff.h.
void collision_detection::WorldDiff::setWorld | ( | const WorldPtr & | world | ) |
Set which world to record. Records all objects in old world (if any) as DESTROYED and all objects in new world as CREATED and ADD_SHAPE.
Definition at line 96 of file world_diff.cpp.
|
inline |
number of changes stored
Definition at line 91 of file world_diff.h.