RobWorkProject
23.9.11-
|
Extendible interface for loading of WorkCells from files. More...
#include <WorkCellLoader.hpp>
Inherited by XMLRWLoader.
Classes | |
class | Factory |
A factory for WorkCellLoader. This factory also defines the "rw.loaders.WorkCellLoader" extension point where new loaders can be registered. More... | |
Public Types | |
typedef rw::core::Ptr< WorkCellLoader > | Ptr |
Smart pointer of WorkCellLoader. | |
Public Member Functions | |
virtual | ~WorkCellLoader () |
Destructor. | |
virtual models::WorkCell::Ptr | loadWorkCell (const std::string &filename)=0 |
Load a WorkCell from a file. More... | |
Protected Member Functions | |
WorkCellLoader () | |
Constructor. | |
Extendible interface for loading of WorkCells from files.
By default, the following formats are supported:
The Factory defines an extension point "rw.loaders.WorkCellLoader" that makes it possible to add loaders for other file formats than the ones above. Extensions take precedence over the default loaders.
The WorkCell loader is chosen based on a case-insensitive file extension name. So "scene.wc.xml" will be loaded by the same loader as "scene.WC.XML"
WorkCells are supposed to be loaded using the Factory::load function:
Alternatively a WorkCell can be loaded in the less convenient way:
|
pure virtual |
Load a WorkCell from a file.
filename | [in] path to workcell file. |
Implemented in XMLRWLoader.