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 50 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 61 of file planning_scene_world_storage.cpp.

Definition at line 49 of file planning_scene_world_storage.cpp.

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

Definition at line 87 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 81 of file planning_scene_world_storage.cpp.

Get the constraints named name. Return false on failure.

Definition at line 97 of file planning_scene_world_storage.cpp.

Definition at line 74 of file planning_scene_world_storage.cpp.

Definition at line 118 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 110 of file planning_scene_world_storage.cpp.

Definition at line 54 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 54 of file planning_scene_world_storage.h.

Definition at line 83 of file planning_scene_world_storage.h.

Definition at line 55 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 Mon Oct 6 2014 02:32:09