TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
CameraParser Class Reference

sensor configuration for a camera sensor. This is an example configuration for a camera sensor in the URDF format. More...

#include <camera_parser.h>

Inheritance diagram for CameraParser:
[legend]
Collaboration diagram for CameraParser:
[legend]

Public Member Functions

 CameraParser ()
 
void parse (const tinyxml2::XMLElement *xml) override
 
std::shared_ptr< Cameraget () override
 
const char * getTypename () override
 
bool isA (const char *name) override
 
bool empty () const override
 
void clear () override
 
void print (std::ostream &os) override
 
- Public Member Functions inherited from ParserBase< Camera >
const char * getNameOf (const tinyxml2::XMLElement *xml)
 
void parse (const tinyxml2::XMLElement *xml)
 
void parse (const tinyxml2::XMLElement *xml)
 

Additional Inherited Members

- Protected Member Functions inherited from ParserBase< Camera >
 ParserBase ()
 
virtual ~ParserBase ()
 
- Protected Member Functions inherited from ObjectBase
 ObjectBase ()
 
virtual ~ObjectBase ()
 
virtual ObjectBasegetPointer ()
 
- Protected Attributes inherited from ParserBase< Camera >
std::shared_ptr< CameraTptr
 

Detailed Description

sensor configuration for a camera sensor. This is an example configuration for a camera sensor in the URDF format.

<sensor name="my_camera_sensor" update_rate="20">
<parent link="optical_frame_link_name"/>
<origin xyz="0 0 0" rpy="0 0 0"/>
<camera>
<image width="640" height="480" hfov="1.5708" format="RGB8" near="0.01" far="50.0"/>
</camera>
</sensor>

Constructor & Destructor Documentation

◆ CameraParser()

CameraParser::CameraParser ( )

Member Function Documentation

◆ clear()

void CameraParser::clear ( )
overridevirtual

Implements ObjectBase.

◆ empty()

bool CameraParser::empty ( ) const
overridevirtual

Implements ObjectBase.

◆ get()

std::shared_ptr< Camera > CameraParser::get ( )
overridevirtual

Reimplemented from ParserBase< Camera >.

◆ getTypename()

const char * CameraParser::getTypename ( )
overridevirtual

Implements ObjectBase.

◆ isA()

bool CameraParser::isA ( const char *  name)
overridevirtual

Implements ObjectBase.

◆ parse()

void CameraParser::parse ( const tinyxml2::XMLElement *  xml)
overridevirtual

Reimplemented from ParserBase< Camera >.

◆ print()

void CameraParser::print ( std::ostream &  os)
overridevirtual

Implements ObjectBase.


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