Public Member Functions | Protected Attributes
ParserBase Class Reference

#include <parser_base.hpp>

Inheritance diagram for ParserBase:
Inheritance graph
[legend]

List of all members.

Public Member Functions

template<typename T >
int8_t createBVH (fcl::BVHModel< T > &bvh)
template<typename T >
int8_t createBVH (boost::shared_ptr< fcl::BVHModel< T > > ptr_bvh)
const std::string getFilePath () const
 ParserBase (const std::string &file_path)
virtual int8_t read (std::vector< TriangleSupport > &tri_vec)=0
virtual ~ParserBase ()

Protected Attributes

std::string file_path_

Detailed Description

Definition at line 27 of file parser_base.hpp.


Constructor & Destructor Documentation

ParserBase::ParserBase ( const std::string &  file_path) [inline]

Base class ctor

Parameters:
file_pathCan be an URI name (e.g. package:// ...) or a full path.

Definition at line 37 of file parser_base.hpp.

virtual ParserBase::~ParserBase ( ) [inline, virtual]

Definition at line 43 of file parser_base.hpp.


Member Function Documentation

template<typename T >
int8_t ParserBase::createBVH ( fcl::BVHModel< T > &  bvh)

Direct implementation in the header file is necessary only for templated methods!!!. -> Allows implicit usage without one must giving <..>

Parameters:
bvhA reference to a fcl::BVHModel instance that shall be filled with triangles.
Returns:
Success status (0 means success)

Definition at line 79 of file parser_base.hpp.

template<typename T >
int8_t ParserBase::createBVH ( boost::shared_ptr< fcl::BVHModel< T > >  ptr_bvh)

Definition at line 100 of file parser_base.hpp.

const std::string ParserBase::getFilePath ( ) const [inline]

Return the member file path.

Returns:
A const string containing the member file path.

Definition at line 52 of file parser_base.hpp.

virtual int8_t ParserBase::read ( std::vector< TriangleSupport > &  tri_vec) [pure virtual]

Tries to read from the given file path and fills a triangle vector.

Parameters:
tri_vecA vector of triangles that shall be filled by the read method.
Returns:
Success status (0 means ok)

Implemented in MeshParser, and StlParser.


Member Data Documentation

std::string ParserBase::file_path_ [protected]

Definition at line 30 of file parser_base.hpp.


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


cob_obstacle_distance
Author(s): Marco Bezzon
autogenerated on Thu Jun 6 2019 21:19:14