libmove3d-planners
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | List of all members
Sem::PlanParts Class Reference

Public Member Functions

 PlanParts (std::string global_json_path, bool proactive=false)
 
bool fetchData ()
 
void clearData (AgentType t)
 
bool importJsonFile (std::string path)
 
bool createFromActiveJoints (PlanningType plan_type)
 
bool getJsonRoot (Json::Value &root, std::string &file_path)
 
bool readJsonAgent (AgentType t)
 
bool readJsonAgent (Json::Value &root, const std::string &file)
 
bool readJsonPlanType (AgentType agn_type, PlanningType plan_type)
 
bool parsePlanPart (AgentType agn_type, std::string const &plan_type_str, Json::Value const &joint_set_json)
 
bool parsePlanPart (AgentType agn_type, PlanningType plantype, Json::Value const &joint_set_json)
 
void save ()
 
void writeJson (AgentType t)
 
void appendJointsSetToJson (Json::Value &planning_parts_dict, const PlanningPart *jointsset)
 
std::string getPath (AgentType t)
 
void addPlanPart (AgentType agent_type, PlanningType plan_type, std::vector< int > const &joints, std::vector< int > const &arm_ids)
 
void addPlanPart (PlanningPart *jointsset)
 addPlanPart More...
 
std::vector< PlanningPart * > getPlanningParts (AgentType agent_type, PlanningType plan_type)
 
bool proactive () const
 proactive means that json data will be loaded on creation, otherwise it is read on getPlanPart() call
 
void setProactive (bool proactive)
 

Member Function Documentation

void Sem::PlanParts::addPlanPart ( PlanningPart jointsset)

addPlanPart

Parameters
jointsset
Note
it only adds if the jointsset is not already present in the list, thus avoiding duplicates. it uses JointsSet::operator==.

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