maliput_object
maliput::object::loader Namespace Reference

Functions

std::unique_ptr< maliput::object::api::ObjectBook< maliput::math::Vector3 > > Load (const std::string &input)
 Loads the input string as a maliput_object YAML document. More...
 
std::unique_ptr< maliput::object::api::ObjectBook< maliput::math::Vector3 > > LoadFile (const std::string &filename)
 Loads the filename file as a maliput_object YAML document. More...
 

Function Documentation

◆ Load()

std::unique_ptr< maliput::object::api::ObjectBook< maliput::math::Vector3 > > Load ( const std::string &  input)

Loads the input string as a maliput_object YAML document.

See loader.h documentation for further details.

Parameters
inputA YAML document as a string that must contain a node as described in loader.h
Exceptions
maliput::common::assertion_errorWhen input fails to be parsed.
Returns
A maliput::object::api::ObjectBook<maliput::math::Vector3> representing the input.

◆ LoadFile()

std::unique_ptr< maliput::object::api::ObjectBook< maliput::math::Vector3 > > LoadFile ( const std::string &  filename)

Loads the filename file as a maliput_object YAML document.

See loader.h documentation for further details.

Parameters
filenameThe path to the YAML document.
Exceptions
maliput::common::assertion_errorWhen input fails to be parsed.
Returns
A maliput::object::api::ObjectBook<maliput::math::Vector3> representing the contents of filename.