![]() |
Parasol Planning Library (PPL)
|
#include <string>#include <iostream>#include <fstream>#include <vector>#include "CountingStreamBuffer.h"#include "PMPLExceptions.h"

Go to the source code of this file.
Functions | |
| void | VDInit (std::string _filename) |
| @TODO More... | |
| void | VDClose () |
| @TODO More... | |
| void | VDComment (std::string _s) |
| @TODO More... | |
| void | VDClearAll () |
| @TODO More... | |
| void | VDClearLastTemp () |
| @TODO More... | |
| void | VDClearComments () |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDAddNode (const CfgType &_cfg) |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDRemoveNode (const CfgType &_cfg) |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDAddEdge (const CfgType &_cfg1, const CfgType &_cfg2) |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDRemoveEdge (const CfgType &_cfg1, const CfgType &_cfg2) |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDAddTempCfg (const CfgType &_cfg, const bool _valid) |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDAddTempRay (const CfgType &_cfg) |
| @TODO More... | |
| template<typename CfgType > | |
| void | VDAddTempEdge (const CfgType &_cfg1, const CfgType &_cfg2) |
| @TODO More... | |
| template<typename AbstractRoadmapType > | |
| void | VDTrackRoadmap (AbstractRoadmapType *const _r) |
| template<typename CfgType > | |
| void | WritePath (const std::string &_filename, const std::vector< CfgType > &_path) |
| Write a list of Cfgs from a path to file. More... | |
| template<typename CfgType > | |
| std::vector< CfgType > | ReadPath (const std::string &_filename, Robot *const _robot) |
| Read a list of Cfgs from a file to path. More... | |
| bool | FileExists (const std::string &_filename) |
| void | GoToNext (std::istream &_is) |
| bool | IsCommentLine (const char _c) |
| std::string | GetPathName (const std::string &_filename) |
| template<typename T > | |
| T | ReadField (std::istream &_is, CountingStreamBuffer &_cbs, const std::string &_desc) |
| std::string | ReadFieldString (std::istream &_is, CountingStreamBuffer &_cbs, const std::string &_desc, const bool _toUpper=true) |
| std::vector< std::string > | GetTokens (std::string _s, std::string _delimiters) |
Variables | |
| std::ofstream * | vdo |
| @TODO More... | |
| bool FileExists | ( | const std::string & | _filename | ) |
Determine whether a file exists.
| _filename | The name of the file to check. |
| std::string GetPathName | ( | const std::string & | _filename | ) |
Get directory path from filename
| _filename | Filename |
| std::vector<std::string> GetTokens | ( | std::string | _s, |
| std::string | _delimiters | ||
| ) |
Split string based on delimiter.
| _s | The string to split. |
| _delimiters | The delimiters to split on. |
| void GoToNext | ( | std::istream & | _is | ) |
Discard all commented lines until the next uncommented line is found
| _is | Stream |
| bool IsCommentLine | ( | const char | _c | ) |
Determines if character starts a comment ('#')
| _c | Character in question |
| T ReadField | ( | std::istream & | _is, |
| CountingStreamBuffer & | _cbs, | ||
| const std::string & | _desc | ||
| ) |
Read data from stream
| T | Data type |
| _is | Stream |
| _cbs | Counting stream buffer |
| _desc | String describing field |
| std::string ReadFieldString | ( | std::istream & | _is, |
| CountingStreamBuffer & | _cbs, | ||
| const std::string & | _desc, | ||
| const bool | _toUpper = true |
||
| ) |
Read string from stream
| _is | Stream |
| _cbs | Counting stream buffer |
| _desc | String describing field |
| _toUpper | True means convert string to all upper case |
| std::vector<CfgType> ReadPath | ( | const std::string & | _filename, |
| Robot *const | _robot | ||
| ) |
Read a list of Cfgs from a file to path.
| void VDAddEdge | ( | const CfgType & | _cfg1, |
| const CfgType & | _cfg2 | ||
| ) |
@TODO
| void VDAddNode | ( | const CfgType & | _cfg | ) |
@TODO
| void VDAddTempCfg | ( | const CfgType & | _cfg, |
| const bool | _valid | ||
| ) |
@TODO
| void VDAddTempEdge | ( | const CfgType & | _cfg1, |
| const CfgType & | _cfg2 | ||
| ) |
@TODO
| void VDAddTempRay | ( | const CfgType & | _cfg | ) |
@TODO
| void VDClearAll | ( | ) |
@TODO
| void VDClearComments | ( | ) |
@TODO
| void VDClearLastTemp | ( | ) |
@TODO
| void VDClose | ( | ) |
@TODO
| void VDComment | ( | std::string | _s | ) |
@TODO
| void VDInit | ( | std::string | _filename | ) |
@TODO
| void VDRemoveEdge | ( | const CfgType & | _cfg1, |
| const CfgType & | _cfg2 | ||
| ) |
@TODO
| void VDRemoveNode | ( | const CfgType & | _cfg | ) |
@TODO
| void VDTrackRoadmap | ( | AbstractRoadmapType *const | _r | ) |
Add hook functions to track roadmap changes in the vizmo debug file.
| _r | The roadmap to track. |
| void WritePath | ( | const std::string & | _filename, |
| const std::vector< CfgType > & | _path | ||
| ) |
Write a list of Cfgs from a path to file.
|
extern |
@TODO