Public Member Functions | Static Public Attributes | Private Member Functions | Private Attributes
moveit_warehouse::PlanningSceneWorldStorage Class Reference

#include <planning_scene_world_storage.h>

Inheritance diagram for moveit_warehouse::PlanningSceneWorldStorage:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void addPlanningSceneWorld (const moveit_msgs::PlanningSceneWorld &msg, const std::string &name)
void getKnownPlanningSceneWorlds (std::vector< std::string > &names) const
void getKnownPlanningSceneWorlds (const std::string &regex, std::vector< std::string > &names) const
bool getPlanningSceneWorld (PlanningSceneWorldWithMetadata &msg_m, const std::string &name) const
 Get the constraints named name. Return false on failure.
bool hasPlanningSceneWorld (const std::string &name) const
 PlanningSceneWorldStorage (const std::string &host="", const unsigned int port=0, double wait_seconds=5.0)
 Initialize the planning scene world storage to connect to a specified host and port for the MongoDB. If defaults are used for the parameters (empty host name, 0 port), the constructor looks for ROS params specifying which host/port to use. NodeHandle::searchParam() is used starting from ~ to look for warehouse_port and warehouse_host. If no values are found, the defaults are left to be the ones MongoDB uses. If wait_seconds is above 0, then a maximum number of seconds can elapse until connection is successful, or a runtime exception is thrown.
void removePlanningSceneWorld (const std::string &name)
void renamePlanningSceneWorld (const std::string &old_name, const std::string &new_name)
void reset ()

Static Public Attributes

static const std::string DATABASE_NAME = "moveit_planning_scene_worlds"
static const std::string PLANNING_SCENE_WORLD_ID_NAME = "world_id"

Private Member Functions

void createCollections ()

Private Attributes

PlanningSceneWorldCollection planning_scene_world_collection_

Detailed Description

Definition at line 48 of file planning_scene_world_storage.h.


Constructor & Destructor Documentation

moveit_warehouse::PlanningSceneWorldStorage::PlanningSceneWorldStorage ( const std::string &  host = "",
const unsigned int  port = 0,
double  wait_seconds = 5.0 
)

Initialize the planning scene world storage to connect to a specified host and port for the MongoDB. If defaults are used for the parameters (empty host name, 0 port), the constructor looks for ROS params specifying which host/port to use. NodeHandle::searchParam() is used starting from ~ to look for warehouse_port and warehouse_host. If no values are found, the defaults are left to be the ones MongoDB uses. If wait_seconds is above 0, then a maximum number of seconds can elapse until connection is successful, or a runtime exception is thrown.

Definition at line 42 of file planning_scene_world_storage.cpp.


Member Function Documentation

void moveit_warehouse::PlanningSceneWorldStorage::addPlanningSceneWorld ( const moveit_msgs::PlanningSceneWorld &  msg,
const std::string &  name 
)

Definition at line 63 of file planning_scene_world_storage.cpp.

Definition at line 50 of file planning_scene_world_storage.cpp.

void moveit_warehouse::PlanningSceneWorldStorage::getKnownPlanningSceneWorlds ( std::vector< std::string > &  names) const

Definition at line 91 of file planning_scene_world_storage.cpp.

void moveit_warehouse::PlanningSceneWorldStorage::getKnownPlanningSceneWorlds ( const std::string &  regex,
std::vector< std::string > &  names 
) const

Definition at line 84 of file planning_scene_world_storage.cpp.

Get the constraints named name. Return false on failure.

Definition at line 102 of file planning_scene_world_storage.cpp.

Definition at line 77 of file planning_scene_world_storage.cpp.

Definition at line 125 of file planning_scene_world_storage.cpp.

void moveit_warehouse::PlanningSceneWorldStorage::renamePlanningSceneWorld ( const std::string &  old_name,
const std::string &  new_name 
)

Definition at line 116 of file planning_scene_world_storage.cpp.

Definition at line 56 of file planning_scene_world_storage.cpp.


Member Data Documentation

const std::string moveit_warehouse::PlanningSceneWorldStorage::DATABASE_NAME = "moveit_planning_scene_worlds" [static]

Definition at line 51 of file planning_scene_world_storage.h.

Definition at line 80 of file planning_scene_world_storage.h.

Definition at line 52 of file planning_scene_world_storage.h.


The documentation for this class was generated from the following files:


warehouse
Author(s): Ioan Sucan
autogenerated on Wed Jun 19 2019 19:24:47